aboutsummaryrefslogblamecommitdiff
path: root/sys/tools/fdt/make_dtb.sh
blob: 900ad9bd399c89e932595ecdccd41f1ebc3f14a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                                                 
                                                                                              
#!/bin/sh
#
# $FreeBSD$

# Script generates dtb file ($3) from dts source ($2) in build tree S ($1)
S=$1
dts=$2
dtb=$3

cpp -x assembler-with-cpp -I $S/gnu/dts/include -I $S/boot/fdt/dts/${MACHINE} -I $S/gnu/dts/${MACHINE} -include $dts /dev/null | 
	dtc -O dtb -o $dtb -b 0 -p 1024 -i $S/boot/fdt/dts/${MACHINE} -i $S/gnu/dts/${MACHINE}