e2fsprogs: need to include unistd.h, otherwise optind is undefined
[openadk.git] / mk / rootfs.mk
blobee63d8c2df298913f5093bff340f739f86bcd72b
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 define rootfs_template
5 ifeq ($(ADK_TARGET_ROOTFS_$(2)),y)
6 ADK_TARGET_FS:=$(1)
7 FS_CMDLINE:=$(3)
8 endif
9 endef
11 ifeq ($(ADK_HARDWARE_QEMU),y)
12 ROOTFS:= root=/dev/sda1
13 endif
15 ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
16 ROOTFS:= root=/dev/sda2
17 MTDDEV:= root=/dev/mtdblock1
18 endif
20 ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB433),y)
21 MTDDEV:= root=/dev/mtdblock2
22 endif
24 ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
25 ROOTFS:= root=/dev/mmcblk0p2 rootwait
26 endif
28 $(eval $(call rootfs_template,cf,CF,$(ROOTFS)))
29 $(eval $(call rootfs_template,mmc,MMC,$(ROOTFS)))
30 $(eval $(call rootfs_template,usb,USB,rootdelay=3))
31 $(eval $(call rootfs_template,archive,ARCHIVE,$(ROOTFS)))
32 $(eval $(call rootfs_template,initramfs,INITRAMFS))
33 $(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))
34 $(eval $(call rootfs_template,squashfs,SQUASHFS))
35 $(eval $(call rootfs_template,yaffs,YAFFS,$(MTDDEV) panic=3))
36 $(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp init=/init))
37 $(eval $(call rootfs_template,encrypted,ENCRYPTED))
39 export ADK_TARGET_FS