2 # Copyright (C) 2010 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
12 PKG_MD5SUM:=f9c7bb5c036a119453ce02fa871038da
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/e2fsprogs
18 include $(INCLUDE_DIR)/host-build.mk
21 ( cd $(HOST_BUILD_DIR); \
23 --target=$(GNU_HOST_NAME) \
24 --host=$(GNU_HOST_NAME) \
25 --build=$(GNU_HOST_NAME) \
32 --libexecdir=/usr/lib \
34 --datadir=/usr/share \
35 --localstatedir=/var \
41 TARGET_CFLAGS += $(FPIC)
48 --enable-dynamic-e2fsck \
52 $(MAKE) -C $(HOST_BUILD_DIR) \
53 CFLAGS="$(HOST_CFLAGS)" all
57 install -m0755 $(HOST_BUILD_DIR)/e2fsck/e2fsck $(STAGING_DIR_HOST)/bin/
58 install -m0755 $(HOST_BUILD_DIR)/misc/tune2fs $(STAGING_DIR_HOST)/bin/
62 rm -f $(STAGING_DIR_HOST)/bin/e2fsck
63 rm -f $(STAGING_DIR_HOST)/bin/tune2fs
66 $(eval $(call HostBuild))