classes: rename image_types_esp.bbclass to image_types_tegra_esp.bbclass

The 'esp' name was a bit too generic, so renaming should  avoid possible
conflicts with other layers.

Also fix a minor typo in the log output in the mkespfs function.

Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
Matt Madison
2022-08-26 08:28:26 -07:00
committed by Matt Madison
parent 164ce0d6ed
commit f12b72cb0e
2 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
inherit image_types image_types_cboot image_types_esp python3native perlnative kernel-artifact-names
inherit image_types image_types_cboot image_types_tegra_esp python3native perlnative kernel-artifact-names
IMAGE_TYPES += "tegraflash"

View File

@@ -1,5 +1,4 @@
require conf/image-uefi.conf
# Adapted from oe_mkext234fs in image_types.bbclass
oe_mkespfs() {
fstype="$1"
extra_imagecmd=""
@@ -13,7 +12,7 @@ oe_mkespfs() {
bbdebug 1 Executing "dd if=/dev/zero of=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype seek=65536 count=0 bs=1024"
dd if=/dev/zero of=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype seek=65536 count=0 bs=1024
bbdebug 1 "Actual Rootfs size: `du -s ${IMAGE_ROOTFS}`"
bbdebug 1 "Actual Partion size: `stat -c '%s' ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype`"
bbdebug 1 "Actual Partition size: `stat -c '%s' ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype`"
bbdebug 1 Executing "mkfs.vfat -F 32 -I $extra_imagecmd ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype "
mkfs.vfat -F 32 -I $extra_imagecmd ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype
mcopy -i ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype -s ${IMAGE_ROOTFS}/* ::/