2aef771f6e
This commit improves the filesystem handling code to declare its various targets as PHONY when appropriate. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
25 lines
708 B
Makefile
25 lines
708 B
Makefile
################################################################################
|
|
#
|
|
# Build a kernel with an integrated initial ramdisk
|
|
# filesystem based on cpio.
|
|
#
|
|
################################################################################
|
|
|
|
ROOTFS_INITRAMFS_DEPENDENCIES += rootfs-cpio
|
|
|
|
ROOTFS_INITRAMFS_POST_TARGETS += linux-rebuild-with-initramfs
|
|
|
|
|
|
# The generic fs infrastructure isn't very useful here.
|
|
|
|
rootfs-initramfs: $(ROOTFS_INITRAMFS_DEPENDENCIES) $(ROOTFS_INITRAMFS_POST_TARGETS)
|
|
|
|
rootfs-initramfs-show-depends:
|
|
@echo $(ROOTFS_INITRAMFS_DEPENDENCIES)
|
|
|
|
.PHONY: rootfs-initramfs rootfs-initramfs-show-depends
|
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
|
TARGETS_ROOTFS += rootfs-initramfs
|
|
endif
|