Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 ($(ADK_TARGET_FS),initramfs)
  15. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  16. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  17. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  18. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  19. endif
  20. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  21. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  22. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  23. @echo 'The kernel+initramfs file is: ${BIN_DIR}/${TARGET_KERNEL}'
  24. endif
  25. ifeq ($(ADK_TARGET_FS),archive)
  26. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  27. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  28. endif
  29. ifeq ($(ADK_TARGET_FS),nfsroot)
  30. imageinstall: $(BIN_DIR)/$(ROOTFSUSERTARBALL)
  31. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  32. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  33. @echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
  34. endif