rootfs.mk 1.0 KB

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