Re: [U-Boot] [PATCH 2/2] kbuild: Move linker sciript check to prepare1

2014-02-25 Thread Simon Glass
On 24 February 2014 06:11, Masahiro Yamada yamad...@jp.panasonic.com wrote:
 Same as the previous commit.
 Move sanity check to prepare1 target to avoid nasty troubles.

 Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com

Acked-by: Simon Glass s...@chromium.org
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/2] kbuild: Move linker sciript check to prepare1

2014-02-24 Thread Masahiro Yamada
Same as the previous commit.
Move sanity check to prepare1 target to avoid nasty troubles.

Signed-off-by: Masahiro Yamada yamad...@jp.panasonic.com
---

 Makefile | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index fffeb7e..b034a36 100644
--- a/Makefile
+++ b/Makefile
@@ -518,9 +518,6 @@ ifndef LDSCRIPT
# We don't expect a Makefile here
LDSCRIPT_MAKEFILE_DIR =
endif
-   ifeq ($(wildcard $(LDSCRIPT)),)
-$(error could not find linker script)
-   endif
 endif
 
 else
@@ -996,6 +993,10 @@ ifeq ($(CONFIG_SYS_GENERIC_BOARD),y)
@/bin/false
 endif
 endif
+ifeq ($(wildcard $(LDSCRIPT)),)
+   @echo 2   Could not find linker script.
+   @/bin/false
+endif
 
 archprepare: prepare1 scripts_basic
 
-- 
1.8.3.2

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot