Makefile 961 B

123456789101112131415161718192021222324252627
  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/vars.mk
  5. include $(TOPDIR)/mk/kernel.mk
  6. include $(TOPDIR)/mk/modules.mk
  7. include $(TOPDIR)/mk/kernel-build.mk
  8. include $(TOPDIR)/mk/image.mk
  9. KERNEL:=$(LINUX_DIR)/vmlinuz
  10. ifeq ($(FS),initramfs)
  11. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  12. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  13. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  14. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  15. endif
  16. ifeq ($(FS),initramfs-piggyback)
  17. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  18. @cp $(KERNEL) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
  19. @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  20. endif
  21. ifeq ($(FS),archive)
  22. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  23. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  24. endif