diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-02-22 04:37:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-02-22 04:37:20 +0000 |
commit | 7eb15898755be46e94078faffdacd8c9b0ce66cd (patch) | |
tree | 89dc171f7b7c646be5a38ca7d7b99e1be24fa61f /tools/yaffs2/Makefile | |
parent | 6ccc1c8e3c9ad0ac95c728573c300264943d8338 (diff) | |
download | upstream-7eb15898755be46e94078faffdacd8c9b0ce66cd.tar.gz upstream-7eb15898755be46e94078faffdacd8c9b0ce66cd.tar.bz2 upstream-7eb15898755be46e94078faffdacd8c9b0ce66cd.zip |
build system refactoring in preparation for allowing packages to do host-build steps
SVN-Revision: 14610
Diffstat (limited to 'tools/yaffs2/Makefile')
-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 37da033d76..344b61a2c8 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 |