aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMahesh Radhakrishnan2019-08-05 09:55:54 -0500
committerMahesh Radhakrishnan2019-08-29 07:49:20 -0500
commite497163a4596a9854a4d51c2f4088d3fb1e44bc1 (patch)
tree2d7fd86f0e191f0a73e923f70fffe35fde178c03
parent75067daea2bbdb871d6f16771333fa779999cde6 (diff)
downloadprocessor-pdk-build-e497163a4596a9854a4d51c2f4088d3fb1e44bc1.tar.gz
processor-pdk-build-e497163a4596a9854a4d51c2f4088d3fb1e44bc1.tar.xz
processor-pdk-build-e497163a4596a9854a4d51c2f4088d3fb1e44bc1.zip
PRSDK-6233: Cleaning up debug code
-rwxr-xr-xcomp_top.mk15
-rw-r--r--makerules/component.mk5
2 files changed, 19 insertions, 1 deletions
diff --git a/comp_top.mk b/comp_top.mk
index ff8f59c..5c37706 100755
--- a/comp_top.mk
+++ b/comp_top.mk
@@ -59,6 +59,11 @@ else
59 CORE_LIST_ALL = $($(COMP)_$(SOC)_CORELIST) 59 CORE_LIST_ALL = $($(COMP)_$(SOC)_CORELIST)
60endif 60endif
61 61
62# For core indpendent libraries, chose the 'base' core the other cores' target can depend on
63LIM_CORE_BASE_LIST := $(foreach core_type,$(DEFAULT_CORE_TYPES),$(firstword $(filter $(core_type)%,$(CORE_LIST_ALL))))
64# The rest of the cores, i.e (CORE_LIST_ALL - LIM_CORE_BASE_LIST). These will depend on the LIM_CORE_BASE_LIST
65LIM_CORE_REST_LIST := $(filter-out $(LIM_CORE_BASE_LIST),$(CORE_LIST_ALL))
66
62PRUCORE_LIST = pru_0 pru_1 67PRUCORE_LIST = pru_0 pru_1
63 68
64# If the component enables this, parallel builds are disabled for this component 69# If the component enables this, parallel builds are disabled for this component
@@ -73,6 +78,9 @@ ifeq ($(lib_$(COMP)_BUILD_DEPENDENCY),board)
73 lib_BOARD_SOC_LIST_ALL = $(addsuffix _lib, $(BOARD_LIST_ALL)) 78 lib_BOARD_SOC_LIST_ALL = $(addsuffix _lib, $(BOARD_LIST_ALL))
74endif 79endif
75lib_CORE_LIST_ALL = $(addsuffix _lib, $(filter-out $(PRUCORE_LIST),$(CORE_LIST_ALL))) 80lib_CORE_LIST_ALL = $(addsuffix _lib, $(filter-out $(PRUCORE_LIST),$(CORE_LIST_ALL)))
81lib_CORE_LIST_BASE = $(addsuffix _lib, $(filter-out $(PRUCORE_LIST),$(LIM_CORE_BASE_LIST)))
82lib_CORE_LIST_REST = $(addsuffix _lib, $(filter-out $(PRUCORE_LIST),$(LIM_CORE_REST_LIST)))
83
76lib_LIB_ENDIAN_LIST = $(addsuffix _lib, $(LIB_ENDIAN_LIST)) 84lib_LIB_ENDIAN_LIST = $(addsuffix _lib, $(LIB_ENDIAN_LIST))
77ifeq ($(lib_$(COMP)_BUILD_DEPENDENCY),soc) 85ifeq ($(lib_$(COMP)_BUILD_DEPENDENCY),soc)
78 lib_BOARD_SOC_LIST_ALL_CLEAN = $(addsuffix _lclean, $(SOC_LIST_ALL)) 86 lib_BOARD_SOC_LIST_ALL_CLEAN = $(addsuffix _lclean, $(SOC_LIST_ALL))
@@ -302,7 +310,12 @@ tar: lib firm xdc_meta doxygen
302 310
303lib: $(lib_BOARD_SOC_LIST_ALL) 311lib: $(lib_BOARD_SOC_LIST_ALL)
304 312
305libcores: $(lib_CORE_LIST_ALL) 313# First build the libraries for base cores, then followed by the rest
314libcores: libcores_base_cores
315 $(MAKE) libcores_rest_cores
316
317libcores_base_cores: $(lib_CORE_LIST_BASE)
318libcores_rest_cores: $(lib_CORE_LIST_REST)
306 319
307lib_allendians: $(lib_LIB_ENDIAN_LIST) 320lib_allendians: $(lib_LIB_ENDIAN_LIST)
308 321
diff --git a/makerules/component.mk b/makerules/component.mk
index 9f8ebae..d847a3e 100644
--- a/makerules/component.mk
+++ b/makerules/component.mk
@@ -96,6 +96,11 @@ DEFAULT_am65xx_CORELIST = mcu1_0 mpu1_0
96DEFAULT_j721e_CORELIST = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 c66xdsp_1 c66xdsp_2 c7x_1 c7x-hostemu 96DEFAULT_j721e_CORELIST = mpu1_0 mcu1_0 mcu1_1 mcu2_0 mcu2_1 mcu3_0 mcu3_1 c66xdsp_1 c66xdsp_2 c7x_1 c7x-hostemu
97DEFAULT_k3_CORELIST = m3 97DEFAULT_k3_CORELIST = m3
98 98
99# Core types (without the core IDs). This will be used to parse and order the establish the order of cores
100# in the case of building libraries for multiple cores
101
102DEFAULT_CORE_TYPES = a15 ipu c66x arp32 a8host a9host c674x arm9 c7x c7x-hostemu mpu mcu
103
99# Component specific CFLAGS 104# Component specific CFLAGS
100PDK_CFLAGS = 105PDK_CFLAGS =
101PDK_LNKFLAGS = 106PDK_LNKFLAGS =