Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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: $(BIN_DIR)/$(ROOTFSTARBALL)"
  12. @echo "To install everything to CompactFlash use scripts/install.sh"
  13. endif
  14. ifeq ($(FS),nfsroot)
  15. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  16. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  17. @echo 'The linux kernel is here: $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
  18. @echo 'The nfs root tarball is here: ${BIN_DIR}/${ROOTFSTARBALL}'
  19. endif
  20. ifeq ($(FS),initramfs)
  21. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  22. @cp $(KERNEL) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
  23. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  24. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  25. endif
  26. ifeq ($(FS),initramfs-piggyback)
  27. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  28. @cp $(KERNEL) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
  29. @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  30. endif