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_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
16 PKG_MD5SUM
:=664431bf6737df1c265500e1f0b5d40c
19 PKG_BUILD_DIR
:=$(TOOL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/host-build.mk
23 define Build
/Configure
24 ( cd
$(PKG_BUILD_DIR
); \
26 --target
=$(GNU_HOST_NAME
) \
27 --host
=$(GNU_HOST_NAME
) \
28 --build
=$(GNU_HOST_NAME
) \
35 --libexecdir
=/usr
/lib \
37 --datadir=/usr
/share \
38 --localstatedir
=/var \
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 CFLAGS
="-O2 -I $(STAGING_DIR)/include-host -include getline.h" \
51 mkdir
-p
$(STAGING_DIR
)/bin
52 install -m0755
$(PKG_BUILD_DIR
)/genext2fs
$(STAGING_DIR
)/bin
/
56 rm -f
$(STAGING_DIR
)/bin
/genext2fs
59 $(eval
$(call HostBuild
))