realtime_demo_bios: remove the reference to the mcasp_osal.c
[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 "./sysdrc.obj" \\r
26 "./syseram.obj" \
27 "./sysiram.obj" \
28 "./sysmss.obj" \
29 "./src/audio_cfg.obj" \\r
30 "./src/edma_cfg.obj" \
31 "./src/main.obj" \
32 "./src/mcasp_cfg.obj" \
33 "./src/sample_cs.obj" \
34 "./src/sample_k2g_cfg.obj" \
35 "./src/sample_k2g_int_reg.obj" \
36 "./src/test_exit.obj" \
37 "../src/sysbios/BIOS.obj" \
38 "../src/sysbios/c62_TaskSupport_asm.obj" \
39 "../src/sysbios/c64p_Exception_asm.obj" \
40 "../src/sysbios/c64p_Hwi_asm.obj" \
41 "../src/sysbios/c64p_Hwi_asm_switch.obj" \
42 "../src/sysbios/c64p_Hwi_disp_always.obj" \
43 "../src/sysbios/ti_tls_get_tp.obj" \
44 "../src/sysbios/timer64_Timer_asm.obj" \
45 "../bflinker.cmd" \
46 $(GEN_CMDS__FLAG) \
47 -llibc.a \
48 -lti.addon.cmb.ae66 \\r
49 -lti.board.ae66 \
50 -lti.drv.mcasp.ae66 \
51 -laer_c.ae64P \
52 -lvpe/lib/vpe_a.ae66 \
53 -lvpe/lib/vpe_c.ae66 \
54 -lutil/lib/util_c.ae66 \
55 -lmhm/lib/mhm_c.ae66 \
56 \r
57 -include ../makefile.init\r
58 \r
59 OS := $(shell uname)\r
60 ifeq ($(OS), Linux)\r
61 RM := rm -f\r
62 RMDIR := rm -d -f -r\r
63 else\r
64 RM := rm -f\r
65 RMDIR := rm -r -f\r
66 endif\r
67 \r
68 # All of the sources participating in the build are defined here\r
69 -include sources.mk\r
70 -include subdir_vars.mk\r
71 -include src/subdir_vars.mk\r
72 -include src/sysbios/subdir_vars.mk\r
73 -include subdir_rules.mk\r
74 -include src/subdir_rules.mk\r
75 -include src/sysbios/subdir_rules.mk\r
76 -include objects.mk\r
77 \r
78 ifneq ($(MAKECMDGOALS),clean)\r
79 ifneq ($(strip $(S_DEPS)),)\r
80 -include $(S_DEPS)\r
81 endif\r
82 ifneq ($(strip $(S_UPPER_DEPS)),)\r
83 -include $(S_UPPER_DEPS)\r
84 endif\r
85 ifneq ($(strip $(S62_DEPS)),)\r
86 -include $(S62_DEPS)\r
87 endif\r
88 ifneq ($(strip $(C64_DEPS)),)\r
89 -include $(C64_DEPS)\r
90 endif\r
91 ifneq ($(strip $(ASM_DEPS)),)\r
92 -include $(ASM_DEPS)\r
93 endif\r
94 ifneq ($(strip $(CC_DEPS)),)\r
95 -include $(CC_DEPS)\r
96 endif\r
97 ifneq ($(strip $(SV7A_DEPS)),)\r
98 -include $(SV7A_DEPS)\r
99 endif\r
100 ifneq ($(strip $(S55_DEPS)),)\r
101 -include $(S55_DEPS)\r
102 endif\r
103 ifneq ($(strip $(C67_DEPS)),)\r
104 -include $(C67_DEPS)\r
105 endif\r
106 ifneq ($(strip $(CLA_DEPS)),)\r
107 -include $(CLA_DEPS)\r
108 endif\r
109 ifneq ($(strip $(C??_DEPS)),)\r
110 -include $(C??_DEPS)\r
111 endif\r
112 ifneq ($(strip $(CPP_DEPS)),)\r
113 -include $(CPP_DEPS)\r
114 endif\r
115 ifneq ($(strip $(S??_DEPS)),)\r
116 -include $(S??_DEPS)\r
117 endif\r
118 ifneq ($(strip $(C_DEPS)),)\r
119 -include $(C_DEPS)\r
120 endif\r
121 ifneq ($(strip $(C62_DEPS)),)\r
122 -include $(C62_DEPS)\r
123 endif\r
124 ifneq ($(strip $(CXX_DEPS)),)\r
125 -include $(CXX_DEPS)\r
126 endif\r
127 ifneq ($(strip $(C++_DEPS)),)\r
128 -include $(C++_DEPS)\r
129 endif\r
130 ifneq ($(strip $(ASM_UPPER_DEPS)),)\r
131 -include $(ASM_UPPER_DEPS)\r
132 endif\r
133 ifneq ($(strip $(K_DEPS)),)\r
134 -include $(K_DEPS)\r
135 endif\r
136 ifneq ($(strip $(C43_DEPS)),)\r
137 -include $(C43_DEPS)\r
138 endif\r
139 ifneq ($(strip $(INO_DEPS)),)\r
140 -include $(INO_DEPS)\r
141 endif\r
142 ifneq ($(strip $(S67_DEPS)),)\r
143 -include $(S67_DEPS)\r
144 endif\r
145 ifneq ($(strip $(SA_DEPS)),)\r
146 -include $(SA_DEPS)\r
147 endif\r
148 ifneq ($(strip $(S43_DEPS)),)\r
149 -include $(S43_DEPS)\r
150 endif\r
151 ifneq ($(strip $(OPT_DEPS)),)\r
152 -include $(OPT_DEPS)\r
153 endif\r
154 ifneq ($(strip $(PDE_DEPS)),)\r
155 -include $(PDE_DEPS)\r
156 endif\r
157 ifneq ($(strip $(S64_DEPS)),)\r
158 -include $(S64_DEPS)\r
159 endif\r
160 ifneq ($(strip $(C_UPPER_DEPS)),)\r
161 -include $(C_UPPER_DEPS)\r
162 endif\r
163 ifneq ($(strip $(C55_DEPS)),)\r
164 -include $(C55_DEPS)\r
165 endif\r
166 endif\r
167 \r
168 -include ../makefile.defs\r
169 \r
170 # Add inputs and outputs from these tool invocations to the build variables \r
171 EXE_OUTPUTS += \
172 K2G_bf_rt.out \\r
173 \r
174 EXE_OUTPUTS__QUOTED += \
175 "K2G_bf_rt.out" \\r
176 \r
177 BIN_OUTPUTS += \
178 K2G_bf_rt.hex \\r
179 \r
180 BIN_OUTPUTS__QUOTED += \
181 "K2G_bf_rt.hex" \\r
182 \r
183 \r
184 # All Target\r
185 all: K2G_bf_rt.out\r
186 \r
187 # Tool invocations\r
188 K2G_bf_rt.out: $(OBJS) $(CMD_SRCS) $(GEN_CMDS)\r
189         @echo 'Building target: $@'\r
190         @echo 'Invoking: C6000 Linker'\r
191         "$(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"K2G_bf_rt.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/cmb/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="K2G_bf_rt_linkInfo.xml" --rom_model -o "K2G_bf_rt.out" $(ORDERED_OBJS)\r
192         @echo 'Finished building target: $@'\r
193         @echo ' '\r
194 \r
195 K2G_bf_rt.hex: $(EXE_OUTPUTS)\r
196         @echo 'Invoking: C6000 Hex Utility'\r
197         "${C6X_GEN_INSTALL_PATH}/bin/hex6x"  -o "K2G_bf_rt.hex" $(EXE_OUTPUTS__QUOTED)\r
198         @echo 'Finished building: $@'\r
199         @echo ' '\r
200 \r
201 # Other Targets\r
202 clean:\r
203         -$(RM) $(GEN_MISC_FILES__QUOTED)$(EXE_OUTPUTS__QUOTED)$(GEN_FILES__QUOTED)$(BIN_OUTPUTS__QUOTED)$(GEN_OPTS__QUOTED)$(GEN_CMDS__QUOTED)\r
204         -$(RMDIR) $(GEN_MISC_DIRS__QUOTED)\r
205         -$(RM) "fil.d" "mhm.d" "mss.d" "mssproc.d" "sys.d" "sysasnr.d" "sysbf.d" "sysbfflt.d" "sysdrc.d" "syseram.d" "sysiram.d" "sysmss.d" "src\audio_cfg.d" "src\edma_cfg.d" "src\main.d" "src\mcasp_cfg.d" "src\sample_cs.d" "src\sample_k2g_cfg.d" "src\sample_k2g_int_reg.d" "src\test_exit.d" \r
206         -$(RM) "fil.obj" "mhm.obj" "mss.obj" "mssproc.obj" "sys.obj" "sysasnr.obj" "sysbf.obj" "sysbfflt.obj" "sysdrc.obj" "syseram.obj" "sysiram.obj" "sysmss.obj" "src\audio_cfg.obj" "src\edma_cfg.obj" "src\main.obj" "src\mcasp_cfg.obj" "src\sample_cs.obj" "src\sample_k2g_cfg.obj" "src\sample_k2g_int_reg.obj" "src\test_exit.obj" \r
207         -@echo 'Finished clean'\r
208         -@echo ' '\r
209 \r
210 .PHONY: all clean dependents\r
211 .SECONDARY:\r
212 \r
213 -include ../makefile.targets\r
214 \r