summaryrefslogtreecommitdiffstats
path: root/scripts/gen-dtb-s
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-dtb-s')
-rwxr-xr-xscripts/gen-dtb-s2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s
index 4f8c62a0b8..1027db2804 100755
--- a/scripts/gen-dtb-s
+++ b/scripts/gen-dtb-s
@@ -58,6 +58,7 @@ fi
compressed=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" $dtb.lzo)
uncompressed=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" $dtb)
+echo "#ifdef CONFIG_USE_COMPRESSED_DTB"
echo ".section .dtbz.rodata.${name},\"a\""
echo ".balign STRUCT_ALIGNMENT"
echo ".global __dtb_z_${name}_start"
@@ -69,3 +70,4 @@ echo ".incbin \"$dtb.lzo\""
echo "__dtb_z_${name}_end:"
echo ".global __dtb_z_${name}_end"
echo ".balign STRUCT_ALIGNMENT"
+echo "#endif"