qos-gargoyle: fixed in SDK

In iproute2, some of object, header, source files are used in
qos-gargoyle.
qos-gargoyle will find these files in build_dir.
But if CONFIG_AUTOREMOVE is enable in SDK, an error "Header not found." will be raised.

So one way is that copying these files to staging_dir.
This commit is contained in:
ElonH 2020-04-10 23:05:45 +08:00
parent 420157f066
commit 47040d246d
No known key found for this signature in database
GPG Key ID: 5BCDD7F78A258D4C
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
BINDIR = /usr/sbin
#TCDIR:=$(BUILD_DIR)/iproute2*/ip*
TCDIR:=$(shell if [ -e "${BUILD_DIR}/iproute2-full" ] ; then echo "${BUILD_DIR}/iproute2-full"/ip* ; else echo "${BUILD_DIR}/iproute2-tiny"/ip* ; fi ; )
#TCDIR:=$(shell if [ -e "${BUILD_DIR}/iproute2-full" ] ; then echo "${BUILD_DIR}/iproute2-full"/ip* ; else echo "${BUILD_DIR}/iproute2-tiny"/ip* ; fi ; )
TCDIR:=$(STAGING_DIR)/usr/lib/iproute2
#The ncurses library only needed if we remove the ONLYBG switch
#below. Mostly for debug
#LDLIBS += -lncurses

View File

@ -145,6 +145,10 @@ define Build/InstallDev
$(CP) $(PKG_BUILD_DIR)/include/{libgenl,libnetlink}.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libnetlink.a $(1)/usr/lib/
# Hack for qos-gargoyle
$(INSTALL_DIR) $(1)/usr/lib/iproute2/{tc,lib,include}
$(CP) $(PKG_BUILD_DIR)/{tc,include,lib} $(1)/usr/lib/iproute2
# Hack end
endef
define Package/ip-tiny/install