Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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),nfsroot)
  15. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  16. @cp $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel \
  17. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  18. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  19. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  20. @echo 'Login as user root with password linux123 via ssh or console'
  21. endif
  22. ifeq ($(FS),yaffs)
  23. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  24. @echo 'The root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  25. @echo 'Format your NAND with Routerboot, boot via NFS and'
  26. @echo 'then install kernel and filesystem:'
  27. @echo 'adkinstall ${ROOTFSTARBALL}'
  28. @echo 'Login as user root with password linux123 via ssh or console'
  29. endif