rootfs.mk 1.1 KB

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