mkbootimg: Boot image depends on kernel
authorAaron Kling <webgeek1234@gmail.com>
Tue, 4 Oct 2022 22:56:58 +0000 (17:56 -0500)
committerSamarV-121 <samarvispute121@pm.me>
Wed, 25 Jan 2023 16:29:40 +0000 (21:59 +0530)
Very rarely, the boot image tries to build before the kernel is done

Change-Id: I14c85c0ed681c4ff2eaf268752c4e2ff94f9777f

mkbootimg.mk

index 476c9e0eb7b83c4c9e901e2f178a8d0f12333040..3e3983cf0eae711fa37e2ebc868f9cfbdcc7d8f3 100644 (file)
@@ -67,7 +67,7 @@ LOKI_TOOL := echo
 TARGET_LOKI_ABOOT_IMAGE :=
 endif
 
-$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(BOOTIMAGE_EXTRA_DEPS)
+$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(BOOTIMAGE_EXTRA_DEPS) $(INSTALLED_KERNEL_TARGET)
        $(call pretty,"Target boot image: $@")
        $(hide) $(MKBOOTIMG) --kernel $(call bootimage-to-kernel,$(1)) $(INTERNAL_BOOTIMAGE_ARGS) $(INTERNAL_MKBOOTIMG_VERSION_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@
        $(hide) echo -n "SEANDROIDENFORCE" >> $@