summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2020-05-19 12:05:11 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-05-19 14:23:49 +0200
commit292f0d9a85527ee6bd756cc9777852d2d9713908 (patch)
tree5b9b8feb6828fd8a29e59dfc4d58cfaa00fc6cf7
parent6ca32a84843ce94378dfaa0965c7cfc22f4fcc2c (diff)
downloadptxdist-292f0d9a85527ee6bd756cc9777852d2d9713908.tar.gz
hd.img: use efi type also for GPT partitions
Similar to using 0xef for efi partitions with MBR partitioning, there is a dedicated type for these when GPT partitioning is to be used. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Message-Id: <20200519100511.25651-1-u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--config/images/vfat_partitions.config1
-rw-r--r--rules/image-hdimg.make1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/images/vfat_partitions.config b/config/images/vfat_partitions.config
index 799c19d..0aac561 100644
--- a/config/images/vfat_partitions.config
+++ b/config/images/vfat_partitions.config
@@ -1,5 +1,6 @@
partition boot-vfat {
image = "boot.vfat"
partition-type = @VFAT_PARTITION_TYPE@
+ partition-type-uuid = @VFAT_PARTITION_TYPE_UUID@
bootable = true
}
diff --git a/rules/image-hdimg.make b/rules/image-hdimg.make
index e8fd01f..b0f6af7 100644
--- a/rules/image-hdimg.make
+++ b/rules/image-hdimg.make
@@ -42,6 +42,7 @@ endif
ifdef PTXCONF_IMAGE_HDIMG_VFAT
IMAGE_HDIMG_BOOTLOADER_ENV := \
VFAT_PARTITION_TYPE=$(call ptx/ifdef, PTXCONF_IMAGE_BOOT_VFAT_EFI_BAREBOX,0xef,0x0c) \
+ VFAT_PARTITION_TYPE_UUID=$(call ptx/ifdef, PTXCONF_IMAGE_BOOT_VFAT_EFI_BAREBOX,U,L) \
BOOTLOADER_IMAGES='' \
BOOTLOADER_PARTITIONS='include("vfat_partitions.config")'
endif