Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. KERNEL:=$(LINUX_DIR)/arch/x86/boot/bzImage
  9. kernel-install:
  10. @cp $(KERNEL) $(TARGET_DIR)/boot/vmlinuz-adk
  11. ifeq ($(FS),ext2-block)
  12. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  13. @echo
  14. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  15. @echo "To install everything to CompactFlash use scripts/install.sh"
  16. @echo 'Login as user root with password linux123 via ssh or console'
  17. endif
  18. ifeq ($(FS),nfsroot)
  19. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  20. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  21. @echo
  22. @echo 'The linux kernel is here: $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
  23. @echo 'The nfs root tarball is here: ${BIN_DIR}/${ROOTFSTARBALL}'
  24. @echo 'Login as user root with password linux123 via ssh or console'
  25. endif
  26. ifeq ($(FS),initramfs)
  27. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  28. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  29. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  30. @echo 'Login as user root with password linux123 via ssh or console'
  31. endif
  32. ifeq ($(FS),initramfs-piggyback)
  33. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  34. @cp $(KERNEL) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
  35. @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  36. @echo 'Login as user root with password linux123 via ssh or console'
  37. endif