aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2015-10-09 01:42:58 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2015-10-12 20:11:07 +0100
commit3a70f96d66f2d230954a6666b3318e5592c4e469 (patch)
tree600e7290b55e90e51b15802885d5f97d60af9364
parentd397fadbeb6f2408209cb400fe666d042b1d159c (diff)
downloadmeta-qcom-3a70f96d66f2d230954a6666b3318e5592c4e469.tar.gz
meta-qcom-3a70f96d66f2d230954a6666b3318e5592c4e469.tar.bz2
meta-qcom-3a70f96d66f2d230954a6666b3318e5592c4e469.zip
classes: qcom-firmware-mount: automatically mount firmware partition
On some Qualcomm platform, the firmware reside in their own partition, in such situation we can mount this partition automatically at boot. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--classes/qcom-firmware-mount.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/qcom-firmware-mount.bbclass b/classes/qcom-firmware-mount.bbclass
new file mode 100644
index 0000000..9828b08
--- /dev/null
+++ b/classes/qcom-firmware-mount.bbclass
@@ -0,0 +1,6 @@
+qcom_mount_firmware() {
+ mkdir -p ${IMAGE_ROOTFS}/lib/firmware
+ echo "LABEL=qcom-firmware /lib/firmware ext4 defaults 0 0" >> ${IMAGE_ROOTFS}/etc/fstab
+}
+
+ROOTFS_POSTPROCESS_COMMAND += "qcom_mount_firmware ; "