Remove classmate debug patch
[lcapit-linux-patches.git] / 2.6.27-ncc / 0001-NCC-Use-ncc-to-build-the-kernel.patch
blob0c7c5b24a840d981542afa90600288185f93a339
1 From 712a8aacfd6728d58a63fb4e747621ee677977a5 Mon Sep 17 00:00:00 2001
2 From: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
3 Date: Fri, 10 Oct 2008 10:19:10 -0300
4 Subject: [PATCH] NCC: Use ncc to build the kernel
6 Change from Stelios Xanthakis.
8 Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
9 ---
10 Makefile | 8 ++++----
11 scripts/Makefile.build | 1 +
12 2 files changed, 5 insertions(+), 4 deletions(-)
14 diff --git a/Makefile b/Makefile
15 index 16e3fbb..25eaf02 100644
16 --- a/Makefile
17 +++ b/Makefile
18 @@ -219,7 +219,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
19 else if [ -x /bin/bash ]; then echo /bin/bash; \
20 else echo sh; fi ; fi)
22 -HOSTCC = gcc
23 +HOSTCC = ncc -ncgcc -ncfabs -ncld -ncspp
24 HOSTCXX = g++
25 HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
26 HOSTCXXFLAGS = -O2
27 @@ -305,10 +305,10 @@ include $(srctree)/scripts/Kbuild.include
28 # Make variables (CC, etc...)
30 AS = $(CROSS_COMPILE)as
31 -LD = $(CROSS_COMPILE)ld
32 -CC = $(CROSS_COMPILE)gcc
33 +LD = $(CROSS_COMPILE)nccld -ncquiet
34 +CC = $(CROSS_COMPILE)ncc -ncspp -ncfabs -ncgcc -ncld -ncquiet
35 CPP = $(CC) -E
36 -AR = $(CROSS_COMPILE)ar
37 +AR = $(CROSS_COMPILE)nccar -ncquiet
38 NM = $(CROSS_COMPILE)nm
39 STRIP = $(CROSS_COMPILE)strip
40 OBJCOPY = $(CROSS_COMPILE)objcopy
41 diff --git a/scripts/Makefile.build b/scripts/Makefile.build
42 index 277cfe0..6d702c4 100644
43 --- a/scripts/Makefile.build
44 +++ b/scripts/Makefile.build
45 @@ -195,6 +195,7 @@ cmd_modversions = \
46 rm -f $(@D)/.tmp_$(@F) $(@D)/.tmp_$(@F:.o=.ver); \
47 else \
48 mv -f $(@D)/.tmp_$(@F) $@; \
49 + mv -f $(@D)/.tmp_$(@F).nccout $@.nccout; \
50 fi;
51 endif
53 --
54 1.5.6