2007-07-08 21:22:18 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Make a initramfs_list file to be used by gen_init_cpio
|
2007-08-22 14:35:41 +02:00
|
|
|
# gen_init_cpio is part of the 2.6 linux kernels to build an
|
2007-07-08 21:22:18 +02:00
|
|
|
# initial ramdisk filesystem based on cpio
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-04-19 16:34:49 +02:00
|
|
|
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
|
|
|
|
INITRAMFS_TARGET:=initramfs-root
|
|
|
|
else
|
|
|
|
INITRAMFS_TARGET:= #nothing
|
|
|
|
endif
|
|
|
|
|
2010-03-10 00:23:58 +01:00
|
|
|
define ROOTFS_INITRAMFS_INIT_SYMLINK
|
2007-07-18 20:07:19 +02:00
|
|
|
rm -f $(TARGET_DIR)/init
|
|
|
|
ln -s sbin/init $(TARGET_DIR)/init
|
2010-03-10 00:23:58 +01:00
|
|
|
endef
|
2007-07-08 21:22:18 +02:00
|
|
|
|
2010-04-20 16:31:01 +02:00
|
|
|
ROOTFS_INITRAMFS_PRE_GEN_HOOKS += ROOTFS_INITRAMFS_INIT_SYMLINK
|
|
|
|
|
2010-03-10 00:23:58 +01:00
|
|
|
define ROOTFS_INITRAMFS_CMD
|
2010-04-14 23:41:56 +02:00
|
|
|
$(SHELL) fs/initramfs/gen_initramfs_list.sh -u 0 -g 0 $(TARGET_DIR) > $$@
|
2010-03-10 00:23:58 +01:00
|
|
|
endef
|
2007-07-08 21:22:18 +02:00
|
|
|
|
2010-03-10 00:23:58 +01:00
|
|
|
$(eval $(call ROOTFS_TARGET,initramfs))
|