Makefile 1.3 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. include $(ADK_TOPDIR)/rules.mk
  4. include $(ADK_TOPDIR)/mk/kernel-build.mk
  5. include $(ADK_TOPDIR)/mk/image.mk
  6. KERNEL:=$(LINUX_DIR)/arch/avr32/boot/images/uImage
  7. # target helper text
  8. ifeq ($(ADK_TARGET_FS),archive)
  9. targethelp:
  10. @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
  11. @echo "Use following command to install it on SD card:"
  12. @echo "sudo ./scripts/install.sh $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
  13. @echo "U-Boot commands:"
  14. @echo "set bootargs 'console=ttyS0 root=/dev/mmcblk0p1 ro rootwait'"
  15. @echo "ext2load mmc 0:1 0x10300000 /boot/kernel; bootm 0x10300000"
  16. endif
  17. ifeq ($(ADK_TARGET_FS),nfsroot)
  18. targethelp:
  19. @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
  20. @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
  21. endif
  22. kernel-strip:
  23. cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
  24. kernel-install: kernel-strip
  25. cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
  26. # filesystem specific targets
  27. ifeq ($(ADK_TARGET_FS),archive)
  28. imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
  29. endif
  30. ifeq ($(ADK_TARGET_FS),nfsroot)
  31. imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
  32. endif