From e0257f127e804988018e688204a2141a4a46e6ea Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 17 Aug 2011 14:23:46 +0100 Subject: [PATCH] --- yaml --- r: 264625 b: refs/heads/master c: cd227fbffa9e971ee80065de772d3201c73e1670 h: refs/heads/master i: 264623: 75d69f930aaa325d5746025f09951edfc97dcc54 v: v3 --- [refs] | 2 +- trunk/arch/arm/boot/Makefile | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index a9e311f9d32d..c826a690a36b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 60aac93283823b44644c92d0803d821b9d2d987a +refs/heads/master: cd227fbffa9e971ee80065de772d3201c73e1670 diff --git a/trunk/arch/arm/boot/Makefile b/trunk/arch/arm/boot/Makefile index a1edfd5a129a..176062ac7f07 100644 --- a/trunk/arch/arm/boot/Makefile +++ b/trunk/arch/arm/boot/Makefile @@ -78,7 +78,16 @@ endif $(obj)/uImage: STARTADDR=$(LOADADDR) +check_for_multiple_loadaddr = \ +if [ $(words $(LOADADDR)) -gt 1 ]; then \ + echo 'multiple load addresses: $(LOADADDR)'; \ + echo 'This is incompatible with uImages'; \ + echo 'Specify LOADADDR on the commandline to build an uImage'; \ + false; \ +fi + $(obj)/uImage: $(obj)/zImage FORCE + @$(check_for_multiple_loadaddr) $(call if_changed,uimage) @echo ' Image $@ is ready'