Makefile 1.6 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)/arch/arm/boot/zImage
  9. ifeq ($(FS),archive)
  10. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  11. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  12. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  13. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
  14. @echo "Use following command to create a QEMU Image:"
  15. @echo "sudo ./scripts/create-image.sh -f $(ADK_TARGET_ROOTFS) qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  16. @echo "Start qemu with following options:"
  17. @echo 'qemu-system-arm -M spitz -portrait -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  18. endif
  19. ifeq ($(FS),initramfs)
  20. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  21. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  22. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  23. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  24. @echo "Start qemu with following options:"
  25. @echo 'qemu-system-arm -M spitz -portrait -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  26. endif
  27. ifeq ($(FS),initramfs-piggyback)
  28. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  29. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  30. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  31. @echo "Start qemu with following options:"
  32. @echo 'qemu-system-arm -M spitz -portrait -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
  33. endif