summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gonzalez <alexg@balena.io>2020-09-12 19:30:43 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2020-11-03 17:25:56 +0000
commit7d59a31c65423104cc0d7a7cb53c12f912aabdf7 (patch)
tree25d359212b68a4c2ad80ec220fa89ea4aaca2f18
parent2fd787bcc7de188239cc417e8305d9fa191cbe4e (diff)
downloadmeta-raspberrypi-7d59a31c65423104cc0d7a7cb53c12f912aabdf7.tar.gz
linux-raspberrypi: Only deploy cmdline.txt for the main kernel
When multiple kernels are being built, not all of them can deploy the same file. Signed-off-by: Alex Gonzalez <alexg@balena.io>
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index f7dee77..3219a23 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -130,11 +130,13 @@ do_compile_append() {
130} 130}
131 131
132do_deploy_append() { 132do_deploy_append() {
133 # Deploy cmdline.txt 133 # Deploy cmdline.txt only for the main kernel package
134 install -d ${DEPLOYDIR}/${BOOTFILES_DIR_NAME} 134 if [ ${KERNEL_PACKAGE_NAME} = "kernel" ]; then
135 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" 135 install -d ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}
136 if [ ${PITFT} = "1" ]; then 136 PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}"
137 PITFT_PARAMS="fbcon=map:10 fbcon=font:VGA8x8" 137 if [ ${PITFT} = "1" ]; then
138 PITFT_PARAMS="fbcon=map:10 fbcon=font:VGA8x8"
139 fi
140 echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/cmdline.txt
138 fi 141 fi
139 echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/cmdline.txt
140} 142}