summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2020-08-06 11:53:27 +0100
committerAndrei Gherzan <andrei@gherzan.ro>2020-08-10 11:10:11 +0100
commit7a2624d5ba0e9d7f8a4b5f120e1e13759373f652 (patch)
treebec737567716c4539621e25b7dc9b17ea5d33927 /classes
parentfc494a35b513b05860c5a813239274017f1ef934 (diff)
downloadmeta-raspberrypi-7a2624d5ba0e9d7f8a4b5f120e1e13759373f652.tar.gz
Revert "Generalize the naming of the bootfiles deploy directory"
This reverts commit a907c3261ef583f898803706cd596d372c6644cb.
Diffstat (limited to 'classes')
-rw-r--r--classes/sdcard_image-rpi.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 1d876e4..43426b2 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -26,7 +26,7 @@ inherit image_types
26IMAGE_TYPEDEP_rpi-sdimg = "${SDIMG_ROOTFS_TYPE}" 26IMAGE_TYPEDEP_rpi-sdimg = "${SDIMG_ROOTFS_TYPE}"
27 27
28# Set kernel and boot loader 28# Set kernel and boot loader
29IMAGE_BOOTLOADER ?= "bootfiles" 29IMAGE_BOOTLOADER ?= "bcm2835-bootfiles"
30 30
31# Kernel image name 31# Kernel image name
32SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img" 32SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
@@ -114,7 +114,7 @@ IMAGE_CMD_rpi-sdimg () {
114 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }') 114 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 512 /2 }')
115 rm -f ${WORKDIR}/boot.img 115 rm -f ${WORKDIR}/boot.img
116 mkfs.vfat -F32 -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 116 mkfs.vfat -F32 -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
117 mcopy -v -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/${BOOTFILES_DIR_NAME}/* ::/ || bbfatal "mcopy cannot copy ${DEPLOY_DIR_IMAGE}/${BOOTFILES_DIR_NAME}/* into boot.img" 117 mcopy -v -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/* ::/ || bbfatal "mcopy cannot copy ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/* into boot.img"
118 if [ "${@bb.utils.contains("MACHINE_FEATURES", "armstub", "1", "0", d)}" = "1" ]; then 118 if [ "${@bb.utils.contains("MACHINE_FEATURES", "armstub", "1", "0", d)}" = "1" ]; then
119 mcopy -v -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/armstubs/${ARMSTUB} ::/ || bbfatal "mcopy cannot copy ${DEPLOY_DIR_IMAGE}/armstubs/${ARMSTUB} into boot.img" 119 mcopy -v -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/armstubs/${ARMSTUB} ::/ || bbfatal "mcopy cannot copy ${DEPLOY_DIR_IMAGE}/armstubs/${ARMSTUB} into boot.img"
120 fi 120 fi