diff options
Diffstat (limited to 'userspace/Makefile')
| -rw-r--r-- | userspace/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/userspace/Makefile b/userspace/Makefile index 8e97ac8..666f210 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -1,3 +1,4 @@ + CC=i686-foolos-gcc CFLAGS= @@ -14,13 +15,16 @@ LDFLAGS=-lfool PROGS=foolshell ls simple brainfuck add checker clear task1 task2 init cat -ext2.img: $(PROGS) +include ../Makefile.common + +ext2.img: $(PROGS) ../mp/mp.bin dd if=/dev/zero of=ext2.img bs=512 count=10000 sudo mkfs.ext2 -O none ext2.img -F mkdir mnt sudo mount ext2.img mnt sudo chown miguel mnt mkdir -p mnt/home/miguel + mkdir -p mnt/boot echo "hello one" > mnt/home/miguel/test1.txt mkdir -p mnt/bin cp $^ mnt/bin @@ -28,6 +32,7 @@ ext2.img: $(PROGS) # cp ~/temp/fool-os-stuff/binutils-build-host-foolos/binutils/readelf mnt/bin cp ../font/binfont.bin mnt/ cp ~/temp/fool-os-stuff/ncurses-5.9/progs/tput mnt/bin + cp ../mp/mp.bin mnt/boot/ mkdir -p mnt/etc echo "127.0.0.1 localhost" > mnt/etc/hosts sync |
