linux: introduce BR2_KERNEL_DTB_KEEP_DIRNAME
authorMichael Walle <michael@walle.cc>
Thu, 4 Jun 2020 22:11:21 +0000 (00:11 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 5 Jun 2020 22:07:25 +0000 (00:07 +0200)
commita4eef9a3959f6f24218b042033db0f48825f01f7
tree6429134156dae865393b4b1c2b43868b83a27806
parent14f3ecd5d3db5fee67e29c4c0b9631fc5956a9c0
linux: introduce BR2_KERNEL_DTB_KEEP_DIRNAME

In linux, newer architectures like ARM64 and RISC-V keep their device
tree sources organized by subdirectories. When these device trees are
installed by the kernel they will keep the directory names. But
buildroot strips the prefixes when installing them into /boot or the
images directory.
Sometimes the bootloader references the device tree by name (e.g.
u-boot has the environment variable 'fdtfile') which also includes
the prefix directory.
Make it possible to keep this prefix during installation, so we can
be compatible with other distributions and make it easier for the
user, because he doesn't have to change that environment variable.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
linux/Config.in
linux/linux.mk