From a75f1c4437eb844ea4fd2d6901579d20ee4f34d4 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 4 Nov 2009 15:48:09 -0500 Subject: [PATCH] a few little cleanups to the makefile --- Makefile | 7 ------- config.mk | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 93ad8d3f5..b58848070 100644 --- a/Makefile +++ b/Makefile @@ -32,28 +32,21 @@ ARCH = arm CPU = arm7tdmi-s export ARCH CPU VENDOR -#CROSS_COMPILE = arm-unknown-linux-gnu- -#CROSS_COMPILE = arm-softfloat-linux-gnu- -#export CROSS_COMPILE - # load other configuration include $(TOPDIR)/config.mk ######################################################################### -# blink objects....order is important (i.e. start must be first) AOBJS = COBJS = $(patsubst %.c,%.o,$(wildcard src/*.c)) TESTS = $(wildcard tests/*.c) TARGETS = $(patsubst %.c,%.o,$(TESTS)) -#TARGETS = tests/blink-white.o # Add GCC lib PLATFORM_LIBS += --no-warn-mismatch -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc ######################################################################### -#ALL = blink.srec blink.bin blink.dis blink.System.map ALL = $(TESTS:.c=.srec) $(TESTS:.c=.bin) $(TESTS:.c=.dis) .PRECIOUS: $(COBJS) $(TARGETS) $(TESTS:.c=.obj) diff --git a/config.mk b/config.mk index c21f9b280..c45de219d 100644 --- a/config.mk +++ b/config.mk @@ -25,8 +25,8 @@ # clean the slate ... PLATFORM_LDFLAGS = -PLATFORM_RELFLAGS = -fno-strict-aliasing -fno-common -ffixed-r8 -ffunction-sections -msoft-float -PLATFORM_CPPFLAGS = -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM -D__ARM__ -mcallee-super-interworking -mthumb -mthumb-interwork +PLATFORM_RELFLAGS = -fno-strict-aliasing -fno-common -ffixed-r8 -ffunction-sections -msoft-float -Wcast-align -Wall +PLATFORM_CPPFLAGS = -march=armv4t -mlong-calls -mtune=arm7tdmi-s -DCONFIG_ARM -D__ARM__ -mcallee-super-interworking -mthumb -mthumb-interwork TEXT_BASE = 0x00400000 #########################################################################