diff options
| author | Miguel <m.i@gmx.at> | 2018-09-18 03:03:28 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-18 03:03:28 +0200 |
| commit | 2d91384197847a7e8fe2c3f548918a8277d3086d (patch) | |
| tree | 7c93404e290a0ffbdaf9a8a94766d7bd0fd6e4f2 /userspace/Makefile | |
| parent | 06e6e427c76bdb88a7f72dd04411d95a4bda3270 (diff) | |
sysfs, errno, improve foolshell, etc
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 dbc2d0f..d39f15f 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -2,6 +2,8 @@ IMAGESIZE=10000 #ext2.img size in Kb ####################### +GIT_REVISION=$(shell git rev-parse HEAD) + CC=i686-foolos-gcc CC=i686-elf-gcc AS=i686-elf-as @@ -9,11 +11,13 @@ CC = @echo "Compiling (i686-elf-gcc) $<..."; i686-elf-gcc AS = @echo "Assembling (i686-elf-as) $<..."; i686-elf-as CFLAGS= -CFLAGS=-w +CFLAGS+=-DGIT_REVISION=\"$(GIT_REVISION)\" +CFLAGS+=-w CFLAGS+=-I.. CFLAGS+=-I/home/miguel/temp/foolos/usr/i686-foolos/include CFLAGS+=-O0 CFLAGS+=-g +CFLAGS+= -Werror=implicit-function-declaration LDFLAGS=-L/home/miguel/temp/foolos/usr/i686-foolos/lib/ LDLIBS=-lc -lm -lg -lnosys @@ -40,6 +44,7 @@ ext2.img: $(PROGS) @echo "Welcome to FoolOs\nWe hope you will enjoy your stay." > mnt/home/miguel/hello.txt @mkdir -p mnt/bin @mkdir -p mnt/doc/test + @mkdir -p mnt/sys # mountpoint for sysfs @cp test.txt mnt/doc/test/ @cp $(PROGS) mnt/bin @cp fonts/binfont.bin mnt/ |
