diff options
Diffstat (limited to 'utils/hooks/90-sort-dtb')
-rw-r--r-- | utils/hooks/90-sort-dtb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/hooks/90-sort-dtb b/utils/hooks/90-sort-dtb new file mode 100644 index 0000000..a9c490f --- /dev/null +++ b/utils/hooks/90-sort-dtb @@ -0,0 +1,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 |