From 610cfb4cee7ca3f35f642eeb06de2c710ab67754 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 24 Oct 2014 16:02:06 +0200 Subject: updated userspace with new adapted brainfuck --- userspace/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'userspace/Makefile') diff --git a/userspace/Makefile b/userspace/Makefile index ceba7d0..1663d1d 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -8,8 +8,8 @@ LDFLAGS=-L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/newlib/ \ -L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/libgloss/libnosys/ \ -lnosys -ext2.img: shell simple - dd if=/dev/zero of=ext2.img bs=512 count=200 +ext2.img: shell simple brainfuck + dd if=/dev/zero of=ext2.img bs=512 count=500 sudo mkfs.ext2 -O none ext2.img -F mkdir mnt sudo mount ext2.img mnt @@ -19,10 +19,14 @@ ext2.img: shell simple echo "hello two" > mnt/test2.txt cp shell mnt cp simple mnt + cp brainfuck mnt sync sudo umount mnt rm mnt -rf +brainfuck: brainfuck.o crt0.o + ${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o brainfuck + shell: foolshell.o crt0.o ${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o shell @@ -30,7 +34,7 @@ simple: simple.o crt0.o ${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o simple clean: - -rm *.o *.out shell simple ext2.img + -rm *.o *.out shell simple ext2.img brainfuck umount: sudo umount mnt -- cgit v1.2.3