Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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)/vmlinux
  9. ifeq ($(ADK_TARGET_FS),archive)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  12. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  13. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  14. endif
  15. ifeq ($(ADK_TARGET_FS),initramfs)
  16. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  17. @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
  18. @echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
  19. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  20. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  21. @echo "Start qemu with following command line:"
  22. @echo 'qemu-system-sparc64 -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL) -initrd ${BIN_DIR}/${INITRAMFS}'
  23. endif
  24. endif
  25. ifeq ($(ADK_TARGET_FS),initramfs-piggyback)
  26. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  27. @cp $(KERNEL) $(BIN_DIR)/${TARGET_KERNEL}
  28. @echo 'The kernel+initramfs file is: $(BIN_DIR)/${TARGET_KERNEL}'
  29. ifeq ($(ADK_TARGET_SYSTEM_QEMU_SPARC64),y)
  30. @echo "Start qemu with following command line:"
  31. @echo 'qemu-system-sparc64 -nographic -kernel $(BIN_DIR)/$(TARGET_KERNEL)'
  32. endif
  33. endif