summaryrefslogtreecommitdiffstats
path: root/scripts/gen-dtb-s
blob: 44136b0369567d94e098aec15f05114a81b066a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"