image: skip generating hash info of rootfs for unselected profiles

Signed-off-by: Ethan Zuo <yuxuan.zuo@outlook.com>
This commit is contained in:
Ethan Zuo 2024-07-26 01:49:55 +08:00 committed by hanwckf
parent 853415c9dc
commit fe50e557c5

View File

@ -554,6 +554,7 @@ define Device/Build/kernel
ifdef CONFIG_IB ifdef CONFIG_IB
install: $$(KDIR_KERNEL_IMAGE) install: $$(KDIR_KERNEL_IMAGE)
endif endif
ifeq ($(CONFIG_TARGET_DEVICE_$(call target_conf,$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)))_DEVICE_$(1)),y)
ifneq ($$(filter squashfs,$(2)),) ifneq ($$(filter squashfs,$(2)),)
# Force squashfs to be built before generating kernel image # Force squashfs to be built before generating kernel image
ROOTFS/squashfs/$(1) := \ ROOTFS/squashfs/$(1) := \
@ -564,6 +565,7 @@ define Device/Build/kernel
) )
$$(KDIR_KERNEL_IMAGE): $$(ROOTFS/squashfs/$(1)) $$(KDIR_KERNEL_IMAGE): $$(ROOTFS/squashfs/$(1))
endif endif
endif
$$(KDIR_KERNEL_IMAGE): $(KDIR)/$$(KERNEL_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS) image_prepare $$(KDIR_KERNEL_IMAGE): $(KDIR)/$$(KERNEL_NAME) $(CURDIR)/Makefile $$(KERNEL_DEPENDS) image_prepare
@rm -f $$@ @rm -f $$@
$$(call concat_cmd,$$(KERNEL)) $$(call concat_cmd,$$(KERNEL))