python3: update to 3.11.10
[openadk.git] / mk / rootfs.mk
blobe02b259f927764563e90f204a0c667e1550fb908
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_TARGET_QEMU),y)
12 MTDDEV:= root=/dev/mtdblock0
13 ifeq ($(ADK_TARGET_ROOTFS_ARCHIVE),y)
14 ifeq ($(ADK_TARGET_QEMU_WITH_VIRTIO),y)
15 BLOCKDEV:= root=/dev/vda1
16 else
17 BLOCKDEV:= root=/dev/sda1
18 endif
19 endif
20 ifeq ($(ADK_TARGET_SYSTEM_QEMU_ARM_VEXPRESS_A9),y)
21 BLOCKDEV:= root=/dev/mmcblk0p1
22 endif
23 endif
25 ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
26 BLOCKDEV:= root=/dev/sda2
27 MTDDEV:= root=/dev/mtdblock1
28 endif
30 ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
31 MTDDEV:= root=/dev/mtdblock7
32 endif
34 ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_WEGA),y)
35 BLOCKDEV:= root=/dev/mmcblk0p2
36 endif
38 ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
39 BLOCKDEV:= root=/dev/mmcblk0p2
40 endif
42 ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
43 BLOCKDEV:= root=/dev/sda1
44 endif
46 ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
47 BLOCKDEV:= root=/dev/mmcblk0p2
48 endif
50 ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y)
51 BLOCKDEV:= root=/dev/mmcblk1p1
52 endif
54 ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_IMX6),y)
55 BLOCKDEV:= root=/dev/mmcblk1p1
56 endif
58 ifeq ($(ADK_TARGET_SYSTEM_PHYTEC_WEGA),y)
59 BLOCKDEV:= root=/dev/mmcblk1p1
60 endif
62 ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
63 USBDEV:= root=/dev/sdb1
64 endif
66 $(eval $(call rootfs_template,usb,USB,$(USBDEV) rootwait))
67 $(eval $(call rootfs_template,archive,ARCHIVE,$(BLOCKDEV) rootwait))
68 $(eval $(call rootfs_template,initramfs,INITRAMFS,rootfstype=tmpfs))
69 $(eval $(call rootfs_template,initramfspiggyback,INITRAMFSPIGGYBACK,rootfstype=tmpfs))
70 $(eval $(call rootfs_template,initramfsarchive,INITRAMFSARCHIVE,rootfstype=tmpfs))
71 $(eval $(call rootfs_template,squashfs,SQUASHFS,$(MTDDEV) rootfstype=squashfs))
72 $(eval $(call rootfs_template,ubifs,UBIFS,ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs))
73 $(eval $(call rootfs_template,jffs2,JFFS2,$(MTDDEV) rootfstype=jffs2))
74 $(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp))
75 $(eval $(call rootfs_template,encrypted,ENCRYPTED))
76 $(eval $(call rootfs_template,iso,ISO))
77 $(eval $(call rootfs_template,genimage,GENIMAGE))
79 export ADK_TARGET_FS