Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/x86/boot/bzImage
  9. kernel-install:
  10. @cp $(KERNEL) $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel
  11. ifeq ($(FS),archive)
  12. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  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 command line:"
  17. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel qemu-${CPU_ARCH}.img'
  18. @echo 'Login as user root with password linux123 via ssh or console'
  19. endif
  20. ifeq ($(FS),initramfs)
  21. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  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 command line:"
  25. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
  26. @echo 'Login as user root with password linux123 via ssh or console'
  27. endif
  28. ifeq ($(FS),initramfs-piggyback)
  29. imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
  30. @cp $(KERNEL) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
  31. @echo 'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
  32. @echo "Start qemu with following command line:"
  33. @echo 'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
  34. @echo 'Login as user root with password linux123 via ssh or console'
  35. endif