ARM64: Enable APPENDED_DTB in Makefile and defconfig
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
parent
c75946685b
commit
50de92cd6d
3 changed files with 4 additions and 22 deletions
|
@ -14,17 +14,15 @@
|
||||||
# Based on the ia64 boot/Makefile.
|
# Based on the ia64 boot/Makefile.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(srctree)/arch/arm64/boot/dts/Makefile
|
|
||||||
|
|
||||||
targets := Image Image.gz
|
targets := Image Image.gz
|
||||||
|
|
||||||
DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
|
DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
|
||||||
ifneq ($(DTB_NAMES),)
|
ifneq ($(DTB_NAMES),)
|
||||||
DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
|
DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
|
||||||
else
|
|
||||||
DTB_LIST := $(dtb-y)
|
|
||||||
endif
|
|
||||||
DTB_OBJS := $(addprefix $(obj)/dts/,$(DTB_LIST))
|
DTB_OBJS := $(addprefix $(obj)/dts/,$(DTB_LIST))
|
||||||
|
else
|
||||||
|
DTB_OBJS := $(shell find $(obj)/dts/ -name \*.dtb)
|
||||||
|
endif
|
||||||
|
|
||||||
$(obj)/Image: vmlinux FORCE
|
$(obj)/Image: vmlinux FORCE
|
||||||
$(call if_changed,objcopy)
|
$(call if_changed,objcopy)
|
||||||
|
|
|
@ -18,24 +18,7 @@ subdir-y := $(dts-dirs)
|
||||||
|
|
||||||
dtstree := $(srctree)/$(src)
|
dtstree := $(srctree)/$(src)
|
||||||
|
|
||||||
targets += dtbs
|
|
||||||
|
|
||||||
dtbs: $(addprefix $(obj)/, $(DTB_LIST))
|
|
||||||
|
|
||||||
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dts-dirs), $(wildcard $(dtstree)/$(d)/*.dts)))
|
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(dts-dirs), $(wildcard $(dtstree)/$(d)/*.dts)))
|
||||||
|
|
||||||
always := $(dtb-y)
|
always := $(dtb-y)
|
||||||
|
|
||||||
targets += dtbs
|
targets += dtbs
|
||||||
|
|
||||||
DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE_NAMES))
|
|
||||||
ifneq ($(DTB_NAMES),)
|
|
||||||
DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
|
|
||||||
else
|
|
||||||
DTB_LIST := $(dtb-y)
|
|
||||||
endif
|
|
||||||
targets += $(DTB_LIST)
|
|
||||||
|
|
||||||
dtbs: $(addprefix $(obj)/, $(DTB_LIST))
|
|
||||||
|
|
||||||
clean-files := dts/*.dtb *.dtb
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ CONFIG_KSM=y
|
||||||
CONFIG_TRANSPARENT_HUGEPAGE=y
|
CONFIG_TRANSPARENT_HUGEPAGE=y
|
||||||
CONFIG_CMA=y
|
CONFIG_CMA=y
|
||||||
CONFIG_CMDLINE="console=ttyAMA0"
|
CONFIG_CMDLINE="console=ttyAMA0"
|
||||||
|
CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE=y
|
||||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||||
CONFIG_COMPAT=y
|
CONFIG_COMPAT=y
|
||||||
CONFIG_CPU_IDLE=y
|
CONFIG_CPU_IDLE=y
|
||||||
|
|
Loading…
Add table
Reference in a new issue