Makefile 327 B

1234567891011121314151617
  1. all:floppy.img
  2. scons
  3. mkdir -p tmp
  4. sudo mount -t vfat floppy.img tmp -o loop
  5. sudo cp rtthread.elf tmp/boot/oskernel
  6. sudo umount tmp
  7. clean:
  8. scons -c clean
  9. rm -fr build rtthread*
  10. floppy.img:
  11. wget https://github.com/bajdcc/tinix/raw/master/floppy.img
  12. run:
  13. qemu-system-i386 -fda floppy.img -boot a -m 64M -serial stdio