mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
rust-target-config: Allow the targets generated to be configurable
Remove further code duplication by allowing the main function to be configurable. (From OE-Core rev: 2d4b35a0db1220e7a7f1b6776223aa4d40a3f246) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -25,13 +25,7 @@ DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDP
|
||||
-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
|
||||
"
|
||||
|
||||
python do_rust_gen_targets () {
|
||||
wd = d.getVar('WORKDIR') + '/targets/'
|
||||
# Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last
|
||||
rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH'))
|
||||
rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH'))
|
||||
rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH'))
|
||||
}
|
||||
RUST_TARGETGENS = "BUILD HOST TARGET"
|
||||
|
||||
INHIBIT_DEFAULT_RUST_DEPS = "1"
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
python do_rust_gen_targets () {
|
||||
wd = d.getVar('WORKDIR') + '/targets/'
|
||||
# Order of BUILD, HOST, TARGET is important in case the files overwrite, most specific last
|
||||
rust_gen_target(d, 'BUILD', wd, d.getVar('BUILD_ARCH'))
|
||||
rust_gen_target(d, 'HOST', wd, d.getVar('HOST_ARCH'))
|
||||
rust_gen_target(d, 'TARGET', wd, d.getVar('TARGET_ARCH'))
|
||||
}
|
||||
RUST_TARGETGENS = "BUILD HOST TARGET"
|
||||
|
||||
# Otherwise we'll depend on what we provide
|
||||
INHIBIT_DEFAULT_RUST_DEPS = "1"
|
||||
|
||||
Reference in New Issue
Block a user