From 0adc3086280e15aa2e2b42e744284172d1430d89 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lothar=20Wa=C3=9Fmann?= Date: Fri, 9 Mar 2012 15:22:15 +0100 Subject: [PATCH] properly integrate 'elftosb' into the build environment --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b734d3db1a..066545362c 100644 --- a/Makefile +++ b/Makefile @@ -442,9 +442,11 @@ $(obj)u-boot.ais: $(obj)spl/u-boot-spl.bin $(obj)u-boot.bin $(obj)u-boot.ais rm $(obj)spl/u-boot-spl{,-pad}.ais -$(obj)u-boot.sb: $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin - elftosb -zdf imx28 -c $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd \ - -o $(obj)u-boot.sb +$(obj)u-boot.bd: $(TOPDIR)/board/$(BOARDDIR)/u-boot.bd + sed "s:@@BUILD_DIR@@:$(obj):g" $< > $@ + +$(obj)u-boot.sb: $(obj)u-boot.bd elftosb $(obj)u-boot.bin $(obj)spl/u-boot-spl.bin + $(TOPDIR)/tools/elftosb/bld/linux/elftosb -zdf imx28 -c $< -o $@ ifeq ($(CONFIG_SANDBOX),y) GEN_UBOOT = \ @@ -513,6 +515,8 @@ $(obj)spl/u-boot-spl.bin: $(SUBDIR_TOOLS) depend updater: $(MAKE) -C tools/updater all +elftosb: + $(MAKE) -C $(SUBDIR_TOOLS)/elftosb all # Explicitly make _depend in subdirs containing multiple targets to prevent # parallel sub-makes creating .depend files simultaneously. -- 2.39.2