genimage complains that '@GPT_LOCATION@' is an invalid size suffix
because we replace that template variable in the config file only if
IMAGE_HDIMG_BAREBOX, IMAGE_HDIMG_GRUB, or IMAGE_HDIMG_VFAT are selected.
Fix the use case for IMAGE_HDIMG_NONE too.

Fixes: 40a39c7a94d1f8821fab (2023-03-16, "image-hdimg: support using barebox 
with GPT")
Signed-off-by: Roland Hieber <r...@pengutronix.de>
---
 rules/image-hdimg.make | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rules/image-hdimg.make b/rules/image-hdimg.make
index 2aa8aeddaf78..06712ca6d956 100644
--- a/rules/image-hdimg.make
+++ b/rules/image-hdimg.make
@@ -25,6 +25,7 @@ IMAGE_HDIMG_CONFIG    := hd.config
 
 ifdef PTXCONF_IMAGE_HDIMG
 IMAGE_HDIMG_BOOTLOADER_ENV := \
+       GPT_LOCATION='0' \
        BOOTLOADER_IMAGES='' \
        BOOTLOADER_PARTITIONS=''
 
-- 
2.39.2


Reply via email to