3 # This is a sample boot hook to add a single property to the new kernel's
6 [ -z "$boot_dtb" ] && exit
11 # Convert the dtb to dts, append our extra property, and convert back to dtb
13 dtc -I dtb -O dts $dtb_in
14 echo '/ { petitboot,test = "test"; };'
15 ) | dtc -I dts -O dtb -o $dtb_out
17 # If we have a good dtb (ie, the compile succeeded), replace the existing