mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
build system refactoring in preparation for allowing packages to do host-build steps
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14610 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -15,8 +15,8 @@ PKG_MD5SUM:=
|
||||
|
||||
include $(INCLUDE_DIR)/host-build.mk
|
||||
|
||||
define Build/Configure
|
||||
(cd $(PKG_BUILD_DIR); \
|
||||
define Host/Configure
|
||||
(cd $(HOST_BUILD_DIR); \
|
||||
./configure \
|
||||
--prefix=$(STAGING_DIR_HOST) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
@@ -27,16 +27,16 @@ define Build/Configure
|
||||
);
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
make -C $(PKG_BUILD_DIR) all
|
||||
define Host/Compile
|
||||
make -C $(HOST_BUILD_DIR) all
|
||||
endef
|
||||
|
||||
define Build/Install
|
||||
make -C $(PKG_BUILD_DIR) install
|
||||
define Host/Install
|
||||
make -C $(HOST_BUILD_DIR) install
|
||||
endef
|
||||
|
||||
define Build/Clean
|
||||
rm -rf $(PKG_BUILD_DIR)
|
||||
define Host/Clean
|
||||
rm -rf $(HOST_BUILD_DIR)
|
||||
endef
|
||||
|
||||
$(eval $(call HostBuild))
|
||||
|
||||
Reference in New Issue
Block a user