rootfs.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. FS:=$(1)
  6. FS_CMDLINE:=$(3)
  7. endif
  8. endef
  9. ADK_TARGET_ROOTFS_USB_DEVICE:=$(strip $(subst ",, $(ADK_TARGET_ROOTFS_USB_DEVICE)))
  10. ifeq ($(ADK_LINUX_MIPS_RB532),y)
  11. ROOTFS:= root=/dev/sda2
  12. MTDDEV:= root=/dev/mtdblock1
  13. endif
  14. ifeq ($(ADK_LINUX_MIPS_RB433),y)
  15. MTDDEV:= root=/dev/mtdblock2
  16. endif
  17. ifeq ($(ADK_LINUX_ARM_FOXG20),y)
  18. ROOTFS:= root=/dev/mmcblk0p2 rootwait
  19. endif
  20. $(eval $(call rootfs_template,ext2-block,EXT2_BLOCK,$(ROOTFS)))
  21. $(eval $(call rootfs_template,usb,USB,root=$(ADK_TARGET_ROOTFS_USB_DEVICE) rootdelay=3))
  22. $(eval $(call rootfs_template,archive,ARCHIVE))
  23. $(eval $(call rootfs_template,initramfs,INITRAMFS))
  24. $(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))
  25. $(eval $(call rootfs_template,squashfs,SQUASHFS))
  26. $(eval $(call rootfs_template,yaffs,YAFFS,$(MTDDEV) panic=3))
  27. $(eval $(call rootfs_template,nfsroot,NFSROOT,root=/dev/nfs ip=dhcp init=/init))
  28. $(eval $(call rootfs_template,encrypted,ENCRYPTED))
  29. export FS