mediatek: bump to v4.4
[openwrt/svn-archive/archive.git] / tools / yaffs2 / Makefile
1 #
2 # Copyright (C) 2008-2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=yaffs2_android
11 PKG_VERSION:=2008-12-18
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=https://android.googlesource.com/platform/external/yaffs2
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)
17 PKG_SOURCE_VERSION:=d333fc232d7e5ae3370080d5d6f7d88ea9c6b3a1
18 PKG_MIRROR_MD5SUM:=8145d4dd9b46face26121f27ad60cc1c
19 HOST_BUILD_DIR=$(BUILD_DIR_HOST)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/host-build.mk
22
23 define Host/Compile
24 $(MAKE) -C $(HOST_BUILD_DIR)/yaffs2/utils \
25 CC="$(HOSTCC)" \
26 CFLAGS="$(HOST_CFLAGS) -include endian.h" \
27 mkyaffs2image
28 endef
29
30 define Host/Install
31 $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
32 $(INSTALL_BIN) $(HOST_BUILD_DIR)/yaffs2/utils/mkyaffs2image $(STAGING_DIR_HOST)/bin/
33 endef
34
35 define Host/Clean
36 rm -f $(STAGING_DIR_HOST)/bin/mkyaffs2image
37 endef
38
39 $(eval $(call HostBuild))