Makefile 1.0 KB

123456789101112131415161718192021222324252627282930
  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. $(TOOLS_BUILD_DIR):
  10. @mkdir -p $(TOOLS_BUILD_DIR)
  11. tools-compile: $(TOOLS_BUILD_DIR)
  12. $(MAKE) -C tools/trx
  13. kernel-install: tools-compile
  14. $(TARGET_CROSS)objcopy $(OSTRIP) -S $(LINUX_DIR)/vmlinux \
  15. $(LINUX_DIR)/vmlinuz
  16. @gzip -c9 $(LINUX_DIR)/vmlinuz > \
  17. $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  18. ifeq ($(FS),nfsroot)
  19. imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  20. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  21. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  22. @echo 'Type following on the CFE prompt to boot the kernel:'
  23. @echo 'CFE> boot -z -elf -tftp 192.168.1.254:${ADK_TARGET}-${FS}-kernel'
  24. endif