]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - psdk_cust/libarch_k2g_1_0_1_0/examples/dsponly/Makefile.libomp
PASDK-376:Clean up ARM linker command file
[processor-sdk/performance-audio-sr.git] / psdk_cust / libarch_k2g_1_0_1_0 / examples / dsponly / Makefile.libomp
1 #
2 # Makefile.libomp
3 #
6 #
7 # Check if required environment variables are defined
8 #
10 ifneq ($(MAKECMDGOALS),clean)
11 ifeq ($(OMP_DIR),)
12 $(call error,ERROR - OMP_DIR NOT DEFINED)
13 endif
15 ifeq ($(XDC_DIR),)
16 $(call error,ERROR - XDC_DIR NOT DEFINED)
17 endif
19 # Path to C6000 compiler tools
20 ifeq ($(CGTROOT),)
21 $(call error,ERROR - CGTROOT NOT DEFINED)
22 endif
24 # Paths to BIOS, IPC modules
25 ifeq ($(USE_BIOS),1)
26 ifeq ($(BIOS_DIR),)
27 $(call error,ERROR - BIOS_DIR NOT DEFINED)
28 endif
29 ifeq ($(IPC_DIR),)
30 $(call error,ERROR - IPC_DIR NOT DEFINED)
31 endif
32 endif
33 endif
36 # Configuration file used (without the .cfg extension)
37 ifeq ($(USE_BIOS),1)
38 CFGDIR     = omp_config
39 else
40 CFGDIR     = omp_config_bm
41 endif
43 # Set BUILD_TYPE to debug/release to pick appropriate libraries
44 BUILD_TYPE  = release
46 # Platform file
47 ifeq ($(TARGET),SOC_AM572x)
48 XDCPLATFORM = ti.runtime.openmp.platforms.am57x
49 else ifeq ($(TARGET),SOC_C6678)
50 XDCPLATFORM = ti.runtime.openmp.platforms.evm6678
51 else ifeq ($(TARGET),SOC_K2H)
52 XDCPLATFORM = ti.runtime.openmp.platforms.evmTCI6636K2H
53 endif
56 # Include . to find config.bld
57 ifeq ($(USE_BIOS),1)
58 XDCPATH = $(PDK_DIR)/packages;$(OMP_DIR)/packages;$(BIOS_DIR)/packages;$(IPC_DIR)/packages;$(FC_DIR)/packages;$(XDAIS_DIR)/packages;$(EDMA3_DIR)/packages;.
59 else
60 XDCPATH = $(PDK_DIR)/packages;$(OMP_DIR)/packages;$(BIOS_DIR)/packages;.
61 endif
63 XS              = $(XDC_DIR)/xs
64 XDC             = $(XDC_DIR)/xdc
65 XDCTARGET       = ti.targets.elf.C66
67 # Generate and build libomp config packages
68 libomp_config:
69         @echo making $(CFGDIR) files
70         $(XS) --xdcpath "$(XDCPATH)" xdc.tools.configuro -c $(CGTROOT) --cb -t $(XDCTARGET) -p $(XDCPLATFORM) -r $(BUILD_TYPE) $(CFGDIR).cfg
72 libomp_clean:
73         @echo Removing $(CFGDIR)
74         @rm -rf $(CFGDIR)/