summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorAlex Gonzalez <alexg@balena.io>2020-09-12 19:30:43 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2020-10-12 10:05:48 +0100
commit2324089fef0e5e23c4a74bceb7a99b3bab8f73be (patch)
tree79a4820078a3d0be9f07b320377dd1a355b690e2 /recipes-kernel
parent6ed1b4ca6408f0a3a77de7adae03629d278048d9 (diff)
downloadmeta-raspberrypi-2324089fef0e5e23c4a74bceb7a99b3bab8f73be.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>
Diffstat (limited to 'recipes-kernel')
-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}