summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2b7b957..936cdab 100644
--- a/Makefile
+++ b/Makefile
@@ -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