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.
9 include $(TOPDIR)/rules.mk
14 PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=664431bf6737df1c265500e1f0b5d40c
20 include $(INCLUDE_DIR)/host-build.mk
22 define Build/Configure
23 ( cd $(PKG_BUILD_DIR); \
25 --target=$(GNU_HOST_NAME) \
26 --host=$(GNU_HOST_NAME) \
27 --build=$(GNU_HOST_NAME) \
34 --libexecdir=/usr/lib \
36 --datadir=/usr/share \
37 --localstatedir=/var \
44 $(MAKE) -C $(PKG_BUILD_DIR) all
48 install -m0755 $(PKG_BUILD_DIR)/genext2fs $(STAGING_DIR)/bin/
51 $(eval $(call HostBuild))