13a3afc536
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>
24 lines
610 B
Makefile
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
|
|
|