mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 04:11:49 +00:00
10375ccc67
Use dtb-y and always make variables to build dtbs instead of explicit dtbs rule. This is in preparation to support building all dtbs. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Vineet Gupta <vgupta@synopsys.com>
16 lines
312 B
Makefile
16 lines
312 B
Makefile
# Built-in dtb
|
|
builtindtb-y := nsim_700
|
|
|
|
ifneq ($(CONFIG_ARC_BUILTIN_DTB_NAME),"")
|
|
builtindtb-y := $(patsubst "%",%,$(CONFIG_ARC_BUILTIN_DTB_NAME))
|
|
endif
|
|
|
|
obj-y += $(builtindtb-y).dtb.o
|
|
dtb-y := $(builtindtb-y).dtb
|
|
|
|
.SECONDARY: $(obj)/$(builtindtb-y).dtb.S
|
|
|
|
|
|
always := $(dtb-y)
|
|
clean-files := *.dtb *.dtb.S
|