-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 2.3 KB
/
build-core-image-minimal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build core-image-minimal
on: [ push, workflow_dispatch, pull_request ]
env:
YOCTO_BUILD_PATH: /tmp/yocto-test-build/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Build Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
chrpath \
cpio \
diffstat \
file \
gawk \
git \
iproute2 \
iptables \
iputils-ping \
libncurses-dev \
locales \
lz4 \
python3 \
python3-distutils \
wget \
zstd
- name: setup yocto
run: |
sudo locale-gen en_US.UTF-8
mkdir -p $YOCTO_BUILD_PATH
git clone -b kirkstone git://git.yoctoproject.org/poky.git $YOCTO_BUILD_PATH/poky
git clone -b kirkstone https://github.com/openembedded/meta-openembedded.git $YOCTO_BUILD_PATH/meta-openembedded
ln -s $(pwd) $YOCTO_BUILD_PATH/meta-elos
cd $YOCTO_BUILD_PATH
. poky/oe-init-build-env
- name: Setup meta-elos
run: |
echo 'MACHINE = "qemux86"' >> $YOCTO_BUILD_PATH/build/conf/local.conf
echo 'IMAGE_INSTALL += "elos-daemon"' >> $YOCTO_BUILD_PATH/build/conf/local.conf
echo 'BB_STRICT_CHECKSUM:forcevariable = "0"' >> $YOCTO_BUILD_PATH/build/conf/local.conf
echo 'BBLAYERS += "' $YOCTO_BUILD_PATH/meta-elos/ '"' >> $YOCTO_BUILD_PATH/build/conf/bblayers.conf
echo 'BBLAYERS += "' $YOCTO_BUILD_PATH/meta-openembedded/meta-oe/ '"' >> $YOCTO_BUILD_PATH/build/conf/bblayers.conf
echo 'BBLAYERS += "' $YOCTO_BUILD_PATH/meta-openembedded/meta-networking/ '"' >> $YOCTO_BUILD_PATH/build/conf/bblayers.conf
echo 'BBLAYERS += "' $YOCTO_BUILD_PATH/meta-openembedded/meta-python/ '"' >> $YOCTO_BUILD_PATH/build/conf/bblayers.conf
- name: create image
run: |
cd $YOCTO_BUILD_PATH
. poky/oe-init-build-env
# bitbake -n core-image-minimal
bitbake-layers show-layers
bitbake elos
- name: save yocto image artifacts
uses: actions/upload-artifact@v4
with:
name: Yocto image artefacts
path: $YOCTO_BUILD_PATH/build/tmp/deploy