diff options
Diffstat (limited to 'scripts/gen-dtb-s')
-rwxr-xr-x | scripts/gen-dtb-s | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s new file mode 100755 index 0000000000..44136b0369 --- /dev/null +++ b/scripts/gen-dtb-s @@ -0,0 +1,14 @@ +#!/bin/bash + +name=$1 +dtb=$2 + +echo "#include <asm-generic/barebox.lds.h>" +echo ".section .dtb.rodata.${name},\"a\"" +echo ".balign STRUCT_ALIGNMENT" +echo ".global __dtb_${name}_start" +echo "__dtb_${name}_start:" +echo ".incbin \"$dtb\"" +echo "__dtb_${name}_end:" +echo ".global __dtb_${name}_end" +echo ".balign STRUCT_ALIGNMENT" |