Skip to content

Instantly share code, notes, and snippets.

View kergoth's full-sized avatar

Christopher Larson kergoth

View GitHub Profile
SUMMARY = "Volatile bind mount setup and configuration for read-only-rootfs"
DESCRIPTION = "${SUMMARY}"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=5750f3aa4ea2b00c2bf21b2b2a7b714d"
SRC_URI = "\
file://mount-copybind \
file://COPYING.MIT \
file://volatile-binds.service.in \
"
Changes to images/qemuarm64/glibc/development-image (files-in-image.txt):
/etc/limits was removed
/etc/login.access was removed
/usr/bin/vlock changed symlink target from /bin/busybox.suid to /usr/bin/vlock.kbd
/etc/default/volatiles/99_pam was added
/etc/environment was added
/etc/pam.d/chfn was added
/etc/pam.d/chpasswd was added
/etc/pam.d/chsh was added
/etc/pam.d/common-account was added
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Weffc++] - -Weffc++ is not set in CXXFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.fno-common] - -fno-common is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Wsign-conversion] - -Wsign-conversion is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.fsanitize=thread] - -fsanitize=thread is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Wextra] - -Wextra is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.fno-omit-frame-pointer] - -fno-omit-frame-pointer is not set in CFLAGS
gcc@busybox: recipes-core/busybox/busybox_1.31.1.bb:1:1 - [warning] - [gcc.gcc.hardening.compiler.Wstrict-overflow] -
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/build/libcpu/i386.mnemonics
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/build/libcpu/x86_64.mnemonics
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_cfi.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_corenote.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_init.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_initreg.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_regs.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_reloc.def
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_retval.c
+sysroots/aarch64-oe-linux/usr/src/debug/elfutils/0.178-r0/elfutils-0.178/backends/aarch64_symbol.c
This file has been truncated, but you can view the full file.
DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
DEBUG: Executing shell function do_compile
make -r PARALLELMFLAGS="-j64" -C ../git objdir=`pwd` all
make[1]: Entering directory '/mel/kergoth/mel/cos-10/adit-80/build/tmp/work/aarch64-mel-linux/glibc-sourcery/2.27-2018.05-7-r0/git'
LC_ALL=C gawk -f scripts/sysd-rules.awk > /mel/kergoth/mel/cos-10/adit-80/build/tmp/work/aarch64-mel-linux/glibc-sourcery/2.27-2018.05-7-r0/build-aarch64-mel-linux/sysd-rulesT \
-v all_object_suffixes='.o .os .oS' \
-v inhibit_sysdep_asm='' \
-v sysd_rules_patterns='%:% rtld-%:rtld-% rtld-%:% m_%:s_%' \
-v config_sysdirs='sysdeps/unix/sysv/linux/aarch64 sysdeps/aarch64/nptl sysdeps/unix/sysv/linux/generic sysdeps/unix/sysv/linux/wordsize-64 sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix sysdeps/posix sysdeps/aarch64/fpu sysdeps/aarch64/multiarch sysdeps/aarch64 sysdeps/wordsize-64
This file has been truncated, but you can view the full file.
DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
DEBUG: Executing shell function do_compile
make -r PARALLELMFLAGS="-j64" -C ../git objdir=`pwd` all
make[1]: Entering directory '/mel/kergoth/mel/cos-10/adit-80/build/tmp/work/aarch64-mel-linux/glibc-sourcery/2.27-2018.05-7-r0/git'
LC_ALL=C gawk -f scripts/sysd-rules.awk > /mel/kergoth/mel/cos-10/adit-80/build/tmp/work/aarch64-mel-linux/glibc-sourcery/2.27-2018.05-7-r0/build-aarch64-mel-linux/sysd-rulesT \
-v all_object_suffixes='.o .os .oS' \
-v inhibit_sysdep_asm='' \
-v sysd_rules_patterns='%:% rtld-%:rtld-% rtld-%:% m_%:s_%' \
-v config_sysdirs='sysdeps/unix/sysv/linux/aarch64 sysdeps/aarch64/nptl sysdeps/unix/sysv/linux/generic sysdeps/unix/sysv/linux/wordsize-64 sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix sysdeps/posix sysdeps/aarch64/fpu sysdeps/aarch64/multiarch sysdeps/aarch64 sysdeps/wordsize-64
@kergoth
kergoth / mysub
Last active January 20, 2021 21:52
#!/bin/sh
set -eu
main () {
script="$(resolved_script_path "$0")"
scriptname="${0##*/}"
scriptdir="$(cd "$(dirname "$script")" && pwd -P)"
PATH="$PATH:$scriptdir/libexec:$scriptdir/../libexec"
project adit-custom/
diff --git c/recipes-core/packagegroups/packagegroup-core-adit.bb w/recipes-core/packagegroups/packagegroup-core-adit.bb
index 288f41f..bfd9d2b 100644
--- c/recipes-core/packagegroups/packagegroup-core-adit.bb
+++ w/recipes-core/packagegroups/packagegroup-core-adit.bb
@@ -131,7 +131,7 @@ RDEPENDS_${PN} += " \
iotop \
hostapd \
eet \
project adit-custom/
diff --git c/recipes-core/packagegroups/packagegroup-core-adit.bb w/recipes-core/packagegroups/packagegroup-core-adit.bb
index 288f41f..bfd9d2b 100644
--- c/recipes-core/packagegroups/packagegroup-core-adit.bb
+++ w/recipes-core/packagegroups/packagegroup-core-adit.bb
@@ -131,7 +131,7 @@ RDEPENDS_${PN} += " \
iotop \
hostapd \
eet \
@kergoth
kergoth / NOTES.md
Last active November 13, 2020 18:22

NOTES

  • The layers are non-yocto-compliant in a number of ways: parsing issues, signature changes, etc
  • A number of yocto conventions are violated with varying consequences. For example, machine specifics in layer.conf.
  • Cross-layer dependencies without state LAYERDEPENDS, i.e. meta-bsp on meta-sdk, though only for certain recipes.
  • Exceeding the purpose of the individual layers, both relating to yocto compliance and not. BSPs should not make changes that aren’t specific to that which is needed for the machine, and should avoid altering core components, such as busybox.

As a quick summary of the meaning of Yocto Project Compatible, "Yocto Project Compatible status is appropriate for products, BSPs and other OE-compatible layers, and related open-source projects. These components must be maintained and submitted by an open source project, non-profit, or Yocto Project member organization."

Regarding Yocto compatible/compliant, the ones I see as being an issue for meta-imx follow: