summaryrefslogtreecommitdiffstats
path: root/utils/hooks/90-sort-dtb
blob: a9c490fe0137945d8cd4ba82ea17d0c9a1c456a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Last pass for the DTB: sort properties.

[ -n "$boot_dtb" ] || exit

dtb_in=$boot_dtb
dtb_out=$(mktemp)

dtc -s -I dtb -O dtb -o $dtb_out $dtb_in 

[ $? = 0 ] && mv $dtb_out $dtb_in
OpenPOWER on IntegriCloud