| 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 |
|
|---|
| 7 | PKG_NAME:= u-boot
|
|---|
| 8 | PKG_VERSION:= 1.1.4
|
|---|
| 9 | PKG_MD5SUM:= 096cac66046326659b97eeded007ec73
|
|---|
| 10 | DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|---|
| 11 | MASTER_SITES:= ftp://ftp.denx.de/pub/u-boot/
|
|---|
| 12 |
|
|---|
| 13 | include $(TOPDIR)/rules.mk
|
|---|
| 14 | include ../rules.mk
|
|---|
| 15 | #include ${TOPDIR}/mk/fetch.mk
|
|---|
| 16 |
|
|---|
| 17 | DEFS= -idirafter ../include -DTEXT_BASE= -DUSE_HOSTCC
|
|---|
| 18 | ifeq (${OStype},Darwin)
|
|---|
| 19 | DEFS+= -D__FreeBSD__
|
|---|
| 20 | endif
|
|---|
| 21 |
|
|---|
| 22 | $(WRKBUILD)/tools/mkimage: $(WRKBUILD)/.prepared
|
|---|
| 23 | cd ${WRKBUILD}/tools && \
|
|---|
| 24 | ${HOSTCC} -O -g -Wall -pedantic ${DEFS} -c mkimage.c && \
|
|---|
| 25 | ${HOSTCC} -O -g -Wall -pedantic ${DEFS} -c ../lib_generic/crc32.c && \
|
|---|
| 26 | ${HOSTCC} ${DEFS} -o mkimage mkimage.o crc32.o
|
|---|
| 27 |
|
|---|
| 28 | $(STAGING_TOOLS)/bin/mkimage: $(WRKBUILD)/tools/mkimage
|
|---|
| 29 | $(CP) $< $@
|
|---|
| 30 |
|
|---|
| 31 | source: ${_CHECKSUM_COOKIE}
|
|---|
| 32 | prepare: $(WRKBUILD)/.prepared
|
|---|
| 33 | compile: $(WRKBUILD)/tools/mkimage $(STAGING_TOOLS)/bin/mkimage
|
|---|
| 34 | install: $(STAGING_TOOLS)/bin/mkimage
|
|---|
| 35 | clean:
|
|---|
| 36 | rm -rf $(WRKBUILD)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.