summaryrefslogtreecommitdiff
path: root/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-01-10 23:33:48 -0600
committerunitexe <unitexe70@gmail.com>2026-01-11 00:30:56 -0600
commite99d9bb6788424ec7711d187985bb93b8b5c1175 (patch)
treebc37f1d07e4a27a62099b8160b6e40a73ce631f2 /meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb
parentd9466d72d1bed7f6fa34ae14cbf81395c9bde705 (diff)
Introduce meta-raspberrypi-extra
- Install copies of cmdline, config & uboot script to rootfs; they are normally just installed to the boot partitioin but having a copy on the rootfs makes making changes and updating them easier - The rpi-eeprom package does not support raspberrypi3-64, it has not EEPROM
Diffstat (limited to 'meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb')
-rw-r--r--meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb b/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb
new file mode 100644
index 0000000..22cf176
--- /dev/null
+++ b/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb
@@ -0,0 +1,16 @@
+SUMMARY = "Install a copy of cmdline.txt to rootfs"
+LICENSE = "MIT"
+
+DEPENDS = "rpi-cmdline"
+
+inherit allarch
+
+do_install() {
+ install -d ${D}${sysconfdir}/rpi
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${BOOTFILES_DIR_NAME}/cmdline.txt ${D}${sysconfdir}/rpi/cmdline.txt
+}
+
+FILES:${PN} = "${sysconfdir}/rpi/cmdline.txt"
+
+# Ensure rpi-cmdline's do_deploy runs before rootfs installation
+do_install[depends] += "rpi-cmdline:do_deploy"