fast-classifier: fixes header linking failure issue

(cherry picked from commit efe69269efb0f4df5f402d178b93c6bf2ca58c86)
This commit is contained in:
AmadeusGhost 2022-04-09 23:21:28 +08:00 committed by Tianling Shen
parent cc37891242
commit d4fa2a926a
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 6 additions and 7 deletions

View File

@ -36,6 +36,7 @@ define Package/fast-classifier-example/description
endef
SFE_MAKE_OPTS:=SFE_SUPPORT_IPV6=y
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include/shortcut-fe
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" $(strip $(SFE_MAKE_OPTS)) \

View File

@ -68,15 +68,13 @@ endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/shortcut-fe
$(CP) -rf $(PKG_BUILD_DIR)/sfe.h $(1)/usr/include/shortcut-fe
$(CP) -rf $(PKG_BUILD_DIR)/*.h $(1)/usr/include/shortcut-fe
endef
#define KernelPackage/shortcut-fe/install
# $(INSTALL_DIR) $(1)/etc/init.d
# $(INSTALL_BIN) ./files/etc/init.d/shortcut-fe $(1)/etc/init.d
# $(INSTALL_DIR) $(1)/usr/bin
# $(INSTALL_BIN) ./files/usr/bin/sfe_dump $(1)/usr/bin
#endef
define KernelPackage/shortcut-fe/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) ./files/usr/bin/sfe_dump $(1)/usr/bin
endef
$(eval $(call KernelPackage,shortcut-fe))
$(eval $(call KernelPackage,shortcut-fe-cm))