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-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-03-10 00:23:58 +01:00
|
|
|
define ROOTFS_INITRAMFS_CMD
|
|
|
|
$(SHELL) target/initramfs/gen_initramfs_list.sh -u 0 -g 0 $(TARGET_DIR) > $$@
|
|
|
|
endef
|
2007-07-08 21:22:18 +02:00
|
|
|
|
2010-03-10 00:23:58 +01:00
|
|
|
$(eval $(call ROOTFS_TARGET,initramfs))
|