rootfs.mk 1.2 KB

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