Skip to content

Commit

Permalink
build: Append -dtb to kernel image name if TARGET_KERNEL_APPEND_DTB i…
Browse files Browse the repository at this point in the history
…s set

Currently devices that have TARGET_KERNEL_APPEND_DTB set also have to set
BOARD_KERNEL_IMAGE_NAME to Image.gz-dtb (or zImage-dtb on arm32) in order
to properly build the image with an appended DT. Automatially append -dtb
if TARGET_KERNEL_APPEND_DTB is set so BOARD_KERNEL_IMAGE_NAME does not need
to be set.

Change-Id: I5464c67092a7b9f86669902e5c0e4a47836f7cbd
  • Loading branch information
Rashed97 committed Jan 19, 2017
1 parent 070053c commit b48c27f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/tasks/kernel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ else
TARGET_PREBUILT_INT_KERNEL_TYPE := zImage
endif
endif
ifeq ($(TARGET_KERNEL_APPEND_DTB),true)
TARGET_PREBUILT_INT_KERNEL_TYPE := $(TARGET_PREBUILT_INT_KERNEL_TYPE)-dtb
endif
endif

TARGET_PREBUILT_INT_KERNEL := $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/$(TARGET_PREBUILT_INT_KERNEL_TYPE)
Expand Down

0 comments on commit b48c27f

Please sign in to comment.