2 # Copyright (C) 2006 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
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=@SF/genext2fs
15 PKG_MD5SUM:=b7b6361bcce2cedff1ae437fadafe53b
17 include $(INCLUDE_DIR)/host-build.mk
20 ( cd $(HOST_BUILD_DIR); \
22 --target=$(GNU_HOST_NAME) \
23 --host=$(GNU_HOST_NAME) \
24 --build=$(GNU_HOST_NAME) \
31 --libexecdir=/usr/lib \
33 --datadir=/usr/share \
34 --localstatedir=/var \
41 $(MAKE) -C $(HOST_BUILD_DIR) \
42 CFLAGS="$(HOST_CFLAGS) -include getline.h" \
47 install -m0755 $(HOST_BUILD_DIR)/genext2fs $(STAGING_DIR_HOST)/bin/
51 rm -f $(STAGING_DIR_HOST)/bin/genext2fs
54 $(eval $(call HostBuild))