Skip to content

Commit ae8de0e

Browse files
authored
Merge pull request #214 from SoftwareDefinedVehicle/mhcleanup1
General cleanup
2 parents d3e31d3 + bd9d005 commit ae8de0e

25 files changed

+129
-128
lines changed

.config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,37 +51,37 @@ repos:
5151
# bblayers.conf:
5252
poky:
5353
url: "https://git.yoctoproject.org/git/poky"
54-
refspec: kirkstone
54+
branch: kirkstone
5555
layers:
5656
meta:
5757
meta-poky:
5858
meta-yocto-bsp:
5959
meta-lts-mixins-rust:
6060
url: "https://git.yoctoproject.org/git/meta-lts-mixins"
61-
refspec: kirkstone/rust-1.68
61+
branch: kirkstone/rust-1.68
6262
meta-lts-mixins-go:
6363
url: "https://git.yoctoproject.org/git/meta-lts-mixins"
64-
refspec: kirkstone/go
64+
branch: kirkstone/go
6565
meta-clang:
6666
url: https://github.com/kraj/meta-clang
67-
refspec: kirkstone
67+
branch: kirkstone
6868
meta-rauc-community:
6969
url: "https://github.com/rauc/meta-rauc-community.git"
70-
refspec: kirkstone
70+
branch: kirkstone
7171
layers:
7272
meta-rauc-qemux86:
7373
meta-rauc:
7474
url: "https://github.com/rauc/meta-rauc.git"
75-
refspec: kirkstone
75+
branch: kirkstone
7676
meta-kanto:
7777
url: "https://github.com/eclipse-kanto/meta-kanto.git"
78-
refspec: kirkstone
78+
branch: kirkstone
7979
meta-virtualization:
8080
url: "https://git.yoctoproject.org/meta-virtualization"
81-
refspec: kirkstone
81+
branch: kirkstone
8282
meta-openembedded:
8383
url: "https://git.openembedded.org/meta-openembedded"
84-
refspec: kirkstone
84+
branch: kirkstone
8585
layers:
8686
meta-oe:
8787
meta-filesystems:

.devcontainer/Dockerfile

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,13 @@
1212
# ********************************************************************************/
1313

1414
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/debian/.devcontainer/base.Dockerfile
15-
16-
# [Choice] Debian version (use bullseye on local arm64/Apple Silicon): bullseye, buster
17-
ARG VARIANT="buster"
18-
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT}
19-
20-
# ** [Optional] Uncomment this section to install additional packages. **
21-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
22-
# && apt-get -y install --no-install-recommends <your-package-list-here>
15+
FROM mcr.microsoft.com/devcontainers/base:debian
2316

2417
# Install Dependencies
2518
RUN apt-get update
2619
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends socat file gawk wget acl git diffstat unzip texinfo \
2720
gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \
28-
iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit \
21+
iputils-ping python3-git python3-jinja2 libsdl1.2-dev pylint xterm python3-subunit \
2922
mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq \
3023
libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm \
3124
squashfs-tools rauc python3-newt
@@ -35,21 +28,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates \
3528
gnupg \
3629
lsb-release
3730

38-
# Install blobfuse2 since blobfuse1 is not avaialable in MS repos for Debian 11
39-
RUN sudo apt-get -y install software-properties-common \
40-
&& curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - \
41-
&& sudo apt-add-repository https://packages.microsoft.com/debian/11/prod/ \
42-
&& sudo apt-get -y update \
43-
&& sudo apt-get -y install libfuse3-dev fuse3 blobfuse2
44-
45-
# Update RAUC to 1.8.1 from Debian Testing channel
46-
RUN sudo apt-add-repository 'deb http://deb.debian.org/debian/ testing main' \
47-
&& sudo apt-get -y update \
48-
&& sudo apt-get -y install -t testing rauc
49-
50-
# Try to enable KVM to improve performance of qemu-system-x86 on x86 hosts.
51-
# This is also run in post-attach.sh
52-
RUN /bin/bash -c "(groupadd --system kvm; gpasswd -a vscode kvm; chown root:kvm /dev/kvm; chmod 0660 /dev/kvm; echo 'KVM permissions set up') || true"
53-
5431
# Install kas tool to set up Yocto build environment
55-
RUN pip3 install kas
32+
RUN apt-get install -y pipx
33+
RUN pipx install kas

.devcontainer/devcontainer.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@
1616
"name": "Debian",
1717
"build": {
1818
"dockerfile": "Dockerfile",
19-
// Update 'VARIANT' to pick an Debian version: bullseye, buster
20-
// Use bullseye on local arm64/Apple Silicon.
21-
"args": { "VARIANT": "bullseye" }
19+
"args": {
20+
"HTTP_PROXY": "${localEnv:HTTP_PROXY}",
21+
"HTTPS_PROXY": "${localEnv:HTTPS_PROXY}",
22+
"http_proxy": "${localEnv:http_proxy}",
23+
"https_proxy": "${localEnv:https_proxy}"
24+
}
2225
},
26+
"runArgs": [
27+
"--network=host"
28+
],
2329
"hostRequirements": {
2430
"cpus": 2,
2531
"memory": "4gb",
@@ -39,6 +45,12 @@
3945

4046
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
4147
"remoteUser": "vscode",
48+
"remoteEnv": {
49+
"HTTP_PROXY": "${localEnv:HTTP_PROXY}",
50+
"HTTPS_PROXY": "${localEnv:HTTPS_PROXY}",
51+
"http_proxy": "${localEnv:http_proxy}",
52+
"https_proxy": "${localEnv:https_proxy}"
53+
},
4254
"features": {
4355
"docker-in-docker": "latest",
4456
"github-cli": "latest"

.devcontainer/post-attach.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# sudo gpasswd -a $USER kvm
1818

1919
# Enable KVM Device for access to user (as qemu us run as non-root
20+
echo "Enabling KVM for user access..."
2021
sudo chown root:kvm /dev/kvm
2122
sudo chmod 0660 /dev/kvm
2223

@@ -51,15 +52,16 @@ function azure-mount() {
5152
fi
5253
}
5354

54-
55+
# Local mounting of caches for sstate and downloads
5556
# First arg: local mount point
5657
# Second arg: Name of Azure container
57-
azure-mount "azure-sstate-cache" "yocto-sstate-cache"
58-
azure-mount "azure-downloads-cache" "downloads"
58+
# Example: azure-mount "azure-sstate-cache" "yocto-sstate-cache"
59+
# Example: azure-mount "azure-downloads-cache" "downloads"
5960

6061
# There is a umask issue in GitHub codespaces
6162
# possibly related to: https://github.com/orgs/community/discussions/26026
6263
# which causes some recipes to fail to build, due to wrong permissions (e.g. gpsd)
6364
if [ -n "$CODESPACE_VSCODE_FOLDER" ]; then
65+
echo "Taking ownership of workspace folder for GitHub Codespaces bug #26026..."
6466
take_workspace_ownership $(whoami) ${CODESPACE_VSCODE_FOLDER}
6567
fi

.devcontainer/post-start.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
# * SPDX-License-Identifier: Apache-2.0
1313
# ********************************************************************************/
1414

15-
git clone https://github.com/openembedded/bitbake
16-
bitbake/bin/bitbake-hashserv -b :1234 &
15+
# Optional caching
16+
# git clone https://github.com/openembedded/bitbake
17+
# bitbake/bin/bitbake-hashserv -b :1234 &

.github/workflows/auto-cherry-pick.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
jobs:
2323
cherry_pick_kirkstone:
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-latest
2525
name: Cherry pick into kirkstone
2626
if: contains(github.event.pull_request.labels.*.name, 'kirkstone')
2727
steps:
@@ -36,7 +36,7 @@ jobs:
3636
labels: |
3737
cherry-pick
3838
cherry_pick_honister:
39-
runs-on: ubuntu-22.04
39+
runs-on: ubuntu-latest
4040
name: Cherry pick into honister
4141
if: contains(github.event.pull_request.labels.*.name, 'honister')
4242
steps:

.github/workflows/build-container-images-qemux86-64.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313

1414
name: Build SDV application container images
1515
on:
16-
pull_request:
1716
workflow_dispatch:
1817

1918
jobs:
2019
build-container-images:
2120
name: Build Container Images
22-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-latest
2322
steps:
2423
- name: Checkout
2524
uses: actions/checkout@v3
@@ -28,7 +27,7 @@ jobs:
2827
run: sudo apt-get update -y
2928

3029
- name: Install tools
31-
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
30+
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
3231

3332
- name: Install kas
3433
run: sudo pip3 install kas
@@ -54,11 +53,15 @@ jobs:
5453
path: build/cache
5554
key: bb-cache-local
5655

56+
# See https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2056555
57+
- name: Apply fix for Bitbake on Ubuntu 24
58+
run: sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns
59+
5760
- name: Build container images for Raspberry Pi 4
58-
run: kas build kas/.config-kirkstone-rpi4.yaml:kas/mirrors.yaml --target sdv-container-images
61+
run: kas build kas/.config-kirkstone-rpi4.yaml --target sdv-container-images
5962

6063
- name: Upload Raspberry Pi 4 (64bit) images
61-
uses: actions/upload-artifact@v3
64+
uses: actions/upload-artifact@v4
6265
with:
6366
name: AppContainerImages_RaspberryPi4-64
6467
if-no-files-found: error

.github/workflows/build-container-images-raspberrypi4-64.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313

1414
name: Build SDV application container images
1515
on:
16-
pull_request:
1716
workflow_dispatch:
1817

1918
jobs:
2019
build-container-images:
2120
name: Build Container Images
22-
runs-on: ubuntu-22.04
21+
runs-on: ubuntu-latest
2322
steps:
2423
- name: Checkout
2524
uses: actions/checkout@v3
@@ -28,7 +27,7 @@ jobs:
2827
run: sudo apt-get update -y
2928

3029
- name: Install tools
31-
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
30+
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
3231

3332
- name: Install kas
3433
run: sudo pip3 install kas
@@ -54,11 +53,15 @@ jobs:
5453
path: build/cache
5554
key: bb-cache-local
5655

56+
# See https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2056555
57+
- name: Apply fix for Bitbake on Ubuntu 24
58+
run: sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns
59+
5760
- name: Build container images for QEMU x86-64
58-
run: kas build kas/.config-kirkstone.yaml:kas/mirrors.yaml --target sdv-container-images
61+
run: kas build kas/.config-kirkstone.yaml --target sdv-container-images
5962

6063
- name: Upload QEMU x86-64 images
61-
uses: actions/upload-artifact@v3
64+
uses: actions/upload-artifact@v4
6265
with:
6366
name: AppContainerImages_QEMUx86-64
6467
if-no-files-found: error

.github/workflows/debian-leda-containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
version: '${{ env.package_version }}'
5959
arch: 'all'
6060
desc: 'Core and example container descriptors for Eclipse Leda (Software-Defined Vehicle)'
61-
- uses: actions/upload-artifact@v3
61+
- uses: actions/upload-artifact@v4
6262
with:
6363
name: leda-containers
6464
path:

.github/workflows/dryrun.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ on:
1919
jobs:
2020
mybranch:
2121
name: Yocto (This Branch)
22-
runs-on: ubuntu-22.04
22+
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v3
2626
- name: Update apt
2727
run: sudo apt-get update -y
2828
- name: Install tools
29-
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
29+
run: sudo apt-get install -y --no-install-recommends socat file gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool tmux mc skopeo fdisk ruby-full jq libvirt-clients libvirt-daemon-system qemu-system-x86 qemu-system-arm qemu-kvm squashfs-tools rauc python3-newt ca-certificates curl gnupg lsb-release
3030
- name: Install kas
3131
run: sudo pip3 install kas
3232
- name: Cache Downloads
@@ -47,6 +47,9 @@ jobs:
4747
with:
4848
path: build/cache
4949
key: bb-cache-local
50+
# See https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2056555
51+
- name: Apply fix for Bitbake on Ubuntu 24
52+
run: sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns
5053
- name: DryRun default (qemux86_64)
5154
run: kas build -- --dry-run
5255
- name: DryRun Raspberry Pi 4

0 commit comments

Comments
 (0)