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.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
13 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/m
/mkelfimage
/
14 PKG_MD5SUM
:=e505cb87e9c0cdc44cf03d2c4ea8c74b
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/mkelfimage
24 DEFAULT
:=y if TARGET_x86
27 CONFIGURE_VARS
+= AS
="$(TARGET_CROSS)as"
28 MAKE_FLAGS
+= HOST_CC
="$(HOSTCC)" DEFS
="-I$(STAGING_DIR_HOST)/include"
30 define Build
/InstallDev
31 $(INSTALL_DIR
) $(STAGING_DIR_HOST
)/bin
32 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/objdir
/sbin
/mkelfImage
$(STAGING_DIR_HOST
)/bin
35 $(eval
$(call BuildPackage
,mkelfimage
))