source: freewrt/tools/mkimage/Makefile@ 694c80f

Last change on this file since 694c80f was 9baf0a6, checked in by Thorsten Glaser <tg@…>, 19 years ago

by request of wbx@:

sort out the mess we had in ${TOPDIR}/staging_dir_${ARCH} and introduce
some new variables:

  • ${STAGING_DIR} stays the same, but has a different location now
  • ${STAGING_TOOLS} is where executables for the host system go
  • ${STAGING_PARENT} is ${TOPDIR}/cross_${ARCH} and has three (at the moment) subdirectories: host (i.e. STAGING_TOOLS), target (i.e. STAGING_DIR) and pkg (used by package.mk, pkg-bottom.mk) but is an internal-use-only variable - please don't use it.

this builds through with a non-default config; more testing will follow

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2591 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.1 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7PKG_NAME:= u-boot
8PKG_VERSION:= 1.1.4
9PKG_MD5SUM:= 096cac66046326659b97eeded007ec73
10PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
11PKG_SOURCE_URL:= ftp://ftp.denx.de/pub/u-boot
12
13include $(TOPDIR)/rules.mk
14include ../rules.mk
15
16$(WRKBUILD)/tools/mkimage: $(WRKBUILD)/.prepared
17 (cd $(WRKBUILD)/tools ; \
18 $(HOSTCC) -g -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -c mkimage.c )
19 (cd $(WRKBUILD)/tools ; \
20 $(HOSTCC) -g -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -c ../lib_generic/crc32.c )
21 (cd $(WRKBUILD)/tools ; \
22 $(HOSTCC) -Wall -pedantic -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC -O -o mkimage mkimage.o crc32.o )
23
24$(STAGING_TOOLS)/bin/mkimage: $(WRKBUILD)/tools/mkimage
25 $(CP) $< $@
26
27source: $(DL_DIR)/$(PKG_SOURCE)
28prepare: $(WRKBUILD)/.prepared
29compile: $(WRKBUILD)/tools/mkimage $(STAGING_TOOLS)/bin/mkimage
30install: $(STAGING_TOOLS)/bin/mkimage
31clean:
32 rm -rf $(WRKBUILD)
Note: See TracBrowser for help on using the repository browser.