Skip to content

Commit

Permalink
scripts: use sep-char for hash nodes
Browse files Browse the repository at this point in the history
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>
(cherry picked from commit 2b133ab)
  • Loading branch information
blocktrron committed Jul 26, 2023
1 parent 897d55b commit 5ded0a3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions scripts/mkits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,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}\";
};
};
Expand All @@ -123,10 +123,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}\";
};
};
Expand All @@ -145,10 +145,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}\";
};
};
Expand All @@ -174,10 +174,10 @@ OVCONFIGS=""
type = \"flat_dt\";
arch = \"${ARCH}\";
compression = \"none\";
hash@1 {
hash${REFERENCE_CHAR}1 {
algo = \"crc32\";
};
hash@2 {
hash${REFERENCE_CHAR}2 {
algo = \"${HASH}\";
};
};
Expand Down Expand Up @@ -209,10 +209,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\";
};
};
Expand Down

0 comments on commit 5ded0a3

Please sign in to comment.