Changeset 19091


Ignore:
Timestamp:
2010-01-10T16:57:43+01:00 (8 years ago)
Author:
kaloz
Message:

[tools/mkimage]: upgrade and build from the u-boot source

Location:
trunk/tools/mkimage
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/mkimage/Makefile

    r14610 r19091  
    1 #  
    2 # Copyright (C) 2006 OpenWrt.org 
     1# 
     2# Copyright (C) 2006-2010 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    88 
    99PKG_NAME:=mkimage 
     10PKG_VERSION:=2009.11 
     11 
     12PKG_SOURCE:=u-boot-$(PKG_VERSION).tar.bz2 
     13PKG_SOURCE_URL:=ftp://ftp.denx.de/pub/u-boot 
     14PKG_MD5SUM:=d94700614225f53c853dfe714eb5fa47 
     15PKG_CAT:=bzcat 
     16 
     17HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/u-boot-$(PKG_VERSION) 
    1018 
    1119include $(INCLUDE_DIR)/host-build.mk 
    1220 
    1321define Host/Compile 
    14         $(HOSTCC) $(HOST_CFLAGS) -O -c src/crc32.c -o $(HOST_BUILD_DIR)/crc32.o 
    15         $(HOSTCC) $(HOST_CFLAGS) -O -c src/mkimage.c -o $(HOST_BUILD_DIR)/mkimage.o 
    16         $(HOSTCC) $(HOST_CFLAGS) -O -o $(HOST_BUILD_DIR)/mkimage $(HOST_BUILD_DIR)/mkimage.o $(HOST_BUILD_DIR)/crc32.o 
     22        touch $(HOST_BUILD_DIR)/include/config.{h,mk} $(HOST_BUILD_DIR)/include/autoconf.mk{.dep,} 
     23        $(MAKE) -C $(HOST_BUILD_DIR) SUBDIRS=tools BIN_FILES-y="mkimage" tools 
    1724endef 
    1825 
    1926define Host/Install 
    20         $(CP) $(HOST_BUILD_DIR)/mkimage $(STAGING_DIR_HOST)/bin/ 
     27        $(CP) $(HOST_BUILD_DIR)/tools/mkimage $(STAGING_DIR_HOST)/bin/ 
    2128endef 
    2229 
Note: See TracChangeset for help on using the changeset viewer.