summaryrefslogtreecommitdiffstats
path: root/utils/hooks/01-create-default-dtb
blob: 82c25a284a6e114945671a124ac9e181465163e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

[ -n "$boot_dtb" ] && exit;
[ ! -e /proc/device-tree ] && exit

dtb=$(mktemp)

dtc -I fs -O dtb -o $dtb /proc/device-tree

echo "boot_dtb=$dtb"
exit 2
OpenPOWER on IntegriCloud