From 15464be3aa0bf616c94c5c949ddfa44a90125382 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 7 May 2011 21:18:32 +0800 Subject: [PATCH] Moved call to strip until install (to allow the debug information to be accessible by gdb) --- Kernel/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Kernel/Makefile b/Kernel/Makefile index e4b0436b..c488df7d 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -16,8 +16,8 @@ MAKEDEP = $(CC) -M CPPFLAGS += -I./include -I./arch/$(ARCHDIR)/include -D_MODULE_NAME_=\"Kernel\" CPPFLAGS += -DARCH=$(ARCH) -DARCHDIR=$(ARCHDIR) -DKERNEL_VERSION=$(KERNEL_VERSION) -DBUILD_NUM=$(BUILD_NUM) -CFLAGS += -Wall -Werror -fno-stack-protector -fno-builtin -Wstrict-prototypes -g -CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized +CFLAGS += -Wall -Werror -fno-stack-protector -fno-builtin -Wstrict-prototypes -g +CFLAGS += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized ASFLAGS += -D ARCH=\"$(ARCH)\" -D ARCHDIR=\"$(ARCHDIR)\" LDFLAGS += -T arch/$(ARCHDIR)/link.ld -g @@ -54,7 +54,10 @@ clean: @$(RM) $(BIN) ../Acess2.$(ARCH).gz $(BIN).dsm ../Map.$(ARCH).txt LineCounts.$(ARCH).txt $(OBJ) $(DEPFILES) install: $(BIN) - gzip -c $(BIN) > ../Acess2.$(ARCH).gz + cp $(BIN) $(BIN)_ + $(STRIP) $(BIN)_ + gzip -c $(BIN)_ > ../Acess2.$(ARCH).gz + $(RM) $(BIN)_ $(xCP) ../Acess2.$(ARCH).gz $(DISTROOT) apidoc: @@ -67,7 +70,7 @@ $(BIN): $(OBJ) $(MODS) arch/$(ARCHDIR)/link.ld Makefile @wc -l $(SRCFILES) include/*.h > LineCounts.$(ARCH).txt @echo BUILD_NUM = $$(( $(BUILD_NUM) + 1 )) > Makefile.BuildNum.$(ARCH) $(POSTBUILD) - @$(STRIP) $(BIN) +# $(STRIP) $(BIN) %.ao.$(ARCH): %.asm Makefile @echo --- AS -o $@ -- 2.20.1