Skip to content

Commit

Permalink
upgrade to latest master (walnascar)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidma committed Dec 16, 2024
1 parent 8bddd35 commit 2b26618
Show file tree
Hide file tree
Showing 25 changed files with 154 additions and 116 deletions.
24 changes: 15 additions & 9 deletions kas/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
meta:
poky:
url: "https://git.yoctoproject.org/git/poky"
commit: ae6cebca5bac9521230c69fed23b375d0de7f5f6
commit: cc5e3503e4437358efa8c5675e02f5e19430c58f
layers:
meta:
meta-poky:
Expand All @@ -26,28 +26,34 @@ 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
patches:
0001-congatec-scarthgap-support:
0001-congatec-walnascar-support:
repo: "meta-nao"
path: "patches/0001-congatec-scarthgap-support.patch"
path: "patches/0001-congatec-walnascar-support.patch"
0002-congatec-new-override-syntax:
repo: "meta-nao"
path: "patches/0002-congatec-new-override-syntax.patch"
0004-congatec-no-s-workspace.patch:
repo: "meta-nao"
path: "patches/0004-congatec-no-s-workspace.patch"
0005-congatec-upstream-status.patch:
repo: "meta-nao"
path: "patches/0005-congatec-upstream-status.patch"
meta-clang:
url: "https://github.com/kraj/meta-clang.git"
commit: e7dceb1c92caf7f21ef1d7b49c85328c30cffd90
commit: 147349b7334b8a25b96bb08c2361ae0ae95e7eb6
meta-intel:
url: "https://git.yoctoproject.org/git/meta-intel"
commit: c8cd0317ec19332bce86697f3413a82b9828b329
commit: d0150964ca7c6a83d38ba54cda3e19b34d274f80
meta-openvino:
url: "https://github.com/intel/meta-openvino"
commit: 65dfb4ff4a53b5164b1dfc396001767da00f27fd
meta-openembedded:
url: "https://git.openembedded.org/meta-openembedded"
commit: 4a7bb77f7ebe0ac8be5bab5103d8bd993e17e18d
commit: af28a667fb22d0023807e8c3319d0923bee39020
layers:
meta-oe:
meta-multimedia:
Expand Down
2 changes: 1 addition & 1 deletion meta-hulks/conf/distro/HULKs-OS.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ SUMMARY = "HULKs flavoured Nao"

DISTRO = "HULKs-OS"
DISTRO_NAME = "HULKs-OS"
DISTRO_VERSION = "7.5.7"
DISTRO_VERSION = "7.6.0"
SDKIMAGE_FEATURES:remove = "dbg-pkgs src-pkgs"
2 changes: 1 addition & 1 deletion meta-hulks/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

LAYERSERIES_COMPAT_hulks = "scarthgap"
LAYERSERIES_COMPAT_hulks = "walnascar"

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

SDK_ZSTD_COMPRESSION_LEVEL = "-9"

CORE_IMAGE_EXTRA_INSTALL += "\
aliveness \
breeze \
Expand Down
4 changes: 2 additions & 2 deletions meta-hulks/recipes-hulks/aliveness/aliveness.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ inherit systemd

do_install:append () {
install -d "${D}${systemd_unitdir}/system"
install -m 0644 "${WORKDIR}/aliveness.service" "${D}${systemd_unitdir}/system/"
install -m 0644 "${WORKDIR}/enp4s0-wait-online.service" "${D}${systemd_unitdir}/system/"
install -m 0644 "${UNPACKDIR}/aliveness.service" "${D}${systemd_unitdir}/system/"
install -m 0644 "${UNPACKDIR}/enp4s0-wait-online.service" "${D}${systemd_unitdir}/system/"
}

require aliveness-crates.inc
2 changes: 1 addition & 1 deletion meta-hulks/recipes-hulks/breeze/breeze.bb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ inherit systemd
export BINDGEN_EXTRA_CLANG_ARGS="-I ${STAGING_INCDIR}"
do_install:append() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/breeze.service ${D}${systemd_unitdir}/system/
install -m 0644 ${UNPACKDIR}/breeze.service ${D}${systemd_unitdir}/system/
}

require breeze-crates.inc
4 changes: 2 additions & 2 deletions meta-hulks/recipes-hulks/hula/hula.bb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ inherit systemd

do_install:append() {
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/hula.service ${D}${systemd_unitdir}/system/
install -m 0644 ${UNPACKDIR}/hula.service ${D}${systemd_unitdir}/system/
install -d ${D}${datadir}/dbus-1/system.d/
install -m 0644 ${WORKDIR}/org.hulks.hula.conf ${D}${datadir}/dbus-1/system.d/
install -m 0644 ${UNPACKDIR}/org.hulks.hula.conf ${D}${datadir}/dbus-1/system.d/
}

FILES:${PN} += "${datadir}/dbus-1/system.d/org.hulks.hula.conf"
Expand Down
11 changes: 7 additions & 4 deletions meta-hulks/recipes-hulks/hulk/hulk.bb
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ SRC_URI = "\
file://hulk \
"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

SYSTEMD_SERVICE:${PN} = "hulk.service hulk-gdbserver.service"

inherit systemd

do_install() {
install -d ${D}${bindir}
install -m 755 ${WORKDIR}/launchHULK ${D}${bindir}
install -m 755 ${WORKDIR}/hulk ${D}${bindir}
install -m 755 ${S}/launchHULK ${D}${bindir}
install -m 755 ${S}/hulk ${D}${bindir}

install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/hulk.service ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/hulk-gdbserver.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/hulk.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/hulk-gdbserver.service ${D}${systemd_unitdir}/system/
}

FILES:${PN} = " \
Expand Down
9 changes: 6 additions & 3 deletions meta-hulks/recipes-hulks/network-config/network-config.bb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ SRC_URI = "\
file://SPL_HULKs.psk \
"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

do_install() {
install -d ${D}${sbindir}/
install -m 0755 ${WORKDIR}/configure_network ${D}${sbindir}/
install -m 0755 ${S}/configure_network ${D}${sbindir}/
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/network-config.service ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/network-config.service ${D}${systemd_unitdir}/system/
install -d ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_HULKs.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_HULKs.psk ${D}/var/lib/iwd/
}

FILES:${PN} = " \
Expand Down
2 changes: 1 addition & 1 deletion meta/conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"

LAYERSERIES_COMPAT_nao = "scarthgap"
LAYERSERIES_COMPAT_nao = "walnascar"

BBFILE_COLLECTIONS += "nao"
BBFILE_PATTERN_nao = "^${LAYERDIR}/"
Expand Down
18 changes: 11 additions & 7 deletions meta/recipes-conf/nao-wifi-conf/nao-wifi-conf.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@ SRC_URI = "\
file://SPL_E.psk \
file://SPL_F.psk \
"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

RDEPENDS:${PN} = "iwd"

do_install() {
install -d ${D}${sysconfdir}/iwd/
install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/iwd/
install -m 0644 ${S}/main.conf ${D}${sysconfdir}/iwd/

install -d ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_A.psk ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_B.psk ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_C.psk ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_D.psk ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_E.psk ${D}/var/lib/iwd/
install -m 0600 ${WORKDIR}/SPL_F.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_A.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_B.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_C.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_D.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_E.psk ${D}/var/lib/iwd/
install -m 0600 ${S}/SPL_F.psk ${D}/var/lib/iwd/
}

FILES:${PN} = "\
Expand Down
7 changes: 5 additions & 2 deletions meta/recipes-conf/user-home/nao-home.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ SRC_URI = "\
file://nao.rules \
"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

RDEPENDS:${PN} += "polkit"

inherit useradd

do_install:append() {
# Enable robocupper mode
install -o nao -g nao -d ${D}/home/nao/
install -o nao -g nao -m 0644 ${WORKDIR}/robocup.conf ${D}/home/nao/
install -o nao -g nao -m 0644 ${S}/robocup.conf ${D}/home/nao/

# Install nao rules for polkit
install -d ${D}${datadir}/polkit-1/rules.d/
install ${WORKDIR}/nao.rules ${D}${datadir}/polkit-1/rules.d
install ${S}/nao.rules ${D}${datadir}/polkit-1/rules.d
}

USERADD_PACKAGES = "${PN}"
Expand Down
2 changes: 1 addition & 1 deletion meta/recipes-core/base-files/base-files_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ do_install:append() {
install -d ${D}/media/internal

install -d ${D}${sysconfdir}/profile.d/
install -m 0644 ${WORKDIR}/sbin_path.sh ${D}${sysconfdir}/profile.d/
install -m 0644 ${UNPACKDIR}/sbin_path.sh ${D}${sysconfdir}/profile.d/
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ From 165a4bcc4c62e984fe0ae7213298140a55ef5b9b Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <[email protected]>
Date: Tue, 12 Mar 2024 10:54:44 +0000
Subject: [PATCH] NAO adjustments (in part by SoftBank and Congatec)
Upstream-Status: Pending

---
arch/x86/mm/ioremap.c | 3 +-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ From 2a7f46283db624091165a0383882c44f578d645b Mon Sep 17 00:00:00 2001
From: Kas User <[email protected]>
Date: Tue, 15 Nov 2022 19:33:29 +0000
Subject: [PATCH] CGOS 32-bit
Upstream-Status: Pending

---
drivers/cgosdrv/DrvLx.c | 63 ++++++++++++++++++++++++++++++++++-------
Expand Down
2 changes: 1 addition & 1 deletion meta/recipes-kernel/linux/linux-intel-rt_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RPROVIDES:${KERNEL_PACKAGE_NAME} += "cgos-mod"
do_install:append() {
ln -s bzImage-${KERNEL_VERSION_NAME} ${D}/boot/vmlinuz.efi
ln -s vmlinuz.efi ${D}/boot/vmlinuz
install -m 0644 ${WORKDIR}/cmdline ${D}/boot/cmdline
install -m 0644 ${UNPACKDIR}/cmdline ${D}/boot/cmdline
}

FILES:${KERNEL_PACKAGE_NAME} += "\
Expand Down
19 changes: 11 additions & 8 deletions meta/recipes-support/aldebaran/aldebaran-binaries.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0-only;md5=c79ff39f19dfec

SRC_URI = "file://aldebaran_binaries.tar.gz;sha256sum=02848f1b604c3afc7d52b4f01bc83434250709c720f86619eeb39d0bf6701c27"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

RDEPENDS:${PN} += "bash"

INHIBIT_PACKAGE_STRIP = "1"
Expand All @@ -15,24 +18,24 @@ ALDEBARAN_LIB_DIR = "/opt/aldebaran/lib"

do_install() {
install -d ${D}/opt/aldebaran/share/firmware/
install -m 0644 ${WORKDIR}/aldebaran_files/opt/aldebaran/share/firmware/CX3RDK_OV5640_USB2.img ${D}/opt/aldebaran/share/firmware/
install -m 0644 ${WORKDIR}/aldebaran_files/opt/aldebaran/share/firmware/CX3RDK_OV5640_USB3.img ${D}/opt/aldebaran/share/firmware/
install -m 0644 ${S}/aldebaran_files/opt/aldebaran/share/firmware/CX3RDK_OV5640_USB2.img ${D}/opt/aldebaran/share/firmware/
install -m 0644 ${S}/aldebaran_files/opt/aldebaran/share/firmware/CX3RDK_OV5640_USB3.img ${D}/opt/aldebaran/share/firmware/

install -d ${D}/${nonarch_base_libdir}/firmware
install ${WORKDIR}/aldebaran_files/lib/firmware/sbre-usb-i2c.dfuse ${D}/${nonarch_base_libdir}/firmware
install ${S}/aldebaran_files/lib/firmware/sbre-usb-i2c.dfuse ${D}/${nonarch_base_libdir}/firmware

install -d ${D}/opt/aldebaran/etc/
install -D ${WORKDIR}/aldebaran_files/opt/aldebaran/etc/alfand.conf ${D}/opt/aldebaran/etc/
install -D ${S}/aldebaran_files/opt/aldebaran/etc/alfand.conf ${D}/opt/aldebaran/etc/
install -d ${D}/opt/aldebaran/etc/hal
install -D ${WORKDIR}/aldebaran_files/opt/aldebaran/etc/hal/hal.xml ${D}/opt/aldebaran/etc/hal/
install -D ${S}/aldebaran_files/opt/aldebaran/etc/hal/hal.xml ${D}/opt/aldebaran/etc/hal/
install -d ${D}/opt/aldebaran/share/lola
install -D ${WORKDIR}/aldebaran_files/opt/aldebaran/share/lola/nao_v6.xml ${D}/opt/aldebaran/share/lola/
install -D ${S}/aldebaran_files/opt/aldebaran/share/lola/nao_v6.xml ${D}/opt/aldebaran/share/lola/

install -d ${D}/${ALDEBARAN_BIN_DIR}
install -D ${WORKDIR}/aldebaran_files/opt/aldebaran/bin/* ${D}/${ALDEBARAN_BIN_DIR}
install -D ${S}/aldebaran_files/opt/aldebaran/bin/* ${D}/${ALDEBARAN_BIN_DIR}

install -d ${D}/${ALDEBARAN_LIB_DIR}
install -D ${WORKDIR}/aldebaran_files/opt/aldebaran/lib/* ${D}/${ALDEBARAN_LIB_DIR}
install -D ${S}/aldebaran_files/opt/aldebaran/lib/* ${D}/${ALDEBARAN_LIB_DIR}
}

do_package_qa[noexec] = "1"
Expand Down
23 changes: 13 additions & 10 deletions meta/recipes-support/aldebaran/aldebaran.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,33 @@ SRC_URI = "\
file://lola.service \
"

S = "${WORKDIR}/sources"
UNPACKDIR = "${S}"

ALDEBARAN_DIR = "/opt/aldebaran"

do_install() {
install -d ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/42-usb-cx3.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/90-cgos.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/90-hal.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${S}/42-usb-cx3.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${S}/90-cgos.rules ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${S}/90-hal.rules ${D}${sysconfdir}/udev/rules.d/

install -d ${D}/${nonarch_base_libdir}/systemd/system-shutdown/
install -m 755 ${WORKDIR}/harakiri ${D}/${nonarch_base_libdir}/systemd/system-shutdown
install -m 755 ${S}/harakiri ${D}/${nonarch_base_libdir}/systemd/system-shutdown

install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/alfand.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/hal.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/lola.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/alfand.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/hal.service ${D}${systemd_unitdir}/system
install -m 0644 ${S}/lola.service ${D}${systemd_unitdir}/system

install -d ${D}/${sysconfdir}/tmpfiles.d/
install -m 0644 ${WORKDIR}/00-hal-log.conf ${D}/${sysconfdir}/tmpfiles.d/
install -m 0644 ${S}/00-hal-log.conf ${D}/${sysconfdir}/tmpfiles.d/

install -d ${D}/${sysconfdir}/security/limits.d/
install -m 0644 ${WORKDIR}/rt-group.conf ${D}/${sysconfdir}/security/limits.d/
install -m 0644 ${S}/rt-group.conf ${D}/${sysconfdir}/security/limits.d/

install -d ${D}${sysconfdir}/profile.d/
install -m 0644 ${WORKDIR}/aldebaran_path.sh ${D}${sysconfdir}/profile.d/
install -m 0644 ${S}/aldebaran_path.sh ${D}${sysconfdir}/profile.d/
}

FILES:${PN} = "\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ From b9486eaaa3e4c66bfab7d383612babc9c63a6735 Mon Sep 17 00:00:00 2001
From: Hendrik <[email protected]>
Date: Tue, 3 May 2022 16:55:10 +0200
Subject: [PATCH] Use libusb context instead of NULL
Upstream-Status: Pending

---
src/FX3Device.cpp | 2 +-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ From 93996a51f564b65d556896f4b3180122d03934c9 Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <[email protected]>
Date: Tue, 12 Mar 2024 12:23:13 +0000
Subject: [PATCH] Include cstdint
Upstream-Status: Pending

---
src/FX3Device.hpp | 1 +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 78ee96785053ecb3198963d0d781930a35935874 Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <[email protected]>
Date: Wed, 9 Nov 2022 17:38:52 +0100
Subject: [PATCH] congatec scarthgap support
Subject: [PATCH] congatec walnascar support

---
conf/layer.conf | 2 +-
Expand All @@ -16,7 +16,7 @@ index 60cc30c..a7825ff 100644

LAYERVERSION_congatec = "7"
-LAYERSERIES_COMPAT_congatec = "dunfell"
+LAYERSERIES_COMPAT_congatec = "scarthgap"
+LAYERSERIES_COMPAT_congatec = "walnascar"
--
2.30.2

1 change: 1 addition & 0 deletions patches/0002-congatec-new-override-syntax.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ From a1611a185f96804da256a51dfe2dc6b9e9567252 Mon Sep 17 00:00:00 2001
From: Maximilian Schmidt <[email protected]>
Date: Sun, 5 Dec 2021 18:41:44 +0100
Subject: [PATCH 2/2] congatec new override syntax
Upstream-Status: Pending

---
README | 6 +-
Expand Down
Loading

0 comments on commit 2b26618

Please sign in to comment.