Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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:=$(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel
  10. kernel-install:
  11. $(TARGET_CROSS)objcopy $(OSTRIP) -S $(LINUX_DIR)/vmlinux \
  12. $(TARGET_DIR)/boot/kernel
  13. @cp $(TARGET_DIR)/boot/kernel \
  14. $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel
  15. ifeq ($(FS),nfsroot)
  16. imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  17. @cp $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel \
  18. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  19. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  20. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  21. endif
  22. ifeq ($(FS),yaffs)
  23. imageinstall: kernel-install $(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 via:'
  27. @echo 'adkinstall ${ROOTFSTARBALL}'
  28. endif