added my Recipes

This commit is contained in:
2024-07-11 14:16:35 +02:00
parent 38bc4f53ac
commit 09b621d929
7118 changed files with 525762 additions and 3 deletions

View File

@@ -0,0 +1,42 @@
From a6d1678379df6142a68cc9bb76dae540a31b8fdb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 14 Mar 2019 23:47:50 -0700
Subject: [PATCH] kexecboot: Use new reboot() API with klibc
Klibc has changed this API in
https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=6b621b8705ce5901dcf49607c8a3523c9e521901
therefore adopt the code
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/kexecboot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kexecboot.c b/src/kexecboot.c
index cf49b40..c785fce 100644
--- a/src/kexecboot.c
+++ b/src/kexecboot.c
@@ -857,7 +857,7 @@ int process_ctx_menu(struct params_t *params, int action) {
#else
sync();
/* if ( -1 == reboot(LINUX_REBOOT_CMD_RESTART) ) { */
- if ( -1 == reboot(RB_AUTOBOOT) ) {
+ if ( -1 == reboot(RB_AUTOBOOT, NULL) ) {
log_msg(lg, "Can't initiate reboot: %s", ERRMSG);
}
#endif
@@ -874,7 +874,7 @@ int process_ctx_menu(struct params_t *params, int action) {
#else
sync();
/* if ( -1 == reboot(LINUX_REBOOT_CMD_POWER_OFF) ) { */
- if ( -1 == reboot(RB_POWER_OFF) ) {
+ if ( -1 == reboot(RB_POWER_OFF, NULL) ) {
log_msg(lg, "Can't initiate shutdown: %s", ERRMSG);
}
#endif
--
2.21.0

View File

@@ -0,0 +1,31 @@
From 528a64d17488295299dad9fbfe3d7140bc1cfdfa Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Sat, 6 Feb 2021 11:06:48 -0800
Subject: [PATCH] make: Add compiler includes in cflags
Fixes
| In file included from /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/kexecboot-klibc/0.6+gitAUTOINC+5a5e04be20-r0/recipe-sysroot/usr/lib/klibc/include/stdio.h:11:
| /mnt/b/yoe/master/build/tmp/work/raspberrypi4_64-yoe-linux/kexecboot-klibc/0.6+gitAUTOINC+5a5e04be20-r0/recipe-sysroot/usr/lib/klibc/include/stdarg.h:9:15: fatal error: 'stdarg.h' file not found
| #include_next <stdarg.h>
| ^~~~~~~~~~
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index c75df23..d2adf38 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS=kexecboot
-kexecboot_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS)
+kexecboot_CFLAGS = -I$(top_srcdir) $(AM_CFLAGS) -I$(shell $(CC) -print-file-name=include)
kexecboot_SOURCES = \
util.c \
--
2.30.0

View File

@@ -0,0 +1,43 @@
/* XPM */
static char * icon_xpm[] = {
"32 32 8 1",
" c None",
". c #D6DBDE",
"+ c #9BA6AE",
"@ c #60727D",
"# c #B8BFC5",
"$ c #A9E8F6",
"% c #12BCE4",
"& c #57D2EC",
" ",
" ",
" ",
" .++@@@@++. ",
" +@@@@@@@@@@@@+ ",
" #@@@@@@@@@@@@@@@@# ",
" +@@@@@@@@@@@@@@@@@@+ ",
" .@@@@@@@@++##+@@@@@@@@@. ",
" @@@@@@@. .@@@@@@@ ",
" +@@@@@+ $$$$ #@@@@@+ ",
" #@@@@@. $%%%%%%%%$ .@@@@@# ",
" @@@@@. &%%%%%%%%%%& .@@@@@ ",
" #@@@@+ %%%%%%%%%%%%%% +@@@@# ",
" @@@@@ &%%%%%%%%%%%%%%& @@@@@ ",
".@@@@. $%%%%%& $%%%%%& .@@@@.",
"+@@@@ %%%%% $%%%%%& @@@@+",
"+@@@+ %%%%$ $%%%%%& $$ +@@@+",
"@@@@+ $%%%% $%%%%%& $%$ +@@@@",
"@@@@# &%%%& &%%%%& $%%& #@@@@",
"@@@@. &%%%& %%%%& $%%%& .@@@@",
"@@@@# $%%%& &%%& &%%%$ #@@@@",
"+@@@+ $%%%% %%%%$ +@@@+",
"+@@@@ %%%%& &%%%% @@@@+",
"#@@@@ &%%%%& &%%%%& @@@@#",
" @@@@+ %%%%%%&$$&%%%%%% +@@@@ ",
" +@@@@. $%%%%%%%%%%%%%%$ .@@@@+ ",
" .@@@@@ $%%%%%%%%%%%%$ @@@@@. ",
" #++++. &%%%%%%%%& .++++# ",
" $&&%%&&$ ",
" ",
" ",
" "};

View File

@@ -0,0 +1,66 @@
SUMMARY = "Configuration files for kexecboot"
DESCRIPTION = "Default icon and boot.cfg for kexecboot linux-as-bootloader."
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://icon.xpm"
S = "${WORKDIR}"
do_install:prepend () {
echo '# /boot/boot.cfg - KEXECBOOT configuration file.
#
# First kernel stanza.
# Show this label in kexecboot menu.
#
LABEL=${KEXECBOOT_LABEL}
#
# Specify full kernel path on target.
KERNEL=/boot/${KERNEL_IMAGETYPE}
#
# Specify which device tree blob to use
# DTB=/boot/my-own-dtb
#
# Append this tags to the kernel cmdline.
APPEND=${CMDLINE} ${CMDLINE_DEBUG}
#
# Overwrite kernel command line instead of appending to it
# CMDLINE=console=/dev/tty0 root=/dev/sdb1
#
# Specify optional initrd/initramfs.
# INITRD=/boot/initramfs.cpio.gz
#
# Specify full path for a custom icon for the menu-item.
# If not set, use device-icons as default (NAND, SD, CF, ...).
# ICON=/boot/icon.xpm
#
# Priority of item in kexecboot menu.
# Items with highest priority will be shown at top of menu.
# Default: 0 (lowest, ordered by device ordering)
# PRIORITY=10
#
#
# Second kernel stanza.
# LABEL=${KEXECBOOT_LABEL}-test
# KERNEL=/boot/${KERNEL_IMAGETYPE}-test
# APPEND=${CMDLINE}
#' > ${S}/boot.cfg
}
do_install () {
install -d ${D}/boot
install -m 0644 boot.cfg ${D}/boot/boot.cfg
install -m 0644 icon.xpm ${D}/boot/icon.xpm
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILES:${PN} += "/boot/*"
CMDLINE ?= ""
CMDLINE_DEBUG ?= "quiet"
INHIBIT_DEFAULT_DEPS = "1"
# Note: for qvga the label is currently limited to about 24 chars
KEXECBOOT_LABEL ?= "${@d.getVar('DISTRO') or d.getVar('DISTRO_VERSION')}-${MACHINE}"

View File

@@ -0,0 +1,36 @@
SUMMARY = "kexecboot linux-as-bootloader"
DESCRIPTION = "kexecboot is a graphical linux-as-bootloader implementation based on kexec."
HOMEPAGE = "https://github.com/kexecboot/kexecboot/wiki"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
PV = "0.6+git${SRCPV}"
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/kexecboot/kexecboot.git;branch=master;protocol=https"
SRC_URI:append:libc-klibc = "\
file://0001-kexecboot-Use-new-reboot-API-with-klibc.patch \
file://0001-make-Add-compiler-includes-in-cflags.patch \
"
SRCREV = "5a5e04be206140059f42ac786d424da1afaa04b6"
inherit autotools
EXTRA_OECONF = "--enable-textui --enable-delay=2 --enable-evdev-rate=1000,250"
CFLAGS += "-fcommon"
do_install () {
install -D -m 0755 ${B}/src/kexecboot ${D}${bindir}/kexecboot
install -d ${D}/proc
install -d ${D}/mnt
install -d ${D}/dev
install -d ${D}/sys
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILES:${PN} += " ${bindir}/kexecboot /init /proc /mnt /dev /sys"
pkg_postinst:${PN} () {
ln -sf ${bindir}/kexecboot $D/init
}
BBCLASSEXTEND = "klibc"