2006-08-25 23:53:54 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-12-07 00:42:37 +01:00
|
|
|
PKG_NAME:=mkimage
|
2006-08-25 23:53:54 +02:00
|
|
|
|
2007-05-10 09:02:04 +02:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2006-08-25 23:53:54 +02:00
|
|
|
define Build/Compile
|
2007-08-07 02:04:25 +02:00
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -O -c src/crc32.c -o $(PKG_BUILD_DIR)/crc32.o
|
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -O -c src/mkimage.c -o $(PKG_BUILD_DIR)/mkimage.o
|
|
|
|
$(HOSTCC) $(HOST_CFLAGS) -O -o $(PKG_BUILD_DIR)/mkimage $(PKG_BUILD_DIR)/mkimage.o $(PKG_BUILD_DIR)/crc32.o
|
2006-08-25 23:53:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Install
|
2007-08-07 02:04:25 +02:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/mkimage $(STAGING_DIR_HOST)/bin/
|
2006-08-25 23:53:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Clean
|
2007-08-07 02:04:25 +02:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mkimage
|
2006-08-25 23:53:54 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|