File tree Expand file tree Collapse file tree 5 files changed +8
-1
lines changed Expand file tree Collapse file tree 5 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,12 @@ jobs:
28
28
. oe-init-build-env
29
29
mv ../../sstate-cache . || true
30
30
bitbake-layers add-layer ../../meta-openembedded/meta-oe
31
- bitbake-layers add-layer ../../meta-rust
31
+ sed -ie "/^BBLAYERS/a $(readlink -f ../../meta-rust) \\\\" conf/bblayers.conf
32
32
echo 'PARALLEL_MAKE:pn-rust-llvm-native = "-j2"' >> conf/local.conf
33
33
echo 'TOOLCHAIN_HOST_TASK:append = " packagegroup-rust-cross-canadian-${MACHINE}"' >> conf/local.conf
34
34
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' >> conf/local.conf
35
35
echo 'INHERIT:remove = "uninative"' >> conf/local.conf
36
+ echo 'require conf/distro/include/rust_versions.inc' >> conf/local.conf
36
37
- name : Run bitbake
37
38
run : |
38
39
cd poky
Original file line number Diff line number Diff line change
1
+ classes/
Original file line number Diff line number Diff line change 8
8
#
9
9
10
10
python () {
11
+ import sys
12
+ layerdir = d . getVar ("RUSTLAYER" )
13
+ sys . path . insert (0 , layerdir + "/lib" )
11
14
import crate
12
15
bb . fetch2 . methods . append ( crate . Crate () )
13
16
}
Original file line number Diff line number Diff line change 1
1
# We have a conf and classes directory, append to BBPATH
2
+ RUSTLAYER = "${LAYERDIR}"
2
3
BBPATH .= ":${LAYERDIR}"
3
4
4
5
# We have a recipes directory, add to BBFILES
Original file line number Diff line number Diff line change
1
+ S = "${RUSTSRC} /library/sysroot"
You can’t perform that action at this time.
0 commit comments