Makefile 1.8 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. include $(ADK_TOPDIR)/rules.mk
  4. include $(ADK_TOPDIR)/mk/kernel.mk
  5. include $(ADK_TOPDIR)/mk/modules.mk
  6. include $(ADK_TOPDIR)/mk/kernel-build.mk
  7. include $(ADK_TOPDIR)/mk/image.mk
  8. KERNEL:=$(LINUX_DIR)/vmlinux
  9. ZKERNEL:=$(LINUX_DIR)/arch/cris/boot/Image
  10. QEMU_ARGS:=-M axis-dev88 -nographic -monitor none
  11. ifeq ($(ADK_TARGET_FS),initramfs)
  12. targethelp:
  13. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  14. @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
  15. ifeq ($(ADK_TARGET_QEMU),y)
  16. @echo "Start qemu with following command line:"
  17. @echo 'qemu-system-${ADK_TARGET_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
  18. endif
  19. endif
  20. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  21. targethelp:
  22. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  23. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
  24. endif
  25. ifeq ($(ADK_TARGET_FS),initramfspiggyback)
  26. targethelp:
  27. @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
  28. ifeq ($(ADK_TARGET_QEMU),y)
  29. @echo "Start qemu with following command line:"
  30. @echo 'qemu-system-${ADK_TARGET_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)'
  31. endif
  32. endif
  33. kernel-install:
  34. @cp $(KERNEL) $(FW_DIR)/${TARGET_KERNEL}
  35. # filesystem specific targets
  36. ifeq ($(ADK_TARGET_FS),archive)
  37. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
  38. endif
  39. ifeq ($(ADK_TARGET_FS),initramfs)
  40. imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
  41. endif
  42. ifeq ($(ADK_TARGET_FS),initramfsarchive)
  43. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  44. endif
  45. ifeq ($(ADK_TARGET_FS),initramfspiggyback)
  46. imageinstall: createinitramfs targethelp
  47. endif
  48. ifeq ($(ADK_TARGET_FS),nfsroot)
  49. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  50. endif