]> code.ossystems Code Review - openembedded-core.git/commit
devicetree.bbclass: don't pad DT overlays
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 11 Sep 2018 11:13:59 +0000 (13:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Sep 2018 07:17:27 +0000 (08:17 +0100)
commit678fe8c66b19f141f6869859cf365aec037e89d9
tree980b321d8270da7867342f5660908470ed8ff95c
parent5db09f7ad007d1def009a60d7d9bf9c13c0faa4e
devicetree.bbclass: don't pad DT overlays

By default the devicetree class adds padding to the generated .dtb
files, which can be needed by the bootloader. However it also pads
.dtbo files, which is not useful.

Don't apply padding to the overlay devicetrees.

To achieve this:

 * move "-p ${DT_PADDING_SIZE}" to a new variable, DTB_BFLAGS (B for
   "base")
 * add "-p 0" to DTC_OFLAGS to disable padding for overlays

Cc: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devicetree.bbclass