realtime_demo_bios: bug fix
[processor-sdk/audio-preprocessing.git] / realtime_demo_bios / k2g / build / makefile
1 # set global environment variables\r
2 SDK_INSTALL_PATH ?= C:/ti\r
3 C6X_GEN_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/ccsv6/tools/compiler/ti-cgt-c6000_8.1.0\r
4 XDC_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/xdctools_3_32_01_22_core\r
5 BIOS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/bios_6_46_01_38\r
6 UIA_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/uia_2_00_06_52\r
7 XDAIS_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/xdais_7_24_00_04\r
8 VOLIB_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/volib_C66_2_1_0_1\r
9 AER_INSTALL_PATH ?= $(SDK_INSTALL_PATH)/aer_c64Px_obj_17_0_0_0\r
10 \r
11 CG_TOOL_ROOT := ${C6X_GEN_INSTALL_PATH}\r
12 \r
13 GEN_OPTS__FLAG := --cmd_file="configPkg/compiler.opt"\r
14 GEN_CMDS__FLAG := -l"configPkg/linker.cmd"\r
15 \r
16 ORDERED_OBJS += \
17 "./fil.obj" \
18 "./mhm.obj" \
19 "./mss.obj" \
20 "./mssproc.obj" \
21 "./sys.obj" \
22 "./sysasnr.obj" \
23 "./sysbf.obj" \
24 "./sysbfflt.obj" \
25 "./syseram.obj" \
26 "./sysiram.obj" \
27 "./sysmss.obj" \
28 "./src/audio_dc_cfg.obj" \
29 "./src/edma_cfg.obj" \
30 "./src/main.obj" \
31 "./src/mcasp_cfg.obj" \
32 "./src/mcasp_osal.obj" \
33 "./src/sample_cs.obj" \
34 "./src/sample_k2g_cfg.obj" \
35 "./src/sample_k2g_int_reg.obj" \
36 "./src/sine.obj" \
37 "./src/test_exit.obj" \
38 "../src/sysbios/BIOS.obj" \
39 "../src/sysbios/c62_TaskSupport_asm.obj" \
40 "../src/sysbios/c64p_Exception_asm.obj" \
41 "../src/sysbios/c64p_Hwi_asm.obj" \
42 "../src/sysbios/c64p_Hwi_asm_switch.obj" \
43 "../src/sysbios/c64p_Hwi_disp_always.obj" \
44 "../src/sysbios/ti_tls_get_tp.obj" \
45 "../src/sysbios/timer64_Timer_asm.obj" \
46 "../bflinker.cmd" \
47 $(GEN_CMDS__FLAG) \
48 -llibc.a \
49 -lti.addon.cmbk2g.ae66 \\r
50 -lti.board.ae66 \
51 -lti.drv.mcasp.ae66 \
52 -laer_c.ae64P \
53 -lvau/lib/vau_c.ae66 \
54 -lvpe/lib/vpe_a.ae66 \
55 -lvpe/lib/vpe_c.ae66 \
56 -lutil/lib/util_c.ae66 \
57 -lmhm/lib/mhm_c.ae66 \
58 \r
59 -include ../makefile.init\r
60 \r
61 OS := $(shell uname)\r
62 ifeq ($(OS), Linux)\r
63 RM := rm -f\r
64 RMDIR := rm -d -f -r\r
65 else\r
66 RM := rm -f\r
67 RMDIR := rm -r -f\r
68 endif\r
69 \r
70 # All of the sources participating in the build are defined here\r
71 -include sources.mk\r
72 -include subdir_vars.mk\r
73 -include src/subdir_vars.mk\r
74 -include src/sysbios/subdir_vars.mk\r
75 -include subdir_rules.mk\r
76 -include src/subdir_rules.mk\r
77 -include src/sysbios/subdir_rules.mk\r
78 -include objects.mk\r
79 \r
80 ifneq ($(MAKECMDGOALS),clean)\r
81 ifneq ($(strip $(S_DEPS)),)\r
82 -include $(S_DEPS)\r
83 endif\r
84 ifneq ($(strip $(S_UPPER_DEPS)),)\r
85 -include $(S_UPPER_DEPS)\r
86 endif\r
87 ifneq ($(strip $(S62_DEPS)),)\r
88 -include $(S62_DEPS)\r
89 endif\r
90 ifneq ($(strip $(C64_DEPS)),)\r
91 -include $(C64_DEPS)\r
92 endif\r
93 ifneq ($(strip $(ASM_DEPS)),)\r
94 -include $(ASM_DEPS)\r
95 endif\r
96 ifneq ($(strip $(CC_DEPS)),)\r
97 -include $(CC_DEPS)\r
98 endif\r
99 ifneq ($(strip $(SV7A_DEPS)),)\r
100 -include $(SV7A_DEPS)\r
101 endif\r
102 ifneq ($(strip $(S55_DEPS)),)\r
103 -include $(S55_DEPS)\r
104 endif\r
105 ifneq ($(strip $(C67_DEPS)),)\r
106 -include $(C67_DEPS)\r
107 endif\r
108 ifneq ($(strip $(CLA_DEPS)),)\r
109 -include $(CLA_DEPS)\r
110 endif\r
111 ifneq ($(strip $(C??_DEPS)),)\r
112 -include $(C??_DEPS)\r
113 endif\r
114 ifneq ($(strip $(CPP_DEPS)),)\r
115 -include $(CPP_DEPS)\r
116 endif\r
117 ifneq ($(strip $(S??_DEPS)),)\r
118 -include $(S??_DEPS)\r
119 endif\r
120 ifneq ($(strip $(C_DEPS)),)\r
121 -include $(C_DEPS)\r
122 endif\r
123 ifneq ($(strip $(C62_DEPS)),)\r
124 -include $(C62_DEPS)\r
125 endif\r
126 ifneq ($(strip $(CXX_DEPS)),)\r
127 -include $(CXX_DEPS)\r
128 endif\r
129 ifneq ($(strip $(C++_DEPS)),)\r
130 -include $(C++_DEPS)\r
131 endif\r
132 ifneq ($(strip $(ASM_UPPER_DEPS)),)\r
133 -include $(ASM_UPPER_DEPS)\r
134 endif\r
135 ifneq ($(strip $(K_DEPS)),)\r
136 -include $(K_DEPS)\r
137 endif\r
138 ifneq ($(strip $(C43_DEPS)),)\r
139 -include $(C43_DEPS)\r
140 endif\r
141 ifneq ($(strip $(INO_DEPS)),)\r
142 -include $(INO_DEPS)\r
143 endif\r
144 ifneq ($(strip $(S67_DEPS)),)\r
145 -include $(S67_DEPS)\r
146 endif\r
147 ifneq ($(strip $(SA_DEPS)),)\r
148 -include $(SA_DEPS)\r
149 endif\r
150 ifneq ($(strip $(S43_DEPS)),)\r
151 -include $(S43_DEPS)\r
152 endif\r
153 ifneq ($(strip $(OPT_DEPS)),)\r
154 -include $(OPT_DEPS)\r
155 endif\r
156 ifneq ($(strip $(PDE_DEPS)),)\r
157 -include $(PDE_DEPS)\r
158 endif\r
159 ifneq ($(strip $(S64_DEPS)),)\r
160 -include $(S64_DEPS)\r
161 endif\r
162 ifneq ($(strip $(C_UPPER_DEPS)),)\r
163 -include $(C_UPPER_DEPS)\r
164 endif\r
165 ifneq ($(strip $(C55_DEPS)),)\r
166 -include $(C55_DEPS)\r
167 endif\r
168 endif\r
169 \r
170 -include ../makefile.defs\r
171 \r
172 # Add inputs and outputs from these tool invocations to the build variables \r
173 EXE_OUTPUTS += \
174 audioAnalogLoopbackTest.out \
175 \r
176 EXE_OUTPUTS__QUOTED += \
177 "audioAnalogLoopbackTest.out" \
178 \r
179 BIN_OUTPUTS += \
180 audioAnalogLoopbackTest.hex \
181 \r
182 BIN_OUTPUTS__QUOTED += \
183 "audioAnalogLoopbackTest.hex" \
184 \r
185 \r
186 # All Target\r
187 all: audioAnalogLoopbackTest.out\r
188 \r
189 # Tool invocations\r
190 audioAnalogLoopbackTest.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)\r
191         @echo 'Building target: $@'\r
192         @echo 'Invoking: C6000 Linker'\r
193         "$(C6X_GEN_INSTALL_PATH)/bin/cl6x" -mv6600 --abi=eabi --opt_for_speed=5 -g --define=DEVICE_K2G --define=SOC_K2G --define=evmK2G --define=PLATFORM_INIT_IN --define=BUILD_DSP --diag_warning=225 --diag_wrap=off --display_error_number -z -m"audioAnalogLoopbackTest.map" --stack_size=0x2000 -i"${C6X_GEN_INSTALL_PATH}/lib" -i"${C6X_GEN_INSTALL_PATH}/include" -i"${PDK_INSTALL_PATH}/ti/board/lib/evmK2G/c66/release" -i"${PDK_INSTALL_PATH}/ti/addon/cmbk2g/lib/k2g/c66/release" -i"${PDK_INSTALL_PATH}/ti/drv/mcasp/lib/k2g/c66/release" -i"${AER_INSTALL_PATH}/packages/ti/mas/aer/lib" -i"${VOLIB_INSTALL_PATH}/packages/ti/mas/" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="audioAnalogLoopbackTest_linkInfo.xml" --rom_model -o "audioAnalogLoopbackTest.out" $(ORDERED_OBJS)\r
194         @echo 'Finished building target: $@'\r
195         @echo ' '\r
196 \r
197 audioAnalogLoopbackTest.hex: $(EXE_OUTPUTS)\r
198         @echo 'Invoking: C6000 Hex Utility'\r
199         "${C6X_GEN_INSTALL_PATH}/bin/hex6x"  -o "audioAnalogLoopbackTest.hex" $(EXE_OUTPUTS__QUOTED)\r
200         @echo 'Finished building: $@'\r
201         @echo ' '\r
202 \r
203 # Other Targets\r
204 clean:\r
205         -$(RM) $(GEN_MISC_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED)\r
206         -$(RMDIR) $(GEN_MISC_DIRS__QUOTED)\r
207         -$(RM) "fil.d" "mhm.d" "mss.d" "mssproc.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "syseram.d" "sysiram.d" "sysmss.d" "src\audio_dc_cfg.d" "src\edma_cfg.d" "src\main.d" "src\mcasp_cfg.d" "src\mcasp_osal.d" "src\sample_cs.d" "src\sample_k2g_cfg.d" "src\sample_k2g_int_reg.d" "src\sine.d" "src\test_exit.d" \r
208         -$(RM) "fil.obj" "mhm.obj" "mss.obj" "mssproc.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "syseram.obj" "sysiram.obj" "sysmss.obj" "src\audio_dc_cfg.obj" "src\edma_cfg.obj" "src\main.obj" "src\mcasp_cfg.obj" "src\mcasp_osal.obj" "src\sample_cs.obj" "src\sample_k2g_cfg.obj" "src\sample_k2g_int_reg.obj" "src\sine.obj" "src\test_exit.obj" \r
209         -@echo 'Finished clean'\r
210         -@echo ' '\r
211 \r
212 .PHONY: all clean dependents\r
213 .SECONDARY:\r
214 \r
215 -include ../makefile.targets\r
216 \r