mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Modify Makefile of easy-soc-libs to add libdsl test application
This commit is contained in:
parent
af11c1b407
commit
b480ca039c
2 changed files with 14 additions and 0 deletions
|
|
@ -15,5 +15,9 @@ config LIBDSL_DEBUG
|
||||||
bool "Enable xdsl debugging"
|
bool "Enable xdsl debugging"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config LIBDSL_TEST
|
||||||
|
depends on PACKAGE_libdsl
|
||||||
|
bool "Libdsl test program"
|
||||||
|
default n
|
||||||
endmenu
|
endmenu
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -118,6 +118,12 @@ define Build/InstallDev/libethernet
|
||||||
$(CP) $(PKG_BUILD_DIR)/libethernet/libethernet.so $(1)/usr/lib/
|
$(CP) $(PKG_BUILD_DIR)/libethernet/libethernet.so $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(call Build/Compile/Default)
|
||||||
|
ifeq ($(CONFIG_LIBDSL_TEST),y)
|
||||||
|
$(MAKE) -C "$(PKG_BUILD_DIR)/libdsl/test" $(MAKE_FLAGS)
|
||||||
|
endif
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(foreach dir,$(subdirs),$(call Build/InstallDev/$(dir),$(1),$(2));)
|
$(foreach dir,$(subdirs),$(call Build/InstallDev/$(dir),$(1),$(2));)
|
||||||
|
|
@ -135,7 +141,11 @@ endef
|
||||||
|
|
||||||
define Package/libdsl/install
|
define Package/libdsl/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(CP) $(PKG_BUILD_DIR)/libdsl/libdsl.so* $(1)/usr/lib/
|
$(CP) $(PKG_BUILD_DIR)/libdsl/libdsl.so* $(1)/usr/lib/
|
||||||
|
ifeq ($(CONFIG_LIBDSL_TEST),y)
|
||||||
|
$(CP) $(PKG_BUILD_DIR)/libdsl/test/libdsl_test $(1)/usr/bin/
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libwifi))
|
$(eval $(call BuildPackage,libwifi))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue