Skip to content

Commit

Permalink
create standalone distro, fork from poky (#21)
Browse files Browse the repository at this point in the history
* create standalone distro, fork from poky

* specify SDK_VERSION

* Bump distro version

* remote todo

* add TCLIBAPPEND

* interleave uploads

---------

Co-authored-by: Julian Schuler <[email protected]>
  • Loading branch information
schmidma and julianschuler authored Jan 8, 2025
1 parent cf41311 commit b8f08bc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ jobs:
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 NAO image
run: kas build --target nao-image --cmd build meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
- name: Build SDK (x86_64)
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
- name: Build SDK (aarch64)
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml:meta-nao/kas/aarch64.yml
- name: Upload image artifact
uses: actions/upload-artifact@v4
with:
name: image
path: build/tmp/deploy/images/nao-v6/nao-image-HULKs-OS-${{ env.version }}.ext3.gz.opn
- name: Build SDK (x86_64)
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml
- name: Upload x86_64 SDK artifact
uses: actions/upload-artifact@v4
with:
name: sdk-x86_64
path: build/tmp/deploy/sdk/HULKs-OS-x86_64-toolchain-${{ env.version }}.sh
- name: Build SDK (aarch64)
run: kas build --target nao-image --cmd populate_sdk meta-nao/kas/base.yml:meta-nao/kas/hulks.yml:meta-nao/kas/aarch64.yml
- name: Upload aarch64 SDK artifact
uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 0 additions & 1 deletion kas/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ target: nao-image
local_conf_header:
meta-nao: |
CONF_VERSION = "2"
PACKAGE_CLASSES ?= "package_ipk"
EXTRA_IMAGE_FEATURES += "allow-empty-password"
CLANGSDK = "1"
Expand Down
4 changes: 2 additions & 2 deletions meta-hulks/conf/distro/HULKs-OS.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require conf/distro/nao-core-minimal.conf

SUMMARY = "HULKs flavoured Poky"
SUMMARY = "HULKs flavoured Nao"

DISTRO = "HULKs-OS"
DISTRO_NAME = "HULKs-OS"
DISTRO_VERSION = "7.5.8"
DISTRO_VERSION = "7.5.9"
SDKIMAGE_FEATURES:remove = "dbg-pkgs src-pkgs"
32 changes: 18 additions & 14 deletions meta/conf/distro/nao-core-minimal.conf
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
require conf/distro/poky.conf

SUMMARY = "A small image just capable of allowing a device to boot."

DISTRO = "nao-core-minimal"
DISTRO_NAME = "nao-core-minimal"
DISTRO_VERSION = "2.0"
SDK_NAME = "${DISTRO}-${SDKMACHINE}"
DISTRO_VERSION = "3.0"
TARGET_VENDOR = "-aldebaran"
IMAGE_NAME = "${IMAGE_BASENAME}-${DISTRO}-${DISTRO_VERSION}${IMAGE_VERSION_SUFFIX}"
IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${DISTRO}-${DISTRO_VERSION}"
SDK_NAME = "${DISTRO}-${SDKMACHINE}"
SDK_VENDOR = "-naosdk"
SDK_VERSION = "${DISTRO_VERSION}"
SDK_ARCHIVE_TYPE = "tar.zst"
MAINTAINER = "Team HULKs <[email protected]>"

hostname:pn-base-files = "nao"
DISTRO_FEATURES ?= "alsa ext2 ipv4 usbgadget usbhost wifi xattr pci vfat pam polkit pulseaudio ldconfig"

DISTRO_EXTRA_RDEPENDS += "packagegroup-core-boot"

PREFERRED_PROVIDER_virtual/kernel = "linux-intel-rt"

PREFERRED_PROVIDER_cgos-mod = "linux-intel-rt"
KERNEL_MODULE_AUTOLOAD:append = " cgosdrv"

IMAGE_NAME = "${IMAGE_BASENAME}-${DISTRO}-${DISTRO_VERSION}${IMAGE_VERSION_SUFFIX}"
IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${DISTRO}-${DISTRO_VERSION}"
TCLIBCAPPEND = ""

DISTRO_FEATURES:remove = "x11 wayland 3g nfs nfc opengl vulkan bluetooth pcmcia"
PACKAGE_CLASSES ?= "package_ipk"

DISTRO_FEATURES:append = " pam polkit"
require conf/distro/include/no-static-libs.inc

KERNEL_MODULE_AUTOLOAD:append = " cgosdrv"
BB_SIGNATURE_HANDLER ?= "OEEquivHash"
BB_HASHSERVE ??= "auto"

INIT_MANAGER = "systemd"

DISTRO_FEATURES:append = " systemd usrmerge"
VIRTUAL-RUNTIME_init_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""
hostname:pn-base-files = "nao"

0 comments on commit b8f08bc

Please sign in to comment.