1
0

Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031
  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: kernel-install $(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. endif
  21. ifeq ($(FS),yaffs)
  22. imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSTARBALL)
  23. @echo 'The root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  24. @echo 'Format your NAND with Routerboot, boot via NFS and'
  25. @echo 'then install kernel and filesystem via:'
  26. @echo 'adkinstall ${ROOTFSTARBALL}'
  27. endif