diff options
author | Alex Gonzalez <alexg@balena.io> | 2020-09-12 19:30:43 +0200 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.ro> | 2020-10-12 10:06:58 +0100 |
commit | 65b95ce742ae973b856a62974d0ec22e2caf03a3 (patch) | |
tree | 363f6364eaad11ad8efa482a8b171faa06fa051b | |
parent | 5551792e642d6cc32e22dfe6dbfd29ac3e2390cd (diff) | |
download | meta-raspberrypi-65b95ce742ae973b856a62974d0ec22e2caf03a3.tar.gz |
linux-raspberrypi: Only deploy cmdline.txt for the main kernelwarrior
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.inc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index ea7f778..603947e 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 | ||
132 | do_deploy_append() { | 132 | do_deploy_append() { |
133 | # Deploy cmdline.txt | 133 | # Deploy cmdline.txt for the main kernel package |
134 | install -d ${DEPLOYDIR}/bcm2835-bootfiles | 134 | if [ ${KERNEL_PACKAGE_NAME} = "kernel" ]; then |
135 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 135 | install -d ${DEPLOYDIR}/bcm2835-bootfiles |
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}/bcm2835-bootfiles/cmdline.txt | ||
138 | fi | 141 | fi |
139 | echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt | ||
140 | } | 142 | } |