redpitaya-puzzlefw/sw/14_build_devicetree.sh

17 lines
346 B
Bash
Executable File

#!/bin/bash
set -e
. script_env
DTC="$LINUX_DIR/scripts/dtc/dtc"
if [ ! -x "$DTC" ]; then
echo "ERROR: Missing $DTC" >&2
echo " Build Linux kernel to build the device tree compiler" >&2
exit 1
fi
$DTC --symbols -I dts -O dtb -i "$LINUX_DIR/arch/arm/boot/dts" -o devicetree/devicetree.dtb devicetree/redpitaya_puzzlefw.dts