aboutsummaryrefslogtreecommitdiff
path: root/scripts/uboot-script-gen
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/uboot-script-gen')
-rw-r--r--scripts/uboot-script-gen5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen
index 070247b..167e980 100644
--- a/scripts/uboot-script-gen
+++ b/scripts/uboot-script-gen
@@ -136,6 +136,11 @@ function check_file_type()
if [ "$type" = "executable" ]
then
type="executable\|data"
+ # file in older distros (ex: RHEL 7.4) just output data for device
+ # tree blobs
+ elif [ "$type" = "Device Tree Blob" ]
+ then
+ type="Device Tree Blob\|data"
fi
file -L $filename | grep "$type" &> /dev/null