kumquat-buildroot/fs/initramfs/initramfs.mk
Arnout Vandecappelle (Essensium/Mind) 13a3afc536 fs/initramfs: refactor with fs/cpio
An initramfs is in fact the same as a cpio archive, but embedded in
the kernel.  So instead of duplicating the cpio infrastructure,
we can simply build images/rootfs.cpio and link that into the
kernel.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-27 22:46:00 +02:00

24 lines
610 B
Makefile

#############################################################
#
# Build a kernel with an integrated initial ramdisk
# filesystem based on cpio.
#
#############################################################
ROOTFS_INITRAMFS_DEPENDENCIES += rootfs-cpio
ROOTFS_INITRAMFS_POST_TARGETS += linux26-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)
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
TARGETS += rootfs-initramfs
endif