Makefile 1.2 KB

1234567891011121314151617181920212223242526272829
  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/x86/boot/bzImage $(TARGET_DIR)/boot/kernel
  10. ifeq ($(FS),archive)
  11. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  12. @echo
  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 qemu.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  16. @echo 'Login as user root with password linux123 via ssh or console'
  17. endif
  18. ifeq ($(FS),initramfs)
  19. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  20. @cp $(LINUX_DIR)/arch/x86/boot/bzImage $(BIN_DIR)/${ADK_TARGET}-${ARCH}-kernel
  21. @echo 'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${ARCH}-kernel'
  22. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  23. @echo 'qemu-system-x86_64 -nographic -kernel $(BIN_DIR)/${ADK_TARGET}-${ARCH}-kernel -initrd ${BIN_DIR}/${INITRAMFS} -append "console=ttyS0"'
  24. @echo 'Login as user root with password linux123 via ssh or console'
  25. endif