X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=rpikern;a=blobdiff_plain;f=Makefile;h=bb0b2bc69725481e1a2f594f06220fa5da0a4e5c;hp=f61f3401d156e6c7039d47145b4e576cc949fd49;hb=d80ebb8add60dd01b37d21c21a1a9d971f0f9dce;hpb=4cdb0feb633bc6181644704cea8f18368b5bcfd1 diff --git a/Makefile b/Makefile index f61f340..bb0b2bc 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,8 @@ endif warn = -pedantic -Wall dbg = -g -inc = -Isrc/libc -gccopt = -marm -fpic -ffreestanding -nostdinc +inc = -Isrc -Isrc/libc +gccopt = -marm -fno-pic -ffreestanding -nostdinc -ffast-math -fno-math-errno -MMD #arch = -mcpu=arm1176jzf-s arch = -mcpu=cortex-a7 @@ -26,7 +26,7 @@ CFLAGS = $(arch) $(warn) $(opt) $(dbg) $(gccopt) $(inc) $(def) ASFLAGS = $(arch) $(dbg) $(inc) LDFLAGS = -nostdlib -T rpikern.ld -print-gc-sections -QEMU_FLAGS = -m 256 -M raspi2 -serial stdio +QEMU_FLAGS = -vnc :0 -m 1024 -M raspi2 -serial stdio -d guest_errors $(bin): $(elf) @@ -37,10 +37,6 @@ $(elf): $(obj) -include $(dep) -%.d: %.c - @echo 'gen dep $@ ...' - @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ - .PHONY: clean clean: rm -f $(obj) $(bin) $(elf) link.map @@ -52,3 +48,11 @@ cleandep: .PHONY: run run: $(elf) qemu-system-arm $(QEMU_FLAGS) -kernel $(elf) + +.PHONY: disasm +disasm: $(elf) + $(toolprefix)objdump -D $< + +.PHONY: install +install: $(bin) + cp $(bin) /srv/tftp/$(bin)