[9.14.r1] Add appended DTB support #2475
Conversation
Apparently nobody seems to have tested clang 13 before release, as the whole coding paradigm of calling a function by assigning its return value to a variable, which is used all throughout the Linux kernel, becomes broken, as clang seems utterly drunk when it comes to the actual judgement whether the variable is really used or not..
|
required configs: |
| ifeq ($(CONFIG_BUILD_ARM64_APPENDED_DTB_IMAGE),y) | ||
| # Warning! Uncompressed kernel + appended DTB + DTBO WILL NOT WORK! | ||
| KBUILD_IMAGE := $(KBUILD_TARGET)-dtb | ||
| else | ||
| KBUILD_IMAGE := $(KBUILD_TARGET) | ||
| endif |
There was a problem hiding this comment.
The original commit has this inside ifeq ($(CONFIG_BUILD_ARM64_KERNEL_COMPRESSION_GZIP),y).
There was a problem hiding this comment.
this way it will work with uncompressed kernel without dtbo
There was a problem hiding this comment.
I dout uncompressed kernel + appended dtb works? Does it?
| dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(foreach d,$(subdir), $(wildcard $(dtstree)/$(d)/*.dts))) | ||
|
|
||
| always := $(dtb-y) | ||
|
|
||
| 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 |
There was a problem hiding this comment.
This was moved to arch/arm64/boot/Makefile.
|
With |
|
setting as draft in case somebody wants to pick this up for new (old) devices |
Allows a defconfig to set a list of dtbs to concatenate with an Image.gz to create a Image.gz-dtb. Includes 8adb162 arm64: Fix correct dtb clean-files location Change-Id: I0b462322d5c970f1fdf37baffece7ad058099f4a Signed-off-by: Alex Ray <aray@google.com> [rishabhb] Use subdir to descend into device tree directories Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> konrad: fast-forward it to msm-5.4
1db68e9 to
3ce8db7
Compare
No description provided.