Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. ifeq ($(CPU_ARCH),i686)
  10. KERNEL:=$(LINUX_DIR)/arch/x86/boot/bzImage
  11. else
  12. KERNEL:=$(LINUX_DIR)/vmlinuz
  13. endif
  14. ifeq ($(FS),initramfs)
  15. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  16. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  17. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  18. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  19. endif
  20. ifeq ($(FS),initramfs-piggyback)
  21. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  22. @cp $(KERNEL) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
  23. @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  24. endif
  25. ifeq ($(FS),archive)
  26. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  27. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  28. endif