Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 $(TOPDIR)/rules.mk
  4. include $(TOPDIR)/mk/kernel.mk
  5. include $(TOPDIR)/mk/modules.mk
  6. include $(TOPDIR)/mk/kernel-build.mk
  7. include $(TOPDIR)/mk/image.mk
  8. OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
  9. kernel-install:
  10. $(TARGET_CROSS)objcopy $(OSTRIP) -S $(LINUX_DIR)/vmlinux \
  11. $(TARGET_DIR)/boot/kernel
  12. @cp $(TARGET_DIR)/boot/kernel \
  13. $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel
  14. ifeq ($(FS),ext2-cf)
  15. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  16. @cp $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel \
  17. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  18. @echo
  19. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  20. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSUSERTARBALL)"
  21. @echo "Boot the board via network (tftp/nfsroot) and use adkinstall."
  22. @echo "If you just want to update, use adkupdate."
  23. @echo 'Login as user root with password linux123 via ssh or console.'
  24. endif
  25. ifeq ($(FS),nfsroot)
  26. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  27. @cp $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel \
  28. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  29. @echo
  30. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  31. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  32. @echo 'Login as user root with password linux123 via ssh or console.'
  33. endif
  34. ifeq ($(FS),yaffs)
  35. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  36. @echo
  37. @echo "The RootFS tarball is:"
  38. @echo "$(BIN_DIR)/$(ROOTFSTARBALL)"
  39. @echo "Boot the board via network (tftp/nfsroot) and use adkinstall."
  40. @echo "If you just want to update, use adkupdate."
  41. @echo 'Login as user root with password linux123 via ssh or console.'
  42. endif