Subject: ARM: OMAP3: Clean up build options From: Dirk Behme After some discussion at U-Boot list it seems that -lgcc_eh isn't necessary. Verified by building with and without -lgcc_eh, resulting binaries are identical. Minor clean up of config.mk Signed-off-by: Dirk Behme --- Index: u-boot_steve/Makefile =================================================================== --- u-boot_steve.orig/Makefile +++ u-boot_steve/Makefile @@ -253,7 +253,7 @@ LIBBOARD = board/$(BOARDDIR)/lib$(BOARD) LIBBOARD := $(addprefix $(obj),$(LIBBOARD)) # Add GCC lib -PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lgcc_eh +PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc # The "tools" are needed early, so put this first # Don't include stuff already done in $(LIBS) Index: u-boot_steve/cpu/omap3/config.mk =================================================================== --- u-boot_steve.orig/cpu/omap3/config.mk +++ u-boot_steve/cpu/omap3/config.mk @@ -29,6 +29,6 @@ PLATFORM_CPPFLAGS += -march=armv7a # Supply options according to compiler version # # ========================================================================= -#PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) PLATFORM_CPPFLAGS +=$(call cc-option) -PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) +PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,\ + $(call cc-option,-malignment-traps,))