Skip to content

Commit

Permalink
Integrate meta-hulks
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidma committed Mar 16, 2024
1 parent 0d5d45c commit 2902507
Show file tree
Hide file tree
Showing 90 changed files with 1,777 additions and 67 deletions.
1 change: 1 addition & 0 deletions .github/workflows/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aldebaran_binaries.tar.gz
44 changes: 44 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM ubuntu:rolling

LABEL org.opencontainers.image.source https://github.com/HULKs/meta-hulks

ENV LANG en_US.UTF-8
ENV LC_ALL=en_US.UTF-8

# https://docs.yoctoproject.org/3.2.3/ref-manual/ref-system-requirements.html#ubuntu-and-debian (without some packages, with NodeJS)
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get install --no-install-recommends --yes \
locales \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin apt-get install --no-install-recommends --yes \
build-essential \
chrpath \
cpio \
debianutils \
diffstat \
file \
gawk \
gcc-multilib \
git \
git-lfs \
iputils-ping \
locales \
lz4 \
nodejs \
npm \
python3 \
python3-git \
python3-jinja2 \
python3-pexpect \
python3-pip \
python3-subunit \
unzip \
wget \
xz-utils \
zstd \
&& apt-get clean && \
rm --recursive --force /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir git+https://github.com/siemens/kas.git

COPY aldebaran_binaries.tar.gz /
36 changes: 36 additions & 0 deletions .github/workflows/yocto_cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Yocto CI/CD
on: push
jobs:
cicd:
name: Yocto CI/CD
runs-on:
- self-hosted
- v3
- yocto
container:
image: ghcr.io/hulks/yocto_release
options: --user=1000:1000
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
path: meta-hulks
- name: Checkout Yocto layers
run: kas checkout meta-nao/kas-project.yml
- name: Populate aldebaran_binaries.tar.gz
run: mkdir -p meta-nao/meta/recipes-support/aldebaran/aldebaran-binaries/ && cp /aldebaran_binaries.tar.gz meta-nao/meta/recipes-support/aldebaran/aldebaran-binaries/
- name: Build image
run: kas build --target nao-image --cmd build meta-nao/kas-project.yml
- name: Build SDK
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas-project.yml
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: HULKs-OS ${{ github.ref_name }}
body: Flashable image containing HULKs-OS ${{ github.ref_name }} and the corresponding SDK with the toolchain and other tools targeting HULKs-OS, for instructions see https://hulks.de/hulk/setup/overview/
files: |
build/tmp/deploy/images/nao-v6/nao-image-HULKs-OS-${{ github.ref_name }}.ext3.gz.opn
build/tmp/deploy/sdk/HULKs-OS-toolchain-${{ github.ref_name }}.sh
fail_on_unmatched_files: true
8 changes: 7 additions & 1 deletion kas-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ header:
version: 14

machine: nao-v6
distro: nao-core-minimal
distro: HULKs-OS
target: nao-image
local_conf_header:
meta-nao: |
Expand All @@ -13,6 +13,9 @@ local_conf_header:
EXTRA_IMAGE_FEATURES += "allow-empty-password"
repos:
meta-nao:
layers:
meta:
meta-hulks:
poky:
url: "https://git.yoctoproject.org/git/poky"
commit: b5624ee5643d881afa004571a096a189ab5389b5
Expand All @@ -24,6 +27,9 @@ repos:
0003-specify-custom-dynamic-linker:
repo: "meta-nao"
path: "patches/0003-bindgen-clang-sysroot.patch"
0004-compress-sdk-with-zstd:
repo: "meta-nao"
path: "patches/0004-compress-sdk-with-zstd.patch"
meta-congatec-x86:
url: "https://git.congatec.com/x86/meta-congatec-x86.git"
commit: 1867244888ed0a5ad85f5b4ab789e1d0201deb02
Expand Down
7 changes: 7 additions & 0 deletions meta-hulks/conf/distro/HULKs-OS.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require conf/distro/nao-core-minimal.conf

SUMMARY = "HULKs flavoured Poky"

DISTRO = "HULKs-OS"
DISTRO_NAME = "HULKs-OS"
DISTRO_VERSION = "6.0.0"
13 changes: 13 additions & 0 deletions meta-hulks/conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# We have a conf and classes directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

LAYERSERIES_COMPAT_hulks = "scarthgap"

BBFILE_COLLECTIONS += "hulks"
BBFILE_PATTERN_hulks = "^${LAYERDIR}/"
BBFILE_PRIORITY_hulks = "9"
LAYERVERSION_hulks = "1"
19 changes: 19 additions & 0 deletions meta-hulks/recipes-core/images/nao-image.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SDK_ZSTD_COMPRESSION_LEVEL = "-9"

CORE_IMAGE_EXTRA_INSTALL += "\
aliveness \
breeze \
compilednn \
hula \
hulk \
iproute2 \
jq \
libxml2-utils \
libogg \
libopus \
nano \
network-config \
opusfile \
"
Loading

0 comments on commit 2902507

Please sign in to comment.