Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
toki
build-systems
yocto
meta-toki
Commits
a5928815
Commit
a5928815
authored
Mar 06, 2020
by
Johannes Wiesboeck
Committed by
Oliver Horst
Aug 18, 2020
Browse files
[chg] Route core information for toki-init through CMake.
parent
c03bb575
Changes
1
Hide whitespace changes
Inline
Side-by-side
recipes-core/toki/toki-amp-instance_git.bb
View file @
a5928815
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment