builds and runs on intel-x86 and rpi4 with acceptable realtime performance

This commit is contained in:
vaughn committed 2026-09-25 17:29:14 -04:00
1 parent 2bce6fa556
commit 3faf544f0b
120 files changed
+6317 -1

No files matched your search

@@ -0,0 +1,3 @@
do_install:append() {
rm -f ${D}/etc/ld.so.cache
}
@@ -0,0 +1,10 @@
ROOT = "root=/dev/mmcblk0p2"
inherit deploy
addtask do_deploy after do_install before do_build
do_deploy() {
install -m 644 ${S}/grub-bootconf ${DEPLOY_DIR_IMAGE}/grub.cfg
}
#not sure why this is necessary as a result of the above
RPROVIDES:${PN} += "virtual-grub-bootconf"
PROVIDES:${PN} += "virtual-grub-bootconf"
#IMAGE_BOOT_FILES:rpi:append = "${EFI_FILES_PATH}/grub.cfg"
@@ -0,0 +1,4 @@
#do_deploy:append:rpi (){
# install -m 644 ${B}/${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE}
#}
#IMAGE_BOOT_FILES:rpi:append = "${GRUB_IMAGE};${EFI_FILES_PATH}/${GRUB_IMAGE}"
@@ -0,0 +1,54 @@
From 3715ca04466dfa120e18650d2c481f40d2066ca9 Mon Sep 17 00:00:00 2001
From: Vaughn Varma <vaughn.varma@gmail.com>
Date: Wed, 24 Sep 2026 11:11:00 +0000
Subject: [PATCH] grub.d/10_linux.in: add oe's kernel name
Modified from Khem Raj's (raj.khem@gmail.com) original script (find alongside the .bb file
for grub) to include "Image" files. Also removed hyphens to handle
situations where e.g. bzImage is the only kernel file (no bzImage-distro-name etc)
Original description below:
Our kernel's name is bzImage, we need add it to grub.d/10_linux.in so
that the grub-mkconfig and grub-install can work correctly.
We only need add the bzImage to util/grub.d/10_linux.in, but also add it
to util/grub.d/20_linux_xen.in to keep compatibility.
Upstream-Status: Inappropriate [OE specific]
---
util/grub.d/10_linux.in | 6 +++---
util/grub.d/20_linux_xen.in | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index 07649cd..d5ec745 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -166,12 +166,12 @@ machine=`uname -m`
case "x$machine" in
xi?86 | xx86_64)
list=
- for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
+ for i in /boot/Image* /boot/bzImage* /Image* /bzImage* /boot/vmlinuz* /vmlinuz* /boot/kernel* ; do
if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
done ;;
- *)
+ *)
list=
- for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
+ for i in /boot/Image* /boot/bzImage* /boot/vmlinuz* /boot/vmlinux* /bzImage* /vmlinuz* /vmlinux* /boot/kernel-* ; do
if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
done ;;
esac
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
index 27bff00..6cc7bfc 100644
--- a/util/grub.d/20_linux_xen.in
+++ b/util/grub.d/20_linux_xen.in
@@ -181,7 +181,7 @@ EOF
}
linux_list=
-for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
+for i in /boot/Image* /Image* /boot/bzImage[xz]* /bzImage[xz]* /boot/vmlinu[xz]* /vmlinu[xz]* /boot/kernel*; do
if grub_file_is_not_garbage "$i"; then
basename=$(basename $i)
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
+3
View File
@@ -0,0 +1,3 @@
FILESEXTRAPATHS:prepend := "${THISDIR}:"
SRC_URI:remove = "file://0003-grub.d-10_linux.in-add-oe-s-kernel-name.patch "
SRC_URI:prepend = "file://0004-grub.d-10_linux.in-add-oe-s-kernel-name.patch "
@@ -0,0 +1 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/module-install-efi:"
@@ -0,0 +1,287 @@
#!/bin/sh -e
#
# Copyright (c) 2012, Intel Corporation.
# All rights reserved.
#
# install.sh [device_name] [rootfs_name]
#
# Automatically installs PLC-OS to the first valid block device detected
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# figure out how big of a boot partition we need
boot_size=$(du -ms /run/media/$1/ | awk '{print $1}')
# remove rootfs.img ($2) from the size if it exists, as its not installed to /boot
if [ -e /run/media/$1/$2 ]; then
boot_size=$(( boot_size - $( du -ms /run/media/$1/$2 | awk '{print $1}') ))
fi
# remove initrd from size since its not currently installed
if [ -e /run/media/$1/initrd ]; then
boot_size=$(( boot_size - $( du -ms /run/media/$1/initrd | awk '{print $1}') ))
fi
# add 10M to provide some extra space for users and account
# for rounding in the above subtractions
boot_size=$(( boot_size + 10 ))
# 5% for swap
swap_ratio=5
# Get a list of hard drives
hdnamelist=""
live_dev_name=`cat /proc/mounts | grep ${1%/} | awk '{print $1}'`
live_dev_name=${live_dev_name#\/dev/}
# Only strip the digit identifier if the device is not an mmc
case $live_dev_name in
mmcblk*)
;;
nvme*)
;;
*)
live_dev_name=${live_dev_name%%[0-9]*}
;;
esac
echo "Searching for hard drives ..."
# Some eMMC devices have special sub devices such as mmcblk0boot0 etc
# we're currently only interested in the root device so pick them wisely
devices=`ls /sys/block/ | grep -v mmcblk` || true
mmc_devices=`ls /sys/block/ | grep "mmcblk[0-9]\{1,\}$"` || true
devices="$devices $mmc_devices"
for device in $devices; do
case $device in
loop*)
# skip loop device
;;
sr*)
# skip CDROM device
;;
ram*)
# skip ram device
;;
*)
# skip the device LiveOS is on
# Add valid hard drive name to the list
case $device in
$live_dev_name*)
# skip the device we are running from
;;
*)
hdnamelist="$hdnamelist $device"
;;
esac
;;
esac
done
if [ -z "${hdnamelist}" ]; then
echo "You need another device (besides the live device /dev/${live_dev_name}) to install the image. Installation aborted."
exit 1
fi
TARGET_DEVICE_NAME=""
for hdname in $hdnamelist; do
# Display found hard drives and their basic info
echo "-------------------------------"
echo /dev/$hdname
if [ -r /sys/block/$hdname/device/vendor ]; then
echo -n "VENDOR="
cat /sys/block/$hdname/device/vendor
fi
if [ -r /sys/block/$hdname/device/model ]; then
echo -n "MODEL="
cat /sys/block/$hdname/device/model
fi
if [ -r /sys/block/$hdname/device/uevent ]; then
echo -n "UEVENT="
cat /sys/block/$hdname/device/uevent
fi
echo
done
# Get user choice
TARGET_DEVICE_NAME=$(echo $hdnamelist | cut -f1 -d" ")
if [ -n "$TARGET_DEVICE_NAME" ]; then
echo "Installing image on /dev/$TARGET_DEVICE_NAME ..."
else
echo "No hard drive selected. Installation aborted."
exit 1
fi
device=/dev/$TARGET_DEVICE_NAME
#
# The udev automounter can cause pain here, kill it
#
rm -f /etc/udev/rules.d/automount.rules
rm -f /etc/udev/scripts/mount*
#
# Unmount anything the automounter had mounted
#
umount ${device}* 2> /dev/null || /bin/true
mkdir -p /tmp
# Create /etc/mtab if not present
if [ ! -e /etc/mtab ] && [ -e /proc/mounts ]; then
ln -sf /proc/mounts /etc/mtab
fi
disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//")
swap_size=$((disk_size*swap_ratio/100))
rootfs_size=$((disk_size-boot_size-swap_size))
rootfs_start=$((boot_size))
rootfs_end=$((rootfs_start+rootfs_size))
swap_start=$((rootfs_end))
# MMC devices are special in a couple of ways
# 1) they use a partition prefix character 'p'
# 2) they are detected asynchronously (need rootwait)
rootwait=""
part_prefix=""
if [ ! "${device#/dev/mmcblk}" = "${device}" ] || \
[ ! "${device#/dev/nvme}" = "${device}" ]; then
part_prefix="p"
rootwait="rootwait"
fi
# USB devices also require rootwait
if [ -n `readlink /dev/disk/by-id/usb* | grep $TARGET_DEVICE_NAME` ]; then
rootwait="rootwait"
fi
bootfs=${device}${part_prefix}1
rootfs=${device}${part_prefix}2
swap=${device}${part_prefix}3
echo "*****************"
echo "Boot partition size: $boot_size MB ($bootfs)"
echo "Rootfs partition size: $rootfs_size MB ($rootfs)"
echo "Swap partition size: $swap_size MB ($swap)"
echo "*****************"
echo "Deleting partition table on ${device} ..."
dd if=/dev/zero of=${device} bs=512 count=35
echo "Creating new partition table on ${device} ..."
parted ${device} mklabel gpt
echo "Creating boot partition on $bootfs"
parted ${device} mkpart boot fat32 0% $boot_size
parted ${device} set 1 boot on
echo "Creating rootfs partition on $rootfs"
parted ${device} mkpart root ext4 $rootfs_start $rootfs_end
echo "Creating swap partition on $swap"
parted ${device} mkpart swap linux-swap $swap_start 100%
parted ${device} print
echo "Waiting for device nodes..."
C=0
while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do
C=$(( C + 1 ))
sleep 1
done
echo "Formatting $bootfs to vfat..."
mkfs.vfat $bootfs
#TODO mkfs.ext4 may require -F -F or -FF to overwrite functioning partition
echo "Formatting $rootfs to ext4..."
mkfs.ext4 -F $rootfs
echo "Formatting swap partition...($swap)"
mkswap $swap
mkdir /tgt_root
mkdir /src_root
mkdir -p /boot
# Handling of the target root partition
mount $rootfs /tgt_root
mount -o rw,loop,noatime,nodiratime /run/media/$1/$2 /src_root
echo "Copying rootfs files..."
cp -a /src_root/* /tgt_root
if [ -d /tgt_root/etc/ ] ; then
boot_uuid=$(blkid -o value -s UUID ${bootfs})
swap_part_uuid=$(blkid -o value -s PARTUUID ${swap})
echo "/dev/disk/by-partuuid/$swap_part_uuid swap swap defaults 0 0" >> /tgt_root/etc/fstab
echo "UUID=$boot_uuid /boot vfat defaults 1 2" >> /tgt_root/etc/fstab
# We dont want udev to mount our root device while we're booting...
if [ -d /tgt_root/etc/udev/ ] ; then
echo "${device}" >> /tgt_root/etc/udev/mount.ignorelist
fi
fi
umount /src_root
# Handling of the target boot partition
mount $bootfs /boot
echo "Preparing boot partition..."
EFIDIR="/boot/EFI/BOOT"
mkdir -p $EFIDIR
# Copy the efi loader
cp /run/media/$1/EFI/BOOT/*.efi $EFIDIR
if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
root_part_uuid=$(blkid -o value -s PARTUUID ${rootfs})
GRUBCFG="$EFIDIR/grub.cfg"
cp /run/media/$1/EFI/BOOT/grub.cfg $GRUBCFG
# Update grub config for the installed image
# Delete the install entry
sed -i "/menuentry 'install/,/^}/d" $GRUBCFG
# Delete the initrd lines
sed -i "/initrd /d" $GRUBCFG
# Delete any LABEL= strings
sed -i "s/ LABEL=[^ ]*/ /" $GRUBCFG
# Replace root= and add additional standard boot options
# We use root as a sentinel value, as vmlinuz is no longer guaranteed
sed -i "s/ root=[^ ]*/ root=PARTUUID=$root_part_uuid rw $rootwait quiet /g" $GRUBCFG
fi
if [ -d /run/media/$1/loader ]; then
rootuuid=$(blkid -o value -s PARTUUID ${rootfs})
SYSTEMDBOOT_CFGS="/boot/loader/entries/*.conf"
# copy config files for systemd-boot
cp -dr /run/media/$1/loader /boot
# delete the install entry
rm -f /boot/loader/entries/install.conf
# delete the initrd lines
sed -i "/initrd /d" $SYSTEMDBOOT_CFGS
# delete any LABEL= strings
sed -i "s/ LABEL=[^ ]*/ /" $SYSTEMDBOOT_CFGS
# delete any root= strings
sed -i "s/ root=[^ ]*/ /" $SYSTEMDBOOT_CFGS
# add the root= and other standard boot options
sed -i "s@options *@options root=PARTUUID=$rootuuid rw $rootwait quiet @" $SYSTEMDBOOT_CFGS
fi
umount /tgt_root
# copy any extra files needed for ESP
if [ -d /run/media/$1/esp ]; then
cp -r /run/media/$1/esp/* /boot
fi
# Copy kernel artifacts. To add more artifacts just add to types
# For now just support kernel types already being used by something in OE-core
for types in bzImage zImage vmlinux vmlinuz fitImage; do
for kernel in `find /run/media/$1/ -name $types*`; do
cp $kernel /boot
done
done
umount /boot
sync
echo "Rebooting..."
reboot -f
@@ -0,0 +1,2 @@
LD_LIBRARY_PATH:intel-x86:prepend = "${STAGING_DIR}${libdir}"
LD_PRELOAD:intel-x86:prepend = "${STAGING_DIR}${libdir}/libc.so.6"
@@ -0,0 +1,3 @@
EXTRA_OEMAKE += " -Wno-implicit-function-declaration "
TARGET_CFLAGS += " -Wno-implicit-function-declaration "
TARGET_CXXFLAGS += " -Wno-implicit-function-declaration "
@@ -0,0 +1 @@
EXTRA_OECONF += "--without-openssl-header-check --build=''"
@@ -0,0 +1,14 @@
RDEPENDS:${PN}:append = " \
bc \
debianutils-run-parts \
dpkg-start-stop \
fbset \
kbd \
netcat \
ifupdown \
iputils-ping \
usleep \
util-linux-flock \
util-linux-mount \
"
@@ -0,0 +1,31 @@
From 232757d8dc40384db38281bd2d0f99f1d94ddd9e Mon Sep 17 00:00:00 2001
From: Yi Zhao <yi.zhao@windriver.com>
Date: Thu, 26 Dec 2024 15:31:15 +0800
Subject: [PATCH] modules/pam_postgresok: change uid to 28
The default uid for postgres user is 28 in meta-oe rather than 26 in
redhat linux.
Upstream-Status: Inappropriate [WRLinux Specific]
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
modules/pam_postgresok/pam_postgresok.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/pam_postgresok/pam_postgresok.c b/modules/pam_postgresok/pam_postgresok.c
index 0961b72..786a233 100644
--- a/modules/pam_postgresok/pam_postgresok.c
+++ b/modules/pam_postgresok/pam_postgresok.c
@@ -69,7 +69,7 @@ int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc
uid = getuid();
pw = pam_modutil_getpwuid(pamh, uid);
- if ((uid == 26) && (pw != NULL) && (strcmp(pw->pw_name, "postgres") == 0))
+ if ((uid == 28) && (pw != NULL) && (strcmp(pw->pw_name, "postgres") == 0))
retval = PAM_SUCCESS;
if (ctrl & PAM_DEBUG_ARG) {
--
2.25.1
@@ -0,0 +1,130 @@
From aa752cb9d30072912dd3b5d51a86ab2fe6f08970 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com>
Date: Mon, 11 Jan 2021 15:40:21 +0800
Subject: [PATCH] pam_faillock: add option to accept uid as argument
Add options '--uid' for command pam_faillock to accept uid as argument.
Upstream-Status: Submitted [https://github.com/linux-pam/linux-pam/pull/595]
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
modules/pam_faillock/main.c | 62 ++++++++++++++++++++++++++++++++++---
1 file changed, 58 insertions(+), 4 deletions(-)
diff --git a/modules/pam_faillock/main.c b/modules/pam_faillock/main.c
index c6dd19c..ff0e647 100644
--- a/modules/pam_faillock/main.c
+++ b/modules/pam_faillock/main.c
@@ -56,10 +56,29 @@
#include "faillock.h"
#include "faillock_config.h"
+static int get_uid (const char *uidstr, uid_t *uid)
+{
+ long long int val;
+ char *endptr;
+
+ errno = 0;
+ val = strtoll (uidstr, &endptr, 10);
+ if ( ('\0' == *uidstr)
+ || ('\0' != *endptr)
+ || (ERANGE == errno)
+ || (val != (uid_t)val)) {
+ return 0;
+ }
+
+ *uid = (uid_t)val;
+ return 1;
+}
+
static int
args_parse(int argc, char **argv, struct options *opts)
{
int i;
+ int cline_user = 0;
int rv;
const char *dir = NULL;
const char *conf = NULL;
@@ -67,6 +86,7 @@ args_parse(int argc, char **argv, struct options *opts)
memset(opts, 0, sizeof(*opts));
opts->progname = argv[0];
+ opts->uid = (uid_t)-1;
for (i = 1; i < argc; ++i) {
if (strcmp(argv[i], "--conf") == 0) {
@@ -94,6 +114,24 @@ args_parse(int argc, char **argv, struct options *opts)
return -1;
}
opts->user = argv[i];
+ cline_user++;
+ }
+ else if (strcmp(argv[i], "--uid") == 0) {
+ ++i;
+ if(i >= argc || strlen(argv[i]) == 0) {
+ fprintf(stderr, "%s: No user id supplied.\n", argv[0]);
+ return -1;
+ }
+ uid_t user_id = (uid_t)-1;
+ if ( (get_uid (argv[i], &user_id) ==0)
+ || (user_id == (uid_t)-1)) {
+ fprintf (stderr,
+ _("%s: invalid user ID '%s'\n"),
+ argv[0], argv[i]);
+ return -1;
+ }
+ opts->uid = user_id;
+ cline_user++;
}
else if (strcmp(argv[i], "--reset") == 0) {
opts->reset = 1;
@@ -121,6 +159,10 @@ args_parse(int argc, char **argv, struct options *opts)
}
}
+ if (cline_user > 1) {
+ fprintf(stderr, "--user and --uid are mutually exclusive options!\n");
+ return -1;
+ }
return 0;
}
@@ -129,8 +171,8 @@ usage(const char *progname)
{
fprintf(stderr,
_("Usage: %s [--dir /path/to/tally-directory]"
- " [--user username] [--reset] [--legacy-output]\n"), progname);
-
+ " [--user username] [--uid userid] [--reset] [--legacy-output]\n"), progname);
+ fprintf(stderr, "NOTE: --user and --uid are mutually exclusive options, userid must be non-negative.\n");
}
static int
@@ -323,9 +365,21 @@ main (int argc, char *argv[])
return 1;
}
- if (opts.user == NULL) {
+ if (opts.user == NULL && opts.uid == (uid_t)-1) {
return do_allusers(&opts);
}
- return do_user(&opts, opts.user);
+ if (opts.user != NULL) {
+ return do_user(&opts, opts.user);
+ }
+ else {
+ errno = 0;
+ struct passwd *pwd = getpwuid(opts.uid);
+ if (pwd) {
+ return do_user(&opts, pwd->pw_name);
+ }
+ else {
+ fprintf(stderr, "%s: No matching passwd found, errno: %d\n", opts.progname, errno);
+ }
+ }
}
--
2.25.1
@@ -0,0 +1,20 @@
Upstream-Status: Inappropriate [WRLinux Specific]
diff --git a/modules/meson.build b/modules/meson.build
index 68a7a63..cbe5c8a 100644
--- a/modules/meson.build
+++ b/modules/meson.build
@@ -1,5 +1,6 @@
subdir('pam_access')
subdir('pam_canonicalize_user')
+subdir('pam_chroot')
subdir('pam_debug')
subdir('pam_deny')
subdir('pam_echo')
@@ -23,6 +24,7 @@ subdir('pam_motd')
subdir('pam_namespace')
subdir('pam_nologin')
subdir('pam_permit')
+subdir('pam_postgresok')
subdir('pam_pwhistory')
subdir('pam_rhosts')
subdir('pam_rootok')
+4
View File
@@ -0,0 +1,4 @@
# This file is generated automatically by wry
LIBPAM_INC_WRLINUX = ""
LIBPAM_INC_WRLINUX = "libpam_wrlinux.inc"
require ${LIBPAM_INC_WRLINUX}
+68
View File
@@ -0,0 +1,68 @@
#
# Add a few "redhat" modules to pam. Some have been accepted upstream and
# are part of the distribution, but not the three we add here.
#
PAM_PV = "1.3.1"
PAM_SRCREV = "ac815ddc575d8fe4762352e4f78adf0179f3bf5780d2e5da27f52ffc0157f0c2985726efb4ff3a31ceb42071afddb9c9cd72c0ce79699ae40f9633b927c808f2"
FILESEXTRAPATHS:prepend := "${THISDIR}/libpam:"
SRC_URI += "https://src.fedoraproject.org/repo/pkgs/pam/pam-redhat-${PAM_PV}.tar.xz/sha512/${PAM_SRCREV}/pam-redhat-${PAM_PV}.tar.xz;name=redhat \
file://wrlinux-redhat-pam-modules.patch \
file://0002-modules-pam_postgresok-change-uid-to-28.patch \
${@bb.utils.contains('PACKAGECONFIG', 'faillock', 'file://pam_faillock_add_uid.patch', '', d)} \
"
SRC_URI[redhat.sha256sum] = "894213fafbb557d40fba28dcc66f557fa0b4bf0ab32b0e4931b1d2be47e381fc"
# If necessary, move pam-redhat modules to where they will be built.
# We create a local function and use sh.
#
do_lcl_rh_move () {
SAVED_PWD=`pwd`; cd ${S}
if [ ! -e modules/pam_chroot ] ; then
mv ${UNPACKDIR}/pam-redhat-${PAM_PV}/* modules/
fi
cd ${SAVED_PWD}
}
# Now, we define our own do_patch. We rely on the fact
# that the default do_patch just invokes patch_do_patch.
#
python do_patch () {
bb.build.exec_func('do_lcl_rh_move', d)
bb.build.exec_func('patch_do_patch', d)
}
do_install:append() {
if ${@bb.utils.contains('PACKAGECONFIG', 'faillock', 'true', 'false', d)}; then
sed -i '/end of pam-auth-update config/i \
# faillock is required to reset the fail count on success\
account required pam_faillock.so' \
${D}${sysconfdir}/pam.d/common-account
sed -i '/pam_unix.so/i \
auth required pam_faillock.so preauth deny=5 even_deny_root unlock_time=60' \
${D}${sysconfdir}/pam.d/common-auth
sed -i '/pam_unix.so/a \
auth [default=die] pam_faillock.so authfail deny=5 even_deny_root unlock_time=60 \
auth sufficient pam_faillock.so authsucc deny=5 even_deny_root unlock_time=60' \
${D}${sysconfdir}/pam.d/common-auth
fi
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then
install -d ${D}${sysconfdir}/tmpfiles.d
echo "d /run/console 0755 root root - -" >> ${D}${sysconfdir}/tmpfiles.d/pam.conf
if ${@bb.utils.contains('PACKAGECONFIG', 'faillock', 'true', 'false', d)}; then
echo "d /run/faillock 0755 root root - -" >> ${D}${sysconfdir}/tmpfiles.d/pam.conf
fi
else
echo "d root root 0755 /var/run/console none" >> ${D}${sysconfdir}/default/volatiles/99_pam
if ${@bb.utils.contains('PACKAGECONFIG', 'faillock', 'true', 'false', d)}; then
echo "d root root 0755 /var/run/faillock none" >> ${D}${sysconfdir}/default/volatiles/99_pam
fi
fi
}
PACKAGECONFIG[faillock] = ",,,"
RDEPENDS:${PN}-runtime += "${@bb.utils.contains('PACKAGECONFIG', 'faillock', 'pam-plugin-faillock', '', d)}"
@@ -0,0 +1,35 @@
/*
* psplash - a lightweight framebuffer splashscreen for embedded devices.
*
* Copyright (c) 2012 sleep(5) ltd
* Author: Tomas Frydrych <tomas@sleepfive.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef _HAVE_PSPLASH_COLORS_H
#define _HAVE_PSPLASH_COLORS_H
/* This is the overall background color */
//#define PSPLASH_BACKGROUND_COLOR 0xec,0xec,0xe1
#define PSPLASH_BACKGROUND_COLOR 0x18,0x16,0x13
/* This is the color of any text output */
#define PSPLASH_TEXT_COLOR 0xaf,0xdd,0xe9
/* This is the color of the progress bar indicator */
#define PSPLASH_BAR_COLOR 0xaf,0xdd,0xe9
/* This is the color of the progress bar background */
#define PSPLASH_BAR_BACKGROUND_COLOR 0x18,0x16,0x13
#endif
Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

@@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1280mm"
height="800mm"
viewBox="0 0 1280 800"
version="1.1"
id="svg5"
inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)"
sodipodi:docname="psplash-plcos-img.svg"
inkscape:export-filename="psplash-poky-img.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ecece1"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="false"
units="mm"
inkscape:zoom="0.1767767"
inkscape:cx="1561.2917"
inkscape:cy="760.84688"
inkscape:window-width="2560"
inkscape:window-height="1372"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:showpageshadow="2"
inkscape:deskcolor="#d1d1d1" />
<defs
id="defs2">
<rect
x="1636.3861"
y="1993.7577"
width="1960.7313"
height="754.86579"
id="rect1" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2">
<text
xml:space="preserve"
transform="matrix(0.26509751,0,0,0.26716234,25.935831,-186.76745)"
id="text1"
style="font-size:366.667px;writing-mode:lr-tb;direction:ltr;white-space:pre;shape-inside:url(#rect1);display:inline;fill:#afdde9;stroke-width:0.967559;stroke-dasharray:none"><tspan
x="1636.3867"
y="2327.379"
id="tspan4"><tspan
style="font-weight:bold"
id="tspan2">PLC OS</tspan></tspan></text>
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 3">
<path
style="fill:#ffff00;stroke-width:0.276323"
d="m 664.52086,436.84985 -13.16951,-43.05816 9.95281,4.37141 -6.28075,-31.75662 14.11952,40.77449 -9.68909,-4.20408 z"
id="path1"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

@@ -0,0 +1,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "file://psplash-colors.h"
SPLASH_IMAGES = "file://psplash-plcos-img.png;outsuffix=default"
do_configure:append () {
cp ${S}/../psplash-colors.h ${S}
}
@@ -0,0 +1,4 @@
do_deploy:append() {
# sed -i "/#kernel=\"\"/ c\kernel=\"${SDIMG_KERNELIMAGE}\"" $CONFIG
sed -i "s/dtoverlay=vc4/#dtoverlay=vc4/g" $CONFIG
}
+5
View File
@@ -0,0 +1,5 @@
do_install:append() {
sed -i 's/# %sudo/%sudo/' ${D}/etc/sudoers
}
#ROOTFS_POSPROCESS_COMMAND += " update_sudoers;"
+1
View File
@@ -0,0 +1 @@
CONFIG_NO_HZ_FULL=y
@@ -0,0 +1,2 @@
FILESEXTRAPATHS:prepend := "${THISDIR}:"
SRC_URI += "file://kernelconf.cfg"