-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mike Haller <mike.haller@bosch.com> Signed-off-by: Stoyan Lachev <stoyan.lachev@bosch.io> Co-authored-by: Mike Haller <mike.haller@bosch.com>
- Loading branch information
1 parent
bce79ab
commit cf2fcb0
Showing
22 changed files
with
603 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# /******************************************************************************** | ||
# * Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
# * | ||
# * See the NOTICE file(s) distributed with this work for additional | ||
# * information regarding copyright ownership. | ||
# * | ||
# * This program and the accompanying materials are made available under the | ||
# * terms of the Apache License 2.0 which is available at | ||
# * https://www.apache.org/licenses/LICENSE-2.0 | ||
# * | ||
# * SPDX-License-Identifier: Apache-2.0 | ||
# ********************************************************************************/ | ||
# Every file needs to contain a header, that provides kas with information | ||
# about the context of this file. | ||
header: | ||
# The `version` entry in the header describes for which configuration | ||
# format version this file was created for. It is used by kas to figure | ||
# out if it is compatible with this file. The version is an integer that | ||
# is increased on every format change. | ||
version: 12 | ||
# The machine as it is written into the `local.conf` of bitbake. | ||
machine: qemux86-64 | ||
# The distro name as it is written into the `local.conf` of bitbake. | ||
distro: leda | ||
target: sdv-image-all | ||
local_conf_header: | ||
meta-leda: | | ||
INHERIT:append = " rm_work" | ||
INHERIT:remove = " archiver" | ||
INHERIT:remove = " cve-check" | ||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
repos: | ||
# This entry includes the repository where the config file is located | ||
# to the bblayers.conf: | ||
# Here we include a list of layers from the poky repository to the | ||
# bblayers.conf: | ||
poky: | ||
url: "https://git.yoctoproject.org/git/poky" | ||
refspec: kirkstone | ||
layers: | ||
meta: | ||
meta-poky: | ||
meta-yocto-bsp: | ||
meta-rauc-community: | ||
url: "https://github.com/rauc/meta-rauc-community.git" | ||
refspec: krikstone | ||
layers: | ||
meta-rauc-qemux86: | ||
meta-rauc: | ||
url: "https://github.com/rauc/meta-rauc.git" | ||
refspec: kirkstone | ||
meta-virtualization: | ||
url: "https://git.yoctoproject.org/meta-virtualization" | ||
refspec: kirkstone | ||
meta-openembedded: | ||
url: "https://git.openembedded.org/meta-openembedded" | ||
refspec: kirkstone | ||
layers: | ||
meta-oe: | ||
meta-filesystems: | ||
meta-python: | ||
meta-networking: | ||
meta-leda: | ||
path: ./ | ||
layers: | ||
meta-leda-bsp: | ||
meta-leda-components: | ||
meta-leda-distro: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# /******************************************************************************** | ||
# * Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
# * | ||
# * See the NOTICE file(s) distributed with this work for additional | ||
# * information regarding copyright ownership. | ||
# * | ||
# * This program and the accompanying materials are made available under the | ||
# * terms of the Apache License 2.0 which is available at | ||
# * https://www.apache.org/licenses/LICENSE-2.0 | ||
# * | ||
# * SPDX-License-Identifier: Apache-2.0 | ||
# ********************************************************************************/ | ||
|
||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/debian/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Debian version (use bullseye on local arm64/Apple Silicon): bullseye, buster | ||
ARG VARIANT="buster" | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | ||
|
||
# ** [Optional] Uncomment this section to install additional packages. ** | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# Install Dependencies | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install --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 pylint3 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 | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates \ | ||
curl \ | ||
gnupg \ | ||
lsb-release | ||
|
||
# Install kas tool to set up Yocto build environment | ||
RUN pip3 install kas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// ******************************************************************************** | ||
// * Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
// * | ||
// * See the NOTICE file(s) distributed with this work for additional | ||
// * information regarding copyright ownership. | ||
// * | ||
// * This program and the accompanying materials are made available under the | ||
// * terms of the Apache License 2.0 which is available at | ||
// * https://www.apache.org/licenses/LICENSE-2.0 | ||
// * | ||
// * SPDX-License-Identifier: Apache-2.0 | ||
// ********************************************************************************/ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/debian | ||
{ | ||
"name": "Debian", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
// Update 'VARIANT' to pick an Debian version: bullseye, buster | ||
// Use bullseye on local arm64/Apple Silicon. | ||
"args": { "VARIANT": "bullseye" } | ||
}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker. | ||
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], | ||
|
||
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust | ||
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode", | ||
"features": { | ||
"github-cli": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# /******************************************************************************** | ||
# * Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
# * | ||
# * See the NOTICE file(s) distributed with this work for additional | ||
# * information regarding copyright ownership. | ||
# * | ||
# * This program and the accompanying materials are made available under the | ||
# * terms of the Apache License 2.0 which is available at | ||
# * https://www.apache.org/licenses/LICENSE-2.0 | ||
# * | ||
# * SPDX-License-Identifier: Apache-2.0 | ||
# ********************************************************************************/ | ||
|
||
name: BitBake DryRun | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
mybranch: | ||
name: Yocto (This Branch) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install tools | ||
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 pylint3 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 | ||
- name: Install kas | ||
run: sudo pip3 install kas | ||
- name: DryRun sdv-image-all | ||
run: kas build --target sdv-image-all -- --dry-run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# /******************************************************************************** | ||
# * Copyright (c) 2022 Contributors to the Eclipse Foundation | ||
# * | ||
# * See the NOTICE file(s) distributed with this work for additional | ||
# * information regarding copyright ownership. | ||
# * | ||
# * This program and the accompanying materials are made available under the | ||
# * terms of the Apache License 2.0 which is available at | ||
# * https://www.apache.org/licenses/LICENSE-2.0 | ||
# * | ||
# * SPDX-License-Identifier: Apache-2.0 | ||
# ********************************************************************************/ | ||
|
||
name: Leda-Utils (Full) | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
leda-utils: | ||
name: Leda Utils Recipe | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install tools | ||
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 pylint3 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 | ||
- name: Install kas | ||
run: sudo pip3 install kas | ||
- name: Cache Downloads | ||
id: cache-downloads | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/downloads | ||
key: bb-downloads | ||
- name: Cache SState | ||
id: cache-sstate | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/sstate-cache | ||
key: bb-sstate-cache | ||
- name: Cache Local | ||
id: cache-local | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/cache | ||
key: bb-cache-local | ||
- name: Build leda-utils | ||
run: kas build --target sdv-core-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Build folder generated by running "kas build" | ||
build/ | ||
|
||
# Metalayer folders are created by running "kas build" and we don't | ||
# want to commit them as git submodules. | ||
meta-openembedded | ||
meta-rauc | ||
meta-rauc-community | ||
meta-virtualization | ||
poky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Manual BitBake Install and DryRun | ||
|
||
After creating the DevContainer, set up the build environment by checking out Poky and the required layers | ||
|
||
*Note: This setup is much easier to do with the `kas` tooling. See [Setup with kas](setup-kas.md)* | ||
|
||
Clone Poky and switch to the branch under test: | ||
|
||
git clone git://git.yoctoproject.org/poky | ||
cd poky | ||
git checkout -t origin/kirkstone -b kirkstone | ||
|
||
Pull updates if necessary: | ||
|
||
git config pull.rebase false | ||
git pull | ||
|
||
Set up build environment: | ||
|
||
source oe-init-build-env | ||
|
||
Dry-run a build of the Linux Kernel recipe using BitBake: | ||
|
||
bitbake --dry-run linux-yocto | ||
|
||
Check out dependencies for the meta-leda metalayer: | ||
|
||
cd ${CODESPACE_VSCODE_FOLDER} | ||
git clone -b kirkstone https://github.com/rauc/meta-rauc.git meta-rauc | ||
git clone -b krikstone https://github.com/rauc/meta-rauc-community.git meta-rauc-community | ||
git clone -b kirkstone https://git.yoctoproject.org/meta-virtualization meta-virtualization | ||
git clone -b kirkstone https://git.openembedded.org/meta-openembedded meta-openembedded | ||
|
||
From the `poky/build` directory, add the meta-leda Layer to the BBLAYERS configuration: | ||
|
||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-rauc | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-rauc-community/meta-rauc-qemux86 | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-openembedded/meta-oe | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-openembedded/meta-filesystems | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-openembedded/meta-python | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-openembedded/meta-networking | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-virtualization | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-leda-components | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-leda-bsp | ||
bitbake-layers add-layer ${CODESPACE_VSCODE_FOLDER}/meta-leda-distro | ||
|
||
Dry-run a build of one of the Leda recipes: | ||
|
||
DISTRO=leda bitbake --dry-run sdv-image-all | ||
|
||
Perform a real build of one of the targets, e.g. the Eclipse Kanto Container Management recipe: | ||
|
||
DISTRO=leda bitbake kanto-container-management |
Oops, something went wrong.