From e5636e3951c806b378bdc56dd731ffad7cea28d3 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Wed, 10 Mar 2010 17:31:00 +0000 Subject: pass RTS option to linker, add COBRA5475 options --- ChangeLog | 5 +++++ Makefile.shared | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b857f6c..aa5cf45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-10 Thomas Doerfler + + * Makefile.shared: Pass RTS info to linker, add specific options for + COBRA5475 board + 2009-12-10 Joel Sherrill * rtems_init.c: BSP_Configuration is obsolete. diff --git a/Makefile.shared b/Makefile.shared index 6ccaaef..a0e943c 100644 --- a/Makefile.shared +++ b/Makefile.shared @@ -6,7 +6,7 @@ # Tool helpers SPECFLAGS =-B${RTEMS_MAKEFILE_PATH}/lib/ -specs=bsp_specs -qrtems -CFLAGS = +CFLAGS = # GEN5200 Specific Information ifeq ($(RTEMS_BSP),icecube) @@ -22,6 +22,11 @@ ifeq ($(RTEMS_BSP),pc386) LINKARGS+= -Wl,-Ttext,$(RELOCADDR) endif +# COBRA5475 Specific Information +ifeq ($(RTEMS_BSP),COBRA5475) + LINKARGS+=-qnolinkcmds -T$(RTEMS_LINKCMDS) +CFLAGS += -mcpu=5475 +endif # Some tests need to be able to do a gethostbyname ifeq ($(NEED_ROOTFS_FOR_HOST_INFO),yes) CLEAN_ADDITIONS += FilesystemImage FilesystemImage.c FilesystemImage.h @@ -51,7 +56,7 @@ joel: $(CC) -mcpu=403 -print-multi-directory $(PROGRAM).exe: rtems_init.o $(FILESYSTEM_OBJS) $(EXTRA_OBJS) - $(AS:as=gnatmake) $(CPU_CFLAGS) -g -v $(EXTRA_GNATFLAGS) \ + $(AS:as=gnatmake) $(CPU_CFLAGS) $(RTS) -g -v $(EXTRA_GNATFLAGS) \ -I$(RTEMS_MAKEFILE_PATH)/lib/include/adainclude \ -O -gnata -gnatE -gnato -g $(PROGRAM) -o $(@) \ -bargs -Mgnat_main \ -- cgit v1.2.3