Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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),nfsroot)
  13. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  14. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  15. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSTARBALL}'
  16. @echo 'Boot your lemote and type following commands in PMON:'
  17. @echo 'PMON> ifaddr rtl0 <ip-address-client>'
  18. @echo 'PMON> load tftp://<ip-address-server>/lemote-mips-kernel'
  19. @echo 'PMON> g console=tty root=/dev/nfs ip=dhcp init=/init'
  20. endif
  21. ifeq ($(FS),initramfs)
  22. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  23. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  24. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  25. endif
  26. ifeq ($(FS),ext2)
  27. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  28. @echo
  29. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  30. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
  31. endif