summaryrefslogtreecommitdiff
path: root/mk/rootfs.mk
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /mk/rootfs.mk
Initial import
Diffstat (limited to 'mk/rootfs.mk')
-rw-r--r--mk/rootfs.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/mk/rootfs.mk b/mk/rootfs.mk
new file mode 100644
index 000000000..e23769979
--- /dev/null
+++ b/mk/rootfs.mk
@@ -0,0 +1,21 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+define rootfs_template
+ifeq ($(ADK_TARGET_ROOTFS_$(2)),y)
+FS:=$(1)
+FS_CMDLINE:=$(3)
+endif
+endef
+
+$(eval $(call rootfs_template,ext2-cf,EXT2_CF))
+$(eval $(call rootfs_template,ext2-mmc,EXT2_MMC))
+$(eval $(call rootfs_template,ext2,EXT2))
+$(eval $(call rootfs_template,initramfs,INITRAMFS))
+$(eval $(call rootfs_template,squashfs,SQUASHFS))
+$(eval $(call rootfs_template,yaffs,YAFFS))
+$(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp))
+
+export FS