Makefile 900 B

12345678910111213141516171819202122232425262728
  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. $(KERNEL_CROSS)objcopy $(OSTRIP) -S $(LINUX_DIR)/vmlinux \
  11. $(BIN_DIR)/${DEVICE}-${ARCH}-kernel
  12. ifeq ($(FS),ext2-cf)
  13. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  14. @echo
  15. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  16. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
  17. endif
  18. ifeq ($(FS),nfsroot)
  19. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  20. @echo
  21. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  22. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  23. endif