Makefile 1.7 KB

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