diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-03 00:15:51 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-03 00:15:51 +0200 |
| commit | aad04a2208fbde8db2c1a81d6057c1ac4edb390e (patch) | |
| tree | 87f3b47c5f85d6c7c5921e799571b42906d0eb0a /Makefile | |
| parent | 1a3a3a20773a5664c653a8aebcd10d288962285b (diff) | |
ACPI support !
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -19,17 +19,18 @@ IMAGE_SIZE=1474560 #ap bin : MP_IMG_START=25088 -#font data starts at sector 50 -FONT_DATA_START=25600 +#font data starts here: +FONT_DATA_START=26624 -USB_STICK=/dev/sdf +USB_STICK=/dev/sdd ############ flags ############ CFLAGS=-ffreestanding -std=gnu99 -m32 -fno-asynchronous-unwind-tables -O0 CFLAGS+= -I. +#CFLAGS+=-fdata-sections -ffunction-sections #CFLAGS+= -Werror @@ -80,7 +81,7 @@ all: FoolOS.img # the kernel_entry.o needs to be FIRST!! kernel.bin: $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) - ld -o $@ -Ttext 0x1000 --oformat binary -melf_i386 $^ -O0 + ld -o $@ -Ttext 0x1000 --oformat binary -melf_i386 $^ -O0 # --gc-sections --entry=kernel_main -v ############ fool-font ############ @@ -120,7 +121,7 @@ clean: -rm *.bin *.img bochs.log $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(FILLUP) $(MBR) $(MP_BIN) bochs.out ne2k-tx.log ne2k-txdump.txt ############ test stuff ############ -acer: FoolOS.img +stick: FoolOS.img cat FoolOS.img > $(USB_STICK) && sync xxd $(USB_STICK) | head -n 50 |
