From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Wed, 29 Jun 2011 18:39:27 +0530 Subject: [U-Boot] [RFC PATCH 7/7] omap4: adapt Makefile for spl building In-Reply-To: References: Message-ID: <1309352967-5719-8-git-send-email-aneesh@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Aneesh V --- arch/arm/cpu/armv7/omap4/Makefile | 12 ++++++------ include/configs/omap4_sdp4430.h | 8 ++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/arm/cpu/armv7/omap4/Makefile b/arch/arm/cpu/armv7/omap4/Makefile index 987dc9d..f28eb37 100644 --- a/arch/arm/cpu/armv7/omap4/Makefile +++ b/arch/arm/cpu/armv7/omap4/Makefile @@ -25,14 +25,14 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o -SOBJS += lowlevel_init.o +SOBJS-y += lowlevel_init.o -COBJS += board.o -COBJS += mem.o -COBJS += sys_info.o +COBJS-y := board.o +COBJS-$(CONFIG_NORMAL_UBOOT) += mem.o +COBJS-$(CONFIG_NORMAL_UBOOT) += sys_info.o -SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) -OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) +SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS-y) $(SOBJS-y)) all: $(obj).depend $(LIB) diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h index 584a52b..0af8e45 100644 --- a/include/configs/omap4_sdp4430.h +++ b/include/configs/omap4_sdp4430.h @@ -241,4 +241,12 @@ CONFIG_SYS_INIT_RAM_SIZE - \ GENERATED_GBL_DATA_SIZE) +#define CONFIG_UBOOT_SPL +#define CONFIG_SYS_SPL_LDSCRIPT "arch/arm/cpu/armv7/omap-common/spl.lds" +#define CONFIG_SYS_SPL_TEXT_BASE 0x40304350 +#define CONFIG_SYS_SPL_MAX_SIZE 0x7800 /* 30 K */ +#define CONFIG_SYS_SPL_STACK LOW_LEVEL_SRAM_STACK + +#define CONFIG_SYS_SPL_BSS_START_ADDR 0x80000000 +#define CONFIG_SYS_SPL_BSS_MAX_SIZE 0x80000 /* 512 KB */ #endif /* __CONFIG_H */ -- 1.7.0.4