PRSDK-3125: Updating A15 makefile to use sysbios 6.52.0.12
[keystone-rtos/edma3_lld.git] / makerules / rules_a15.mk
index 288473fd0b6d039c0ac3c840799c7c74ae321b52..28f9c3cdfabdb4a57c5b4bc07100e7b91140b049 100644 (file)
@@ -10,7 +10,7 @@
 #     4. a rule common for A15 ISA has to be added or modified\r
 \r
 # Set compiler/archiver/linker commands and include paths\r
-CODEGEN_INCLUDE = $(CODEGEN_PATH_A15)/arm-none-eabi/include\r
+CODEGEN_INCLUDE = $(CODEGEN_PATH_A15)/arm-none-eabi/include $(CODEGEN_PATH_A15)/arm-none-eabi/include/newlib-nano\r
 CC = $(CODEGEN_PATH_A15)/bin/arm-none-eabi-gcc \r
 AR = $(CODEGEN_PATH_A15)/bin/arm-none-eabi-ar\r
 #LNK = $(CODEGEN_PATH_A15)/bin/arm-none-eabi-ld\r
@@ -48,7 +48,7 @@ CFLAGS_INTERNAL = -Wall -Wunknown-pragmas -c -mcpu=cortex-a15 -g -mfpu=neon -mfl
 #-ffunction-sections -fdata-sections\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__=A15F -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_cfg__header__='$(CONFIGURO_DIR)/package/cfg/$(XDC_CFG_BASE_FILE_NAME)_xem3.h'\r
@@ -120,8 +120,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
-LIB_PATHS += $(BIOS_RUNTIME_PATH)/libc.a $(BIOS_RUNTIME_PATH)/libm.a $(BIOS_RUNTIME_PATH)/librdimon.a $(BIOS_RUNTIME_PATH)/libg.a
+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
 \r
 LNK_LIBS = $(addprefix -l,$(LIB_PATHS))\r
@@ -157,7 +157,7 @@ else
 endif\r
 \r
 # XDC specific - assemble XDC-Configuro command\r
-CONFIGURO_CMD = $(xdc_PATH)/xs xdc.tools.configuro -o $(CONFIGURO_DIR) -t $(TARGET_XDC) -p "$(PLATFORM_XDC_NAME)" \
+CONFIGURO_CMD = $(xdc_PATH)/xs xdc.tools.configuro -o $(CONFIGURO_DIR) -t $(TARGET_XDC) -p "$(PLATFORM_XDC_NAME)" \\r
                -r $(PROFILE_$(CORE)) -c $(CODEGEN_PATH_A15) -b $(CONFIG_BLD_FILE) $(XDC_CFG_FILE_NAME)\r
 _XDC_GREP_STRING = \"$(XDC_GREP_STRING)\"\r
 EGREP_CMD = $(EGREP) -ivw $(XDC_GREP_STRING) $(XDCLNKCMD_FILE)\r