2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=yaffs2_android
11 PKG_VERSION:=2008-12-18
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=git://android.git.kernel.org/platform/external/yaffs2.git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)
17 PKG_SOURCE_VERSION:=d333fc232d7e5ae3370080d5d6f7d88ea9c6b3a1
18 PKG_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME)
20 include $(INCLUDE_DIR)/host-build.mk
23 $(MAKE) -C $(PKG_BUILD_DIR)/yaffs2/utils \
24 CFLAGS="$(HOST_CFLAGS) -include endian.h" \
29 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
30 $(INSTALL_BIN) $(PKG_BUILD_DIR)/yaffs2/utils/mkyaffs2image $(STAGING_DIR_HOST)/bin/
34 rm -f $(STAGING_DIR_HOST)/bin/mkyaffs2image
37 $(eval $(call HostBuild))