PRSDK-3125: Updating Arm9 makefile after sysbios 6.52.0.11
authorMahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Tue, 10 Oct 2017 00:33:12 +0000 (20:33 -0400)
committerMahesh Radhakrishnan <m-radhakrishnan2@ti.com>
Tue, 10 Oct 2017 00:33:12 +0000 (20:33 -0400)
makerules/rules_GCC_arm9.mk

index fa9eeb8c4b9b4bf144080ebf344ca9785595ce6e..43de0b1878398fb6b2925e0c28b7eedf30a15415 100644 (file)
@@ -10,7 +10,7 @@
 #     4. a rule common for A9 ISA has to be added or modified\r
 \r
 # Set compiler/archiver/linker commands and include paths\r
-CODEGEN_INCLUDE = $(CODEGEN_PATH_A9_GCC)/arm-none-eabi/include\r
+CODEGEN_INCLUDE = $(CODEGEN_PATH_A9_GCC)/arm-none-eabi/include $(CODEGEN_PATH_A9_GCC)/arm-none-eabi/include/newlib-nano\r
 CC = $(CODEGEN_PATH_A9_GCC)/bin/arm-none-eabi-gcc\r
 AR = $(CODEGEN_PATH_A9_GCC)/bin/arm-none-eabi-ar\r
 LNK = $(CODEGEN_PATH_A9_GCC)/bin/arm-none-eabi-gcc\r
@@ -43,7 +43,7 @@ endif
 CFLAGS_INTERNAL = -Wall -Wunknown-pragmas -c -mcpu=cortex-a9 -g -mfpu=neon -mfloat-abi=hard -mabi=aapcs -mapcs-frame  -Wswitch\r
 CFLAGS_DIROPTS = \r
 \r
-LNKFLAGS_INTERNAL = -nostartfiles -static -Wl,--gc-sections -mfloat-abi=hard\r
+LNKFLAGS_INTERNAL = -nostartfiles -static -Wl,--gc-sections -mfloat-abi=hard --specs=nano.specs\r
 \r
 # CFLAGS based on profile selected\r
 CFLAGS_XDCINTERNAL = -Dxdc_target_name__=A9F -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_cfg__header__='$(CONFIGURO_DIR)/package/cfg/$(XDC_CFG_BASE_FILE_NAME)_xem3.h' -Dxdc_bld__profile_$(PROFILE_$(CORE))  -Dxdc_bld__vers_1_0_4_3_3\r
@@ -115,8 +115,8 @@ _LNKFLAGS = $(LNKFLAGS_INTERNAL) $(LNKFLAGS_INTERNAL_COMMON) $(LNKFLAGS_INTERNAL
 \r
 # Path of the RTS library - normally doesn't change for a given tool-chain\r
 RTSLIB_PATH = \r
-BIOS_RUNTIME_PATH = $(bios_PATH)/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu\r
-LIB_PATHS += $(BIOS_RUNTIME_PATH)/libc.a $(BIOS_RUNTIME_PATH)/libm.a $(BIOS_RUNTIME_PATH)/librdimon.a $(BIOS_RUNTIME_PATH)/libg.a\r
+BIOS_RUNTIME_PATH = $(bios_PATH)/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/hard\r
+LIB_PATHS += $(BIOS_RUNTIME_PATH)/libc_nano.a $(BIOS_RUNTIME_PATH)/libm.a $(BIOS_RUNTIME_PATH)/librdimon_nano.a $(BIOS_RUNTIME_PATH)/libg_nano.a\r
 \r
 LNK_LIBS = $(addprefix -l,$(LIB_PATHS))\r
 # Linker - to create executable file \r