mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-05 00:53:32 +08:00
image: skip generating hash info of rootfs for unselected profiles
Signed-off-by: Ethan Zuo <yuxuan.zuo@outlook.com>
This commit is contained in:
parent
853415c9dc
commit
fe50e557c5
@ -554,15 +554,17 @@ define Device/Build/kernel
|
|||||||
ifdef CONFIG_IB
|
ifdef CONFIG_IB
|
||||||
install: $$(KDIR_KERNEL_IMAGE)
|
install: $$(KDIR_KERNEL_IMAGE)
|
||||||
endif
|
endif
|
||||||
ifneq ($$(filter squashfs,$(2)),)
|
ifeq ($(CONFIG_TARGET_DEVICE_$(call target_conf,$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)))_DEVICE_$(1)),y)
|
||||||
# Force squashfs to be built before generating kernel image
|
ifneq ($$(filter squashfs,$(2)),)
|
||||||
ROOTFS/squashfs/$(1) := \
|
# Force squashfs to be built before generating kernel image
|
||||||
$(KDIR)/root.squashfs$$(strip \
|
ROOTFS/squashfs/$(1) := \
|
||||||
$$(if $$(FS_OPTIONS/squashfs),+fs=$$(call param_mangle,$$(FS_OPTIONS/squashfs))) \
|
$(KDIR)/root.squashfs$$(strip \
|
||||||
)$$(strip \
|
$$(if $$(FS_OPTIONS/squashfs),+fs=$$(call param_mangle,$$(FS_OPTIONS/squashfs))) \
|
||||||
$(if $(TARGET_PER_DEVICE_ROOTFS),+pkg=$$(ROOTFS_ID/$(1))) \
|
)$$(strip \
|
||||||
)
|
$(if $(TARGET_PER_DEVICE_ROOTFS),+pkg=$$(ROOTFS_ID/$(1))) \
|
||||||
$$(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 $$@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user