This should fix the build on LEDE buildbots which bail out with: -snip- ... ! -d ./src/ ] || cp -fpR ./src/* /data/bowl-builder/arm_arm926ej-s/build/ (wrapped) sdk/build_dir/target-arm_arm926ej-s_musl-1.1.15_eabi/libcanfestival-8bfe0ac0 Applying ./patches/001-sigval-ref-fix.patch using plaintext: can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- a/drivers/timers_unix/timers_unix.c |+++ b/drivers/timers_unix/timers_unix.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored Patch failed! Please fix ./patches/001-sigval-ref-fix.patch! ... -snap- Reason is, that the tar ball created by hg checkout does not contain the version string appended to the root source directory as expected by default PKG_BUILD_DIR, so this patch adjusts the expected directory name. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
71 lines
1.5 KiB
Makefile
71 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libcanfestival
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE_PROTO:=hg
|
|
PKG_SOURCE_URL:=http://dev.automforge.net/CanFestival-3
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)
|
|
PKG_SOURCE_VERSION:=8bfe0ac00cdb
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
|
|
|
|
PKG_MAINTAINER:=Anton Glukhov <anton.a.glukhov@gmail.com>
|
|
PKG_LICENSE:=LGPL-2.1+
|
|
PKG_LICENSE_FILES:=LICENCE
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libcanfestival
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Free software CANopen library
|
|
URL:=http://canfestival.org
|
|
DEPENDS:=+libpthread +librt
|
|
endef
|
|
|
|
define Package/libcanfestival/description
|
|
CanFestival library
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
CONFIGURE_ARGS := \
|
|
--cc=$(TARGET_CC) \
|
|
--cxx=$(TARGET_CXX) \
|
|
--ld=$(TARGET_CC) \
|
|
--arch=$(ARCH) \
|
|
--binutils=$(TARGET_CROSS) \
|
|
--os=Linux \
|
|
--kerneldir=$(LINUX_DIR) \
|
|
--prefix=/usr \
|
|
--target=unix \
|
|
--can=socket \
|
|
--timers=unix \
|
|
--debug=ERR \
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/libcanfestival/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcanfestival_can_socket.so $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libcanfestival))
|