rootfs.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. ifeq ($(ADK_TARGET_ROOTFS_ARCHIVE),y)
  11. ROOTFS:= root=/dev/sda1
  12. endif
  13. endif
  14. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
  15. ROOTFS:= root=/dev/sda2
  16. MTDDEV:= root=/dev/mtdblock1
  17. endif
  18. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
  19. MTDDEV:= root=/dev/mtdblock2
  20. endif
  21. ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
  22. ROOTFS:= root=/dev/mmcblk0p2 rootwait
  23. endif
  24. ifeq ($(ADK_TARGET_SYSTEM_SHARP_ZAURUS),y)
  25. ROOTFS:= root=/dev/sda1 rootwait
  26. endif
  27. ifeq ($(ADK_TARGET_SYSTEM_FOXBOARD_LX),y)
  28. ROOTFS:= root=/dev/mtdblock1
  29. endif
  30. ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  31. USB:= rootwait
  32. else
  33. USB:= rootdelay=2
  34. endif
  35. $(eval $(call rootfs_template,genext2fs,GENEXT2FS,$(ROOTFS)))
  36. $(eval $(call rootfs_template,cf,CF,$(ROOTFS)))
  37. $(eval $(call rootfs_template,mmc,MMC,$(ROOTFS)))
  38. $(eval $(call rootfs_template,usb,USB,$(USB)))
  39. $(eval $(call rootfs_template,archive,ARCHIVE,$(ROOTFS)))
  40. $(eval $(call rootfs_template,initramfs,INITRAMFS))
  41. $(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))
  42. $(eval $(call rootfs_template,squashfs,SQUASHFS,$(ROOTFS)))
  43. $(eval $(call rootfs_template,yaffs,YAFFS,$(MTDDEV) panic=3))
  44. $(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp init=/init))
  45. $(eval $(call rootfs_template,encrypted,ENCRYPTED))
  46. export ADK_TARGET_FS