Commit a5928815 authored by Johannes Wiesboeck's avatar Johannes Wiesboeck Committed by Oliver Horst
Browse files

[chg] Route core information for toki-init through CMake.

parent c03bb575
......@@ -3,10 +3,17 @@ python() {
slave_cores = d.getVar("TOKI_SLAVE_CORES", True)
slave_cores_mask = sum(1 << int(i) for i in slave_cores.split())
d.setVar("TOKI_SLAVE_MASK", str(slave_cores_mask))
# bit-mask for all cores including master
master_core = d.getVar("TOKI_MASTER_CORE", True)
all_cores = slave_cores.split() + [master_core]
all_cores_mask = sum(1 << int(i) for i in slave_cores.split())
d.setVar("TOKI_CORE_MASK", str(all_cores_mask))
}
TARGET_LDFLAGS += "-Wl,--defsym,_AMP_USE_CORE=${TOKI_AMP_CORE} \
-Wl,--defsym,__AMP_SLAVE_MASK=${TOKI_SLAVE_MASK} \
-Wl,--defsym,__AMP_NUM_CORES=${@get_toki_num_cores(d)}"
EXTRA_OECMAKE_append = "-DAMP_USE_CORE=${TOKI_AMP_CORE} \
-DAMP_SLAVE_MASK=${TOKI_SLAVE_MASK} \
-DAMP_CORE_MASK=${TOKI_CORE_MASK} \
-DAMP_NUM_CORES=${@get_toki_num_cores(d)}"
require toki-init_git.inc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment