mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
sdcard_image-rpi: fix absolute path in vfat symlink
Fix bitbake complaining with: ERROR: core-image-minimal-1.0-r0 do_image_complete: sstate found an absolute path symlink [...].vfat pointing at [...].vfat. Please replace this with a relative link. This patch redefines SDIMG_VFAT as a file name instead of a full absolute path, then fixing the symlink creation by pointing to a relative target. The cp command that deploys the artifact is changed accordingly to include the destination path. Signed-off-by: Andrea Galbusera <gizero@gmail.com>
This commit is contained in:
parent
ed3b254454
commit
093286dae8
|
@ -73,7 +73,7 @@ SDIMG = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.rpi-sdimg"
|
||||||
FATPAYLOAD ?= ""
|
FATPAYLOAD ?= ""
|
||||||
|
|
||||||
# SD card vfat partition image name
|
# SD card vfat partition image name
|
||||||
SDIMG_VFAT = "${IMGDEPLOYDIR}/${IMAGE_NAME}.vfat"
|
SDIMG_VFAT = "${IMAGE_NAME}.vfat"
|
||||||
SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat"
|
SDIMG_LINK_VFAT = "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.vfat"
|
||||||
|
|
||||||
IMAGE_CMD_rpi-sdimg () {
|
IMAGE_CMD_rpi-sdimg () {
|
||||||
|
@ -152,7 +152,7 @@ IMAGE_CMD_rpi-sdimg () {
|
||||||
# Deploy vfat partition (for u-boot case only)
|
# Deploy vfat partition (for u-boot case only)
|
||||||
case "${KERNEL_IMAGETYPE}" in
|
case "${KERNEL_IMAGETYPE}" in
|
||||||
"uImage")
|
"uImage")
|
||||||
cp ${WORKDIR}/boot.img ${SDIMG_VFAT}
|
cp ${WORKDIR}/boot.img ${IMGDEPLOYDIR}/${SDIMG_VFAT}
|
||||||
ln -sf ${SDIMG_VFAT} ${SDIMG_LINK_VFAT}
|
ln -sf ${SDIMG_VFAT} ${SDIMG_LINK_VFAT}
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user