Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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),ext2-block)
  16. imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  17. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  18. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSUSERTARBALL)"
  19. @echo "Boot the board via network (tftp/nfsroot) and use adkinstall."
  20. @echo "If you just want to update, use adkupdate."
  21. endif
  22. ifeq ($(FS),nfsroot)
  23. imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  24. @cp $(BUILD_DIR)/${ADK_TARGET}-${FS}-kernel \
  25. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  26. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  27. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  28. endif
  29. ifeq ($(FS),yaffs)
  30. imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSTARBALL)
  31. @echo "The RootFS tarball is:"
  32. @echo "$(BIN_DIR)/$(ROOTFSTARBALL)"
  33. @echo "Boot the board via network (tftp/nfsroot) and use adkinstall."
  34. @echo "If you just want to update, use adkupdate."
  35. endif