1.1 --- a/Makefile Sun Jun 07 02:20:54 2015 +0200
1.2 +++ b/Makefile Sun Jun 07 18:21:24 2015 +0200
1.3 @@ -28,7 +28,7 @@
1.4 # NOTE: See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56888
1.5
1.6 ASM_INC = /usr/src/linux-headers-4.0.0-1-common/arch/mips/include
1.7 -CFLAGS = -O2 -Wall -fno-pic -fno-unit-at-a-time -fno-zero-initialized-in-bss \
1.8 +CFLAGS = -O2 -Wall -fno-unit-at-a-time -fno-zero-initialized-in-bss \
1.9 -ffreestanding -fno-hosted -fno-builtin \
1.10 -march=mips32 -mno-abicalls \
1.11 -Iinclude -I$(ASM_INC) -I$(ASM_INC)/asm/mach-generic
1.12 @@ -42,9 +42,9 @@
1.13 # Ordering of objects is important and cannot be left to replacement rules.
1.14
1.15 SRC1 = head1.S stage1.c board-nanonote.c
1.16 -SRC2 = head2.S stage2.c board-nanonote.c nanonote_gpm940b0.c lcd.c
1.17 +SRC2 = head2.S stage2.c board-nanonote2.c nanonote_gpm940b0.c lcd.c
1.18 OBJ1 = head1.o stage1.o board-nanonote.o
1.19 -OBJ2 = head2.o stage2.o board-nanonote.o nanonote_gpm940b0.o lcd.o
1.20 +OBJ2 = head2.o stage2.o board-nanonote2.o nanonote_gpm940b0.o lcd.o
1.21 OBJ = $(OBJ1) $(OBJ2)
1.22
1.23 .PHONY: all clean distclean
1.24 @@ -61,7 +61,7 @@
1.25 $(OBJCOPY) -O binary $(@:.bin=.elf) $@+
1.26 $(OBJDUMP) -D $(@:.bin=.elf) > $(@:.bin=.dump)
1.27 $(OBJDUMP) -h $(@:.bin=.elf) > $(@:.bin=.map)
1.28 - $(NM) -n $< > System-$(@:.bin=.map)
1.29 + $(NM) -n $(@:.bin=.elf) > System-$(@:.bin=.map)
1.30 chmod -x $@+
1.31 mv -f $@+ $@
1.32