Makefile 1.2 KB

123456789101112131415161718192021222324252627282930
  1. # $Id: Makefile 30 2008-09-04 13:31:09Z wbx $
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include $(TOPDIR)/rules.mk
  6. include $(TOPDIR)/mk/kernel.mk
  7. include $(TOPDIR)/mk/modules.mk
  8. include $(TOPDIR)/mk/kernel-build.mk
  9. include $(TOPDIR)/mk/image.mk
  10. kernel-install:
  11. cp $(LINUX_DIR)/vmlinux $(BIN_DIR)/${DEVICE}-${ARCH}-kernel
  12. ifeq ($(FS),ext2)
  13. imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
  14. @echo
  15. @echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
  16. @echo "Use following command to create a QEMU Image:"
  17. @echo "sudo ./scripts/create-image.sh -n qemu-mips.img $(BIN_DIR)/$(ROOTFSTARBALL)"
  18. @echo "Start qemu with following options:"
  19. @echo 'qemu-system-mips64 -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -hda qemu-mips.img -append="root=/dev/hda1 init=/init"'
  20. endif
  21. ifeq ($(FS),initramfs)
  22. imageinstall: $(BIN_DIR)/$(INITRAMFS)
  23. @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel'
  24. @echo 'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
  25. @echo 'qemu-system-mips64 -nographic -M malta -kernel $(BIN_DIR)/${DEVICE}-${ARCH}-kernel -initrd ${BIN_DIR}/${INITRAMFS} -append "init=/init"'
  26. endif