diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-02-22 04:37:20 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-02-22 04:37:20 +0000 |
commit | 800e84cc0ff36cfbc254ec9681d8731a4fd480f1 (patch) | |
tree | 8497134d453d336d68b5dbf67d9b6b719ed2145e /tools/yaffs2 | |
parent | 9dd62009270ca154e79ce4ae0b135c7feec7253d (diff) |
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
Diffstat (limited to 'tools/yaffs2')
-rw-r--r-- | tools/yaffs2/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/yaffs2/Makefile b/tools/yaffs2/Makefile index 37da033d7..344b61a2c 100644 --- a/tools/yaffs2/Makefile +++ b/tools/yaffs2/Makefile @@ -15,22 +15,22 @@ PKG_SOURCE_URL:=git://android.git.kernel.org/platform/external/yaffs2.git PKG_SOURCE_PROTO:=git PKG_SOURCE_SUBDIR:=$(PKG_NAME) PKG_SOURCE_VERSION:=d333fc232d7e5ae3370080d5d6f7d88ea9c6b3a1 -PKG_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME) +HOST_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME) include $(INCLUDE_DIR)/host-build.mk -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR)/yaffs2/utils \ +define Host/Compile + $(MAKE) -C $(HOST_BUILD_DIR)/yaffs2/utils \ CFLAGS="$(HOST_CFLAGS) -include endian.h" \ mkyaffs2image endef -define Build/Install +define Host/Install $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/yaffs2/utils/mkyaffs2image $(STAGING_DIR_HOST)/bin/ + $(INSTALL_BIN) $(HOST_BUILD_DIR)/yaffs2/utils/mkyaffs2image $(STAGING_DIR_HOST)/bin/ endef -define Build/Clean +define Host/Clean rm -f $(STAGING_DIR_HOST)/bin/mkyaffs2image endef |