diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-10-14 11:42:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-10-24 07:50:18 +0200 |
commit | 02ede48e67b96b947b26f13804a5f05c36a124c8 (patch) | |
tree | f40aac0f08868311571682b50e9e13d4a24f392a /scripts/gen-dtb-s | |
parent | 0e1b3c4a15f75ec8a10fc205981707ef00cbd132 (diff) | |
download | barebox-02ede48e67b96b947b26f13804a5f05c36a124c8.tar.gz barebox-02ede48e67b96b947b26f13804a5f05c36a124c8.tar.xz |
gen-dtb-s: Put compressed dtb in different section
For builtin dtbs all compiled dtbs matching section .dtb.rodata.*
are collected in a single section. Since every dtb is compiled as
uncompressed and also as compressed binary each dtb ends up twice
in the section. Let's put the compressed variants in .dtbz.rodata.*
sections rather than .dtb.rodata.*.z so they end up in the binary
only once.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Tested-by: Daniel Krüger <daniel.krueger@systec-electronic.com>
Diffstat (limited to 'scripts/gen-dtb-s')
-rwxr-xr-x | scripts/gen-dtb-s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s index 40c60855ec..4215461edb 100755 --- a/scripts/gen-dtb-s +++ b/scripts/gen-dtb-s @@ -58,7 +58,7 @@ fi compressed=$(stat $dtb.lzo -c "%s") uncompressed=$(stat $dtb -c "%s") -echo ".section .dtb.rodata.${name}.z,\"a\"" +echo ".section .dtbz.rodata.${name},\"a\"" echo ".balign STRUCT_ALIGNMENT" echo ".global __dtb_z_${name}_start" echo "__dtb_z_${name}_start:" |