From 97426c01dd485a87ff533bfe106ef1c32cdb62d0 Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Tue, 10 Oct 2023 10:51:36 +0200
Subject: [PATCH] Install /usr/share/u-boot-menu/conf.d/reform.conf respecting
 ${bootargs}

---
 debian/reform-tools.install |  1 +
 u-boot-menu/reform.conf     | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 u-boot-menu/reform.conf

diff --git a/debian/reform-tools.install b/debian/reform-tools.install
index 57587ea..7964235 100644
--- a/debian/reform-tools.install
+++ b/debian/reform-tools.install
@@ -15,4 +15,5 @@ share/*                         /usr/share
 systemd/*.service               /usr/lib/systemd/system/
 systemd/reform-poweroff         /usr/lib/systemd/system-shutdown
 systemd/reform-sleep.conf       /usr/lib/systemd/sleep.conf.d
+u-boot-menu/reform.conf         /usr/share/u-boot-menu/conf.d
 xorg/10-reform-etnaviv.conf     /usr/share/X11/xorg.conf.d
diff --git a/u-boot-menu/reform.conf b/u-boot-menu/reform.conf
new file mode 100644
index 0000000..76565a3
--- /dev/null
+++ b/u-boot-menu/reform.conf
@@ -0,0 +1,14 @@
+# Using u-boot-menu requires a recent version of u-boot for your platform
+# so that device specific ${bootargs} are set.
+# To overwrite the contents of this file, use /etc/default/u-boot and fill
+# it with the board-specific parameters:
+#
+# imx8mq:
+# U_BOOT_PARAMETERS="ro no_console_suspend cma=512M@3G console=ttymxc0,115200 pci=nomsi console=ttymxc0,115200 console=tty1"
+# a311d:
+# U_BOOT_PARAMETERS="ro no_console_suspend cma=512M@3G console=ttyAML0,115200 pci=pcie_bus_perf libata.force=noncq nvme_core.default_ps_max_latency_us=0 console=tty1"
+# ls1028a:
+# U_BOOT_PARAMETERS="ro no_console_suspend cma=512M@3G console=ttyS0,115200 iommu.passthrough=1 arm-smmu.disable_bypass=0 console=tty1"
+#
+U_BOOT_ROOT=" "
+U_BOOT_PARAMETERS="ro no_console_suspend cma=512M@3G cryptomgr.notests \${bootargs} console=tty1"
-- 
GitLab