From ee60197e64f4daa8869a88ccc20bf6896a218657 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 21 Nov 2011 10:49:37 +0000 Subject: Allow arch directory to contain .lds without requiring Makefile The Makefile for a CPU is in arch/($ARCH)/cpu/$(CPU). We want to support having an .lds file in arch/$(ARCH)/cpu without requiring an additional Makefile there. This change makes it clear that we expect a Makefile in the same directory as the link script except in this case. Signed-off-by: Simon Glass --- spl/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spl/Makefile') diff --git a/spl/Makefile b/spl/Makefile index 3262e226ae..680f6dd1f6 100644 --- a/spl/Makefile +++ b/spl/Makefile @@ -80,6 +80,9 @@ endif ifeq ($(wildcard $(LDSCRIPT)),) LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-spl.lds endif +ifeq ($(wildcard $(LDSCRIPT)),) + LDSCRIPT := $(TOPDIR)/arch/$(ARCH)/cpu/u-boot.lds +endif ifeq ($(wildcard $(LDSCRIPT)),) $(error could not find linker script) endif -- cgit v1.2.1