summaryrefslogtreecommitdiff
path: root/meta-raspberrypi-extra/recipes-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'meta-raspberrypi-extra/recipes-bsp')
-rw-r--r--meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-cmdline-rootfs.bb16
-rw-r--r--meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-config-rootfs.bb16
-rw-r--r--meta-raspberrypi-extra/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr-rootfs.bb16
3 files changed, 48 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"
diff --git a/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-config-rootfs.bb b/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-config-rootfs.bb
new file mode 100644
index 0000000..0bea2a2
--- /dev/null
+++ b/meta-raspberrypi-extra/recipes-bsp/bootfiles/rpi-config-rootfs.bb
@@ -0,0 +1,16 @@
+SUMMARY = "Install a copy of config.txt to rootfs"
+LICENSE = "MIT"
+
+DEPENDS = "rpi-config"
+
+inherit allarch
+
+do_install() {
+ install -d ${D}${sysconfdir}/rpi
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${BOOTFILES_DIR_NAME}/config.txt ${D}${sysconfdir}/rpi/config.txt
+}
+
+FILES:${PN} = "${sysconfdir}/rpi/config.txt"
+
+# Ensure rpi-config's do_deploy runs before rootfs installation
+do_install[depends] += "rpi-config:do_deploy"
diff --git a/meta-raspberrypi-extra/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr-rootfs.bb b/meta-raspberrypi-extra/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr-rootfs.bb
new file mode 100644
index 0000000..60b6f37
--- /dev/null
+++ b/meta-raspberrypi-extra/recipes-bsp/rpi-u-boot-scr/rpi-u-boot-scr-rootfs.bb
@@ -0,0 +1,16 @@
+SUMMARY = "Install a copy of rpi u-boot boot script to rootfs"
+LICENSE = "MIT"
+
+DEPENDS = "rpi-u-boot-scr"
+
+inherit allarch
+
+do_install() {
+ install -d ${D}${sysconfdir}/rpi
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/boot.scr ${D}${sysconfdir}/rpi/boot.scr
+}
+
+FILES:${PN} = "${sysconfdir}/rpi/boot.scr"
+
+# Ensure rpi-u-boot-scr's do_deploy runs before rootfs installation
+do_install[depends] += "rpi-u-boot-scr:do_deploy"