The SDK fails to build with a dependency error: Problem: package packagegroup-rust-cross-canadian-qemux86 requires rust-cross-canadian-x86-64, but none of the providers can be installed - conflicting requests - nothing provides libc.so.6(GLIBC_2.34)(64bit) - nothing provides libstdc++.so.6(GLIBCXX_3.4.29)(64bit)
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
on: [pull_request]
|
|
jobs:
|
|
build:
|
|
env:
|
|
YOCTO_VERSION: 3.3.2
|
|
YOCTO_BRANCH: hardknott
|
|
runs-on: self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
path: 'meta-rust'
|
|
- name: Fetch poky
|
|
run: |
|
|
mv poky/build/sstate-cache . || true
|
|
rm -rf poky meta-openembedded
|
|
git clone -b $YOCTO_BRANCH --single-branch git://git.yoctoproject.org/poky
|
|
git clone -b $YOCTO_BRANCH --single-branch git://git.openembedded.org/meta-openembedded
|
|
- name: Configure build
|
|
run: |
|
|
cd poky
|
|
. oe-init-build-env
|
|
mv ../../sstate-cache . || true
|
|
bitbake-layers add-layer ../../meta-openembedded/meta-oe
|
|
bitbake-layers add-layer ../../meta-rust
|
|
echo 'PARALLEL_MAKE:pn-rust-llvm-native = "-j2"' >> conf/local.conf
|
|
echo 'TOOLCHAIN_HOST_TASK:append = " packagegroup-rust-cross-canadian-${MACHINE}"' >> conf/local.conf
|
|
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' >> conf/local.conf
|
|
echo 'INHERIT_remove = "uninative"' >> conf/local.conf
|
|
- name: Run bitbake
|
|
run: |
|
|
cd poky
|
|
. oe-init-build-env
|
|
bitbake rust-hello-world
|