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