projects
/
cortex-from-scratch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SYSCALL naked assembly working
[cortex-from-scratch]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
d6a161a
..
6d3ec19
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-11,8
+11,9
@@
MKIMG=arm-none-eabi-objcopy
# Compiler flags
LDFLAGS+= -mthumb -mcpu=cortex-m3
# Compiler flags
LDFLAGS+= -mthumb -mcpu=cortex-m3
-ASFLAGS+= -mcpu=cortex-m3 -mthumb -g
-CFLAGS+= -mcpu=cortex-m3 -mthumb -g -ffreestanding
+ASFLAGS+= -mcpu=cortex-m3 -mthumb
+CFLAGS+= -mcpu=cortex-m3 -mthumb -ffreestanding
+#CFLAGS+= -mcpu=cortex-m3 -mthumb -g -ffreestanding
# Include directory
INCLUDE+= -Iinclude
# Include directory
INCLUDE+= -Iinclude
@@
-20,7
+21,7
@@
INCLUDE+= -Iinclude
BIN = bin
ODIR = obj
BIN = bin
ODIR = obj
-_OBJ = ivt.o systick.o sysinfo.o term.o main.o clock.o rtc.o heap.o
+_OBJ = ivt.o systick.o sysinfo.o term.o main.o clock.o rtc.o heap.o
syscall.o
OBJ = $(patsubst %, $(ODIR)/%,$(_OBJ))
DDIR = obj/drivers
OBJ = $(patsubst %, $(ODIR)/%,$(_OBJ))
DDIR = obj/drivers
@@
-28,7
+29,7
@@
_DRIVERS = uart.o tm1637.o led.o tsensor.o at24c.o mk450_joystick.o st7735s.o
DRIVERS = $(patsubst %, $(DDIR)/%,$(_DRIVERS))
LDIR = obj/lib
DRIVERS = $(patsubst %, $(DDIR)/%,$(_DRIVERS))
LDIR = obj/lib
-_LIBS = string.o stdio.o regfunc.o pool.o tinyprintf.o
+_LIBS = string.o stdio.o regfunc.o pool.o tinyprintf.o
syscall.o
LIBS = $(patsubst %, $(LDIR)/%,$(_LIBS))
$(DDIR)/%.o: drivers/%.c
LIBS = $(patsubst %, $(LDIR)/%,$(_LIBS))
$(DDIR)/%.o: drivers/%.c
@@
-57,7
+58,7
@@
kernel: $(OBJ) $(DRIVERS) $(LIBS)
# Run in Qemu; note this is a patched version for stm32-f103c8
run:
# Run in Qemu; note this is a patched version for stm32-f103c8
run:
- /usr/local/bin/qemu-system-arm -serial stdio -M stm32-f103c8 -kernel $(BIN)/kernel.bin
+ /usr/local/bin/qemu-system-arm -
monitor stdio -
serial stdio -M stm32-f103c8 -kernel $(BIN)/kernel.bin
# Examine all sections
examine-all:
# Examine all sections
examine-all: