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