scripts: use sep-char for hash nodes
authorDavid Bauer <mail@david-bauer.net>
Fri, 9 Jun 2023 12:12:47 +0000 (14:12 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 8 Jul 2023 18:04:45 +0000 (20:04 +0200)
U-Boot with enabled secure-boot will not boot images with the
@-character used for hash node-names.

Use the existing separation character configurable for each device.

Signed-off-by: David Bauer <mail@david-bauer.net>
scripts/mkits.sh

index b1c6f98867471101ab7fa65ac7b1c7961137c2d7..eeb01216f92383d7e2af72c8c5cdc1b0c56d12dc 100755 (executable)
@@ -108,10 +108,10 @@ if [ -n "${DTB}" ]; then
                        ${DTADDR:+load = <${DTADDR}>;}
                        arch = \"${ARCH}\";
                        compression = \"none\";
-                       hash@1 {
+                       hash${REFERENCE_CHAR}1 {
                                algo = \"crc32\";
                        };
-                       hash@2 {
+                       hash${REFERENCE_CHAR}2 {
                                algo = \"${HASH}\";
                        };
                };
@@ -128,10 +128,10 @@ if [ -n "${INITRD}" ]; then
                        type = \"ramdisk\";
                        arch = \"${ARCH}\";
                        os = \"linux\";
-                       hash@1 {
+                       hash${REFERENCE_CHAR}1 {
                                algo = \"crc32\";
                        };
-                       hash@2 {
+                       hash${REFERENCE_CHAR}2 {
                                algo = \"${HASH}\";
                        };
                };
@@ -150,10 +150,10 @@ if [ -n "${ROOTFS}" ]; then
                        type = \"filesystem\";
                        arch = \"${ARCH}\";
                        compression = \"none\";
-                       hash@1 {
+                       hash${REFERENCE_CHAR}1 {
                                algo = \"crc32\";
                        };
-                       hash@2 {
+                       hash${REFERENCE_CHAR}2 {
                                algo = \"${HASH}\";
                        };
                };
@@ -181,10 +181,10 @@ OVCONFIGS=""
                        arch = \"${ARCH}\";
                        load = <${DTADDR}>;
                        compression = \"none\";
-                       hash@1 {
+                       hash${REFERENCE_CHAR}1 {
                                algo = \"crc32\";
                        };
-                       hash@2 {
+                       hash${REFERENCE_CHAR}2 {
                                algo = \"${HASH}\";
                        };
                };
@@ -216,10 +216,10 @@ DATA="/dts-v1/;
                        compression = \"${COMPRESS}\";
                        load = <${LOAD_ADDR}>;
                        entry = <${ENTRY_ADDR}>;
-                       hash@1 {
+                       hash${REFERENCE_CHAR}1 {
                                algo = \"crc32\";
                        };
-                       hash@2 {
+                       hash${REFERENCE_CHAR}2 {
                                algo = \"$HASH\";
                        };
                };