* [PR PATCH] u-boot-menu: update to 0.2
@ 2020-10-26 2:56 CameronNemo
2020-10-26 18:16 ` [PR PATCH] [Closed]: " ahesford
0 siblings, 1 reply; 2+ messages in thread
From: CameronNemo @ 2020-10-26 2:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 391 bytes --]
There is a new pull request by CameronNemo against master on the void-packages repository
https://github.com/CameronNemo/void-packages u-boot-menu
https://github.com/void-linux/void-packages/pull/25887
u-boot-menu: update to 0.2
Allow usage of the DEVICETREEDIR extlinux.conf configuration stanza.
A patch file from https://github.com/void-linux/void-packages/pull/25887.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-u-boot-menu-25887.patch --]
[-- Type: text/x-diff, Size: 2385 bytes --]
From 4a0213fbf2905dc7380da9b1da2c954625d20502 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Sun, 25 Oct 2020 19:57:15 +0000
Subject: [PATCH] u-boot-menu: update to 0.2
Allow usage of the DEVICETREEDIR extlinux.conf configuration stanza.
---
| 4 ++++
| 5 ++++-
| 4 ++--
3 files changed, 10 insertions(+), 3 deletions(-)
--git a/srcpkgs/u-boot-menu/files/extlinux.default b/srcpkgs/u-boot-menu/files/extlinux.default
index e02d310cf3e..2e36728c2ef 100644
--- a/srcpkgs/u-boot-menu/files/extlinux.default
+++ b/srcpkgs/u-boot-menu/files/extlinux.default
@@ -1,3 +1,7 @@
TIMEOUT=10
+# Defaults to current kernel cmdline if left empty
CMDLINE=""
+# set this to use a DEVICETREEDIR line in place of an FDT line
+USE_DEVICETREEDIR=""
+# relative dtb path supplied to FDT line, as long as above is unset
DTBPATH=""
--git a/srcpkgs/u-boot-menu/files/kernel.d/extlinux b/srcpkgs/u-boot-menu/files/kernel.d/extlinux
index 8b052af9499..2c724b101ff 100644
--- a/srcpkgs/u-boot-menu/files/kernel.d/extlinux
+++ b/srcpkgs/u-boot-menu/files/kernel.d/extlinux
@@ -14,6 +14,7 @@ add_kernel() {
ver=${1}
kernel=$(get_bootpath "/boot/vmlinux-${ver}")
initrd=$(get_bootpath "/boot/initramfs-${ver}.img")
+ devicetreedir=$(get_bootpath "/boot/dtbs/dtbs-${ver}")
fdt=$(get_bootpath "/boot/dtbs/dtbs-${ver}/${DTBPATH}")
cmdline="${CMDLINE}"
@@ -23,7 +24,9 @@ add_kernel() {
if [ -e "${BOOTPART}/${initrd}" ]; then
echo "\tINITRD ${initrd}" >> ${OUTFILE}
fi
- if [ -n "${DTBPATH}" ] && [ -e "${BOOTPART}/${fdt}" ]; then
+ if [ -n "${USE_DEVICETREEDIR}" ]; then
+ printf "\tDEVICETREEDIR ${devicetreedir}\n" >> ${OUTFILE}
+ elif [ -n "${DTBPATH}" ] && [ -e "${BOOTPART}/${fdt}" ]; then
echo "\tFDT ${fdt}" >> ${OUTFILE}
fi
if [ -n "${cmdline}" ]; then
--git a/srcpkgs/u-boot-menu/template b/srcpkgs/u-boot-menu/template
index 5442a53fc97..31ef746ba3a 100644
--- a/srcpkgs/u-boot-menu/template
+++ b/srcpkgs/u-boot-menu/template
@@ -1,7 +1,7 @@
# Template file for 'u-boot-menu'
pkgname=u-boot-menu
-version=0.1
-revision=2
+version=0.2
+revision=1
conf_files="/etc/default/extlinux"
short_desc="Create an u-boot menu with currently available kernels"
maintainer="Remi Pommarel <repk@triplefau.lt>"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Closed]: u-boot-menu: update to 0.2
2020-10-26 2:56 [PR PATCH] u-boot-menu: update to 0.2 CameronNemo
@ 2020-10-26 18:16 ` ahesford
0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2020-10-26 18:16 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
There's a closed pull request on the void-packages repository
u-boot-menu: update to 0.2
https://github.com/void-linux/void-packages/pull/25887
Description:
Allow usage of the DEVICETREEDIR extlinux.conf configuration stanza.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-26 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26 2:56 [PR PATCH] u-boot-menu: update to 0.2 CameronNemo
2020-10-26 18:16 ` [PR PATCH] [Closed]: " ahesford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).