kbuild: install DT overlays from dtbo-y
This commit is contained in:
parent
2984b2fa9d
commit
232195510c
@ -17,7 +17,8 @@ include include/config/auto.conf
|
||||
include $(srctree)/scripts/Kbuild.include
|
||||
include $(src)/Makefile
|
||||
|
||||
dtbs := $(addprefix $(dst)/, $(dtb-y) $(if $(CONFIG_OF_ALL_DTBS),$(dtb-)))
|
||||
dtbs := $(addprefix $(dst)/, $(dtb-y) $(dtbo-y) \
|
||||
$(if $(CONFIG_OF_ALL_DTBS),$(dtb-) $(dtbo-)))
|
||||
subdirs := $(addprefix $(obj)/, $(subdir-y) $(subdir-m))
|
||||
|
||||
__dtbs_install: $(dtbs) $(subdirs)
|
||||
|
||||
@ -77,6 +77,7 @@ always-y += $(userprogs-always-y) $(userprogs-always-m)
|
||||
# DTB
|
||||
# If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built
|
||||
dtb-$(CONFIG_OF_ALL_DTBS) += $(dtb-)
|
||||
dtbo-$(CONFIG_OF_ALL_DTBS) += $(dtbo-)
|
||||
|
||||
# Composite DTB (i.e. DTB constructed by overlay)
|
||||
multi-dtb-y := $(call multi-search, $(dtb-y), .dtb, -dtbs)
|
||||
@ -85,7 +86,7 @@ real-dtb-y := $(call real-search, $(dtb-y), .dtb, -dtbs)
|
||||
# Base DTB that overlay is applied onto (each first word of $(*-dtbs) expansion)
|
||||
base-dtb-y := $(foreach m, $(multi-dtb-y), $(firstword $(call suffix-search, $m, .dtb, -dtbs)))
|
||||
|
||||
always-y += $(dtb-y)
|
||||
always-y += $(dtb-y) $(dtbo-y)
|
||||
|
||||
ifneq ($(CHECK_DTBS),)
|
||||
always-y += $(patsubst %.dtb,%.dt.yaml, $(real-dtb-y))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user