Fix building initramfs kernel with appended dtb
PATCH v2 1/1 Fix building initramfs kernel with appended dtb
The target for building the kernel with a cpio initramfs is not calling the append dtb commands, creating a final kernel image without an appended dtb. Instead it needs to call kernel make on the intermediate target, then call the append dtb commands to produce the final image as the primary kernel build target does.
--- linux/linux.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
linux/linux.mk +2 -1
@@ -311,7 +311,8 @@ endif $(LINUX_DIR)/.stamp_initramfs_rebuilt: $(LINUX_DIR)/.stamp_target_installed $(LINUX_DIR)/.stamp_images_installed $(BINARIES_DIR)/rootfs.cpio @$(call MESSAGE,"Rebuilding kernel with initramfs") # Build the kernel. - $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_NAME) + $(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_IMAGE_TARGET) + $(LINUX_APPEND_DTB) # Copy the kernel image to its final destination cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR) # If there is a .ub file copy it to the final destination
Signature · 1 line
1.7.9.5
Thomas Petazzoni
AppliedPATCH v2 1/1 Fix building initramfs kernel with appended dtb
Dear Nathan Ford,
Quoted 11 lines · Nathan Ford
The target for building the kernel with a cpio initramfs is not calling the append dtb commands, creating a final kernel image without an appended dtb. Instead it needs to call kernel make on the intermediate target, then call the append dtb commands to produce the final image as the primary kernel build target does.
Signed-off-by Nathan Ford <[email protected]>--- linux/linux.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks!
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com