mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 23:33:00 +00:00
3609e1dc5f
When building for a custom board, it is quite common to maintain a
private branch which include some defconfig and .dts files. But to
hook up those .dts files requires modifying a file "belonging" to
upstream U-Boot, the arch/*/dts/Makefile. Forward-porting that branch
to a newer upstream then often results in a conflict which, while it
is trivial to resolve by hand, makes it harder to have a CI do "try to
build our board against latest upstream".
The .config usually includes information on precisely what .dtb(s) are
needed, so to avoid having to modify the Makefile, simply add the
files in (SPL_)OF_LIST to dtb-y.
A technicality is that (SPL_)OF_LIST is not always defined, so rework
the Kconfig symbols so that (SPL_)OF_LIST is always defined (when
(SPL_)OF_CONTROL), but only prompted for in the cases which used to be
their "depends on".
nios2 and microblaze already have something like this in their
dts/Makefile, and the rationale in commit 41f59f6853
is similar to
the above. So this simply generalizes existing practice. Followup
patches could remove the logic in those two makefiles, just as there's
potential for moving some common boilerplate from all the
arch/*/dts/Makefile files to the new scripts/Makefile.dts.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
35 lines
705 B
Makefile
35 lines
705 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
dtb-y += bayleybay.dtb \
|
|
cherryhill.dtb \
|
|
chromebook_coral.dtb \
|
|
chromebook_link.dtb \
|
|
chromebox_panther.dtb \
|
|
chromebook_samus.dtb \
|
|
conga-qeval20-qa3-e3845.dtb \
|
|
coreboot.dtb \
|
|
cougarcanyon2.dtb \
|
|
crownbay.dtb \
|
|
dfi-bt700-q7x-151.dtb \
|
|
edison.dtb \
|
|
efi-x86_app.dtb \
|
|
efi-x86_payload.dtb \
|
|
galileo.dtb \
|
|
minnowmax.dtb \
|
|
qemu-x86_i440fx.dtb \
|
|
qemu-x86_q35.dtb \
|
|
theadorable-x86-dfi-bt700.dtb \
|
|
slimbootloader.dtb \
|
|
baytrail_som-db5800-som-6867.dtb
|
|
|
|
include $(srctree)/scripts/Makefile.dts
|
|
|
|
targets += $(dtb-y)
|
|
|
|
DTC_FLAGS += -R 4 -p $(if $(CONFIG_EFI_APP),0x8000,0x1000)
|
|
|
|
PHONY += dtbs
|
|
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
|
@:
|
|
|
|
clean-files := *.dtb
|