2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2007-07-08 21:22:18 +02:00
|
|
|
#
|
2011-09-06 23:16:09 +02:00
|
|
|
# Build a kernel with an integrated initial ramdisk
|
|
|
|
# filesystem based on cpio.
|
2007-07-08 21:22:18 +02:00
|
|
|
#
|
2013-06-06 23:54:13 +02:00
|
|
|
################################################################################
|
2007-07-08 21:22:18 +02:00
|
|
|
|
2011-09-06 23:16:09 +02:00
|
|
|
ROOTFS_INITRAMFS_DEPENDENCIES += rootfs-cpio
|
2011-07-20 16:30:14 +02:00
|
|
|
|
2014-07-24 19:49:34 +02:00
|
|
|
ROOTFS_INITRAMFS_POST_TARGETS += linux-rebuild-with-initramfs
|
2007-07-08 21:22:18 +02:00
|
|
|
|
2011-07-20 16:30:14 +02:00
|
|
|
|
2011-09-06 23:16:09 +02:00
|
|
|
# The generic fs infrastructure isn't very useful here.
|
2011-07-20 16:30:14 +02:00
|
|
|
|
2011-09-06 23:16:09 +02:00
|
|
|
rootfs-initramfs: $(ROOTFS_INITRAMFS_DEPENDENCIES) $(ROOTFS_INITRAMFS_POST_TARGETS)
|
2010-04-20 16:31:01 +02:00
|
|
|
|
2011-09-06 23:16:09 +02:00
|
|
|
rootfs-initramfs-show-depends:
|
|
|
|
@echo $(ROOTFS_INITRAMFS_DEPENDENCIES)
|
2007-07-08 21:22:18 +02:00
|
|
|
|
2015-04-12 18:37:46 +02:00
|
|
|
.PHONY: rootfs-initramfs rootfs-initramfs-show-depends
|
|
|
|
|
2011-09-06 23:16:09 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
2014-03-06 21:55:34 +01:00
|
|
|
TARGETS_ROOTFS += rootfs-initramfs
|
2011-09-06 23:16:09 +02:00
|
|
|
endif
|