diff options
author | 2020-09-12 19:30:43 +0200 | |
---|---|---|
committer | 2020-10-12 10:06:58 +0100 | |
commit | 65b95ce742ae973b856a62974d0ec22e2caf03a3 (patch) | |
tree | 363f6364eaad11ad8efa482a8b171faa06fa051b | |
parent | 5551792e642d6cc32e22dfe6dbfd29ac3e2390cd (diff) | |
download | meta-raspberrypi-warrior.tar.gz meta-raspberrypi-warrior.tar.bz2 meta-raspberrypi-warrior.zip |
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() { } do_deploy_append() { - # Deploy cmdline.txt - install -d ${DEPLOYDIR}/bcm2835-bootfiles - PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" - if [ ${PITFT} = "1" ]; then - PITFT_PARAMS="fbcon=map:10 fbcon=font:VGA8x8" + # Deploy cmdline.txt for the main kernel package + if [ ${KERNEL_PACKAGE_NAME} = "kernel" ]; then + install -d ${DEPLOYDIR}/bcm2835-bootfiles + PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" + if [ ${PITFT} = "1" ]; then + PITFT_PARAMS="fbcon=map:10 fbcon=font:VGA8x8" + fi + echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt fi - echo "${CMDLINE}${PITFT_PARAMS}" > ${DEPLOYDIR}/bcm2835-bootfiles/cmdline.txt } |