Robert P. J. DAY says:
apparently, the patchset for gcc 4.2.1 applies properly to the
source for gcc 4.2.2 and gcc 4.2.3. so, if you want, you can simply
add support for those last two just by augmenting menuconfig and
adding a couple symlinks for those two directories. seems like a
cheap way to add a couple new versions.
1 Submitted By: Martin Schaffner <schaffner@gmx.li>
3 Initial Package Version: 2.6.7
4 Upstream Status: Not submitted
5 Origin: Martin Schaffner
6 Description: Enables build on case-insensitive file systems
7 URL: http://mirror.vtx.ch/lfs/patches/downloads/linux/linux-2.6.7-build_on_case_insensitive_fs-1.patch
9 diff -ur linux-2.6.7/Makefile linux-2.6.7-mod/Makefile
10 --- linux-2.6.7/Makefile Fri Jun 18 22:51:03 2004
11 +++ linux-2.6.7-mod/Makefile Sat Jun 19 12:43:10 2004
13 $(NM) $@ | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
16 -LDFLAGS_vmlinux += -T arch/$(ARCH)/kernel/vmlinux.lds.s
17 +LDFLAGS_vmlinux += -T arch/$(ARCH)/kernel/vmlinux.lds.asm
19 # Generate section listing all symbols and add it into vmlinux
20 # It's a three stage process:
22 .tmp_kallsyms%.S: .tmp_vmlinux%
25 -.tmp_vmlinux1: $(vmlinux-objs) arch/$(ARCH)/kernel/vmlinux.lds.s FORCE
26 +.tmp_vmlinux1: $(vmlinux-objs) arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE
27 +$(call if_changed_rule,vmlinux__)
29 -.tmp_vmlinux2: $(vmlinux-objs) .tmp_kallsyms1.o arch/$(ARCH)/kernel/vmlinux.lds.s FORCE
30 +.tmp_vmlinux2: $(vmlinux-objs) .tmp_kallsyms1.o arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE
31 $(call if_changed_rule,vmlinux__)
35 # Finally the vmlinux rule
37 -vmlinux: $(vmlinux-objs) $(kallsyms.o) arch/$(ARCH)/kernel/vmlinux.lds.s FORCE
38 +vmlinux: $(vmlinux-objs) $(kallsyms.o) arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE
39 $(call if_changed_rule,vmlinux)
41 # The actual objects are generated when descending,
42 # make sure no implicit rule kicks in
44 -$(sort $(vmlinux-objs)) arch/$(ARCH)/kernel/vmlinux.lds.s: $(vmlinux-dirs) ;
45 +$(sort $(vmlinux-objs)) arch/$(ARCH)/kernel/vmlinux.lds.asm: $(vmlinux-dirs) ;
47 # Handle descending into subdirectories listed in $(vmlinux-dirs)
51 # ---------------------------------------------------------------------------
53 -%.s: %.c scripts FORCE
54 +%.asm: %.c scripts FORCE
55 $(Q)$(MAKE) $(build)=$(@D) $@
56 %.i: %.c scripts FORCE
57 $(Q)$(MAKE) $(build)=$(@D) $@
59 $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D)
60 %.lst: %.c scripts FORCE
61 $(Q)$(MAKE) $(build)=$(@D) $@
62 -%.s: %.S scripts FORCE
63 +%.asm: %.S scripts FORCE
64 $(Q)$(MAKE) $(build)=$(@D) $@
65 %.o: %.S scripts FORCE
66 $(Q)$(MAKE) $(build)=$(@D) $@
67 diff -ur linux-2.6.7/arch/alpha/Makefile linux-2.6.7-mod/arch/alpha/Makefile
68 --- linux-2.6.7/arch/alpha/Makefile Fri Jun 18 22:51:03 2004
69 +++ linux-2.6.7-mod/arch/alpha/Makefile Sat Jun 19 12:46:32 2004
72 prepare: include/asm-$(ARCH)/asm_offsets.h
74 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
75 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
78 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
79 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
80 $(call filechk,gen-asm-offsets)
83 diff -ur linux-2.6.7/arch/alpha/kernel/Makefile linux-2.6.7-mod/arch/alpha/kernel/Makefile
84 --- linux-2.6.7/arch/alpha/kernel/Makefile Mon May 10 04:32:29 2004
85 +++ linux-2.6.7-mod/arch/alpha/kernel/Makefile Sat Jun 19 12:46:48 2004
87 # Makefile for the linux kernel.
90 -extra-y := head.o vmlinux.lds.s
91 +extra-y := head.o vmlinux.lds.asm
92 EXTRA_AFLAGS := $(CFLAGS)
93 EXTRA_CFLAGS := -Werror -Wno-sign-compare
95 diff -ur linux-2.6.7/arch/arm/Makefile linux-2.6.7-mod/arch/arm/Makefile
96 --- linux-2.6.7/arch/arm/Makefile Fri Jun 18 22:51:04 2004
97 +++ linux-2.6.7-mod/arch/arm/Makefile Sat Jun 19 12:47:07 2004
99 i:; $(Q)$(MAKE) $(build)=$(boot) install
100 zi:; $(Q)$(MAKE) $(build)=$(boot) zinstall
102 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
103 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
104 include/asm-arm/.arch
106 -include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.s
107 +include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.asm
108 $(call filechk,gen-asm-offsets)
111 diff -ur linux-2.6.7/arch/arm/kernel/Makefile linux-2.6.7-mod/arch/arm/kernel/Makefile
112 --- linux-2.6.7/arch/arm/kernel/Makefile Mon May 10 04:33:19 2004
113 +++ linux-2.6.7-mod/arch/arm/kernel/Makefile Sat Jun 19 12:47:25 2004
116 obj-$(CONFIG_DEBUG_LL) += debug.o
118 -extra-y := $(head-y) init_task.o vmlinux.lds.s
119 +extra-y := $(head-y) init_task.o vmlinux.lds.asm
121 # Spell out some dependencies that aren't automatically figured out
122 $(obj)/entry-armv.o: $(obj)/entry-header.S include/asm-arm/constants.h
123 diff -ur linux-2.6.7/arch/arm26/Makefile linux-2.6.7-mod/arch/arm26/Makefile
124 --- linux-2.6.7/arch/arm26/Makefile Mon May 10 04:32:28 2004
125 +++ linux-2.6.7-mod/arch/arm26/Makefile Sat Jun 19 12:48:24 2004
126 @@ -101,10 +101,10 @@
130 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
131 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
132 include/config/MARKER
134 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
135 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
136 $(call filechk,gen-asm-offsets)
139 diff -ur linux-2.6.7/arch/arm26/kernel/Makefile linux-2.6.7-mod/arch/arm26/kernel/Makefile
140 --- linux-2.6.7/arch/arm26/kernel/Makefile Mon May 10 04:32:29 2004
141 +++ linux-2.6.7-mod/arch/arm26/kernel/Makefile Sat Jun 19 12:48:30 2004
143 obj-$(CONFIG_FIQ) += fiq.o
144 obj-$(CONFIG_MODULES) += armksyms.o
146 -extra-y := init_task.o vmlinux.lds.s
147 +extra-y := init_task.o vmlinux.lds.asm
149 diff -ur linux-2.6.7/arch/cris/Makefile linux-2.6.7-mod/arch/cris/Makefile
150 --- linux-2.6.7/arch/cris/Makefile Fri Jun 18 22:51:07 2004
151 +++ linux-2.6.7-mod/arch/cris/Makefile Sat Jun 19 12:48:47 2004
153 @ln -sf $(SARCH) include/asm-$(ARCH)/arch
156 -arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
157 +arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
158 include/config/MARKER
160 -include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s
161 +include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.asm
162 $(call filechk,gen-asm-offsets)
163 diff -ur linux-2.6.7/arch/cris/kernel/Makefile linux-2.6.7-mod/arch/cris/kernel/Makefile
164 --- linux-2.6.7/arch/cris/kernel/Makefile Fri Jun 18 22:51:09 2004
165 +++ linux-2.6.7-mod/arch/cris/kernel/Makefile Sat Jun 19 12:48:53 2004
167 # Makefile for the linux kernel.
170 -extra-y := vmlinux.lds.s
171 +extra-y := vmlinux.lds.asm
173 obj-y := process.o traps.o irq.o ptrace.o setup.o \
174 time.o sys_cris.o semaphore.o
175 diff -ur linux-2.6.7/arch/h8300/Makefile linux-2.6.7-mod/arch/h8300/Makefile
176 --- linux-2.6.7/arch/h8300/Makefile Fri Jun 18 22:51:09 2004
177 +++ linux-2.6.7-mod/arch/h8300/Makefile Sat Jun 19 12:49:12 2004
180 prepare: include/asm-$(ARCH)/asm-offsets.h
182 -include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
183 +include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm \
184 include/asm include/linux/version.h
185 $(call filechk,gen-asm-offsets)
187 diff -ur linux-2.6.7/arch/h8300/kernel/Makefile linux-2.6.7-mod/arch/h8300/kernel/Makefile
188 --- linux-2.6.7/arch/h8300/kernel/Makefile Fri Jun 18 22:51:09 2004
189 +++ linux-2.6.7-mod/arch/h8300/kernel/Makefile Sat Jun 19 12:49:32 2004
191 # Makefile for the linux kernel.
194 -extra-y := vmlinux.lds.s
195 +extra-y := vmlinux.lds.asm
197 obj-y := process.o traps.o ptrace.o ints.o \
198 sys_h8300.o time.o semaphore.o signal.o \
199 diff -ur linux-2.6.7/arch/i386/Makefile linux-2.6.7-mod/arch/i386/Makefile
200 --- linux-2.6.7/arch/i386/Makefile Fri Jun 18 22:51:10 2004
201 +++ linux-2.6.7-mod/arch/i386/Makefile Sat Jun 19 12:49:43 2004
202 @@ -141,10 +141,10 @@
203 prepare: include/asm-$(ARCH)/asm_offsets.h
204 CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
206 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
207 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
208 include/config/MARKER
210 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
211 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
212 $(call filechk,gen-asm-offsets)
215 diff -ur linux-2.6.7/arch/i386/kernel/Makefile linux-2.6.7-mod/arch/i386/kernel/Makefile
216 --- linux-2.6.7/arch/i386/kernel/Makefile Mon May 10 04:32:02 2004
217 +++ linux-2.6.7-mod/arch/i386/kernel/Makefile Sat Jun 19 12:49:54 2004
219 # Makefile for the linux kernel.
222 -extra-y := head.o init_task.o vmlinux.lds.s
223 +extra-y := head.o init_task.o vmlinux.lds.asm
225 obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \
226 ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \
227 diff -ur linux-2.6.7/arch/ia64/Makefile linux-2.6.7-mod/arch/ia64/Makefile
228 --- linux-2.6.7/arch/ia64/Makefile Mon May 10 04:31:59 2004
229 +++ linux-2.6.7-mod/arch/ia64/Makefile Sat Jun 19 12:50:12 2004
232 prepare: include/asm-ia64/offsets.h
234 -arch/ia64/kernel/asm-offsets.s: include/asm include/linux/version.h include/config/MARKER
235 +arch/ia64/kernel/asm-offsets.asm: include/asm include/linux/version.h include/config/MARKER
237 -include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.s
238 +include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.asm
239 $(call filechk,gen-asm-offsets)
241 -arch/ia64/kernel/asm-offsets.s: include/asm-ia64/.offsets.h.stamp
242 +arch/ia64/kernel/asm-offsets.asm: include/asm-ia64/.offsets.h.stamp
244 include/asm-ia64/.offsets.h.stamp:
245 mkdir -p include/asm-ia64
246 diff -ur linux-2.6.7/arch/ia64/kernel/Makefile linux-2.6.7-mod/arch/ia64/kernel/Makefile
247 --- linux-2.6.7/arch/ia64/kernel/Makefile Fri Jun 18 22:51:13 2004
248 +++ linux-2.6.7-mod/arch/ia64/kernel/Makefile Sat Jun 19 12:52:14 2004
250 # Makefile for the linux kernel.
253 -extra-y := head.o init_task.o vmlinux.lds.s
254 +extra-y := head.o init_task.o vmlinux.lds.asm
256 obj-y := acpi.o entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \
257 irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o \
259 # The gate DSO image is built using a special linker script.
260 targets += gate.so gate-syms.o
262 -extra-y += gate.so gate-syms.o gate.lds.s gate.o
263 +extra-y += gate.so gate-syms.o gate.lds.asm gate.o
265 # fp_emulate() expects f2-f5,f16-f31 to contain the user-level state.
266 CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31
268 cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@
270 GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1
271 -$(obj)/gate.so: $(obj)/gate.lds.s $(obj)/gate.o FORCE
272 +$(obj)/gate.so: $(obj)/gate.lds.asm $(obj)/gate.o FORCE
273 $(call if_changed,gate)
275 $(obj)/built-in.o: $(obj)/gate-syms.o
276 $(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o
278 GATECFLAGS_gate-syms.o = -r
279 -$(obj)/gate-syms.o: $(src)/gate.lds.s $(obj)/gate.o FORCE
280 +$(obj)/gate-syms.o: $(src)/gate.lds.asm $(obj)/gate.o FORCE
281 $(call if_changed,gate)
283 # gate-data.o contains the gate DSO image as data in section .data.gate.
284 diff -ur linux-2.6.7/arch/m68k/Makefile linux-2.6.7-mod/arch/m68k/Makefile
285 --- linux-2.6.7/arch/m68k/Makefile Fri Jun 18 22:51:14 2004
286 +++ linux-2.6.7-mod/arch/m68k/Makefile Sat Jun 19 12:52:30 2004
287 @@ -114,10 +114,10 @@
288 prepare: include/asm-$(ARCH)/offsets.h
289 CLEAN_FILES += include/asm-$(ARCH)/offsets.h
291 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
292 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
293 include/config/MARKER
295 -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
296 +include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
297 $(call filechk,gen-asm-offsets)
300 diff -ur linux-2.6.7/arch/m68k/kernel/Makefile linux-2.6.7-mod/arch/m68k/kernel/Makefile
301 --- linux-2.6.7/arch/m68k/kernel/Makefile Mon May 10 04:33:10 2004
302 +++ linux-2.6.7-mod/arch/m68k/kernel/Makefile Sat Jun 19 12:52:35 2004
305 extra-y := sun3-head.o
307 -extra-y += vmlinux.lds.s
308 +extra-y += vmlinux.lds.asm
310 obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \
311 sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
312 diff -ur linux-2.6.7/arch/m68knommu/Makefile linux-2.6.7-mod/arch/m68knommu/Makefile
313 --- linux-2.6.7/arch/m68knommu/Makefile Mon May 10 04:32:54 2004
314 +++ linux-2.6.7-mod/arch/m68knommu/Makefile Sat Jun 19 12:52:57 2004
316 head-y := arch/m68knommu/platform/$(platform-y)/$(board-y)/crt0_$(model-y).o
318 CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
319 - arch/$(ARCH)/kernel/asm-offsets.s
320 + arch/$(ARCH)/kernel/asm-offsets.asm
322 core-y += arch/m68knommu/kernel/ \
326 $(call descend arch/$(ARCH)/boot, subdirclean)
328 -include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
329 +include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm \
330 include/asm include/linux/version.h \
331 include/config/MARKER
332 $(call filechk,gen-asm-offsets)
333 diff -ur linux-2.6.7/arch/m68knommu/kernel/Makefile linux-2.6.7-mod/arch/m68knommu/kernel/Makefile
334 --- linux-2.6.7/arch/m68knommu/kernel/Makefile Mon May 10 04:32:26 2004
335 +++ linux-2.6.7-mod/arch/m68knommu/kernel/Makefile Sat Jun 19 12:53:20 2004
337 # Makefile for arch/m68knommu/kernel.
340 -extra-y := vmlinux.lds.s
341 +extra-y := vmlinux.lds.asm
343 obj-y += dma.o entry.o init_task.o m68k_ksyms.o process.o ptrace.o semaphore.o \
344 setup.o signal.o syscalltable.o sys_m68k.o time.o traps.o
345 diff -ur linux-2.6.7/arch/mips/Makefile linux-2.6.7-mod/arch/mips/Makefile
346 --- linux-2.6.7/arch/mips/Makefile Fri Jun 18 22:51:19 2004
347 +++ linux-2.6.7-mod/arch/mips/Makefile Sat Jun 19 12:53:35 2004
348 @@ -752,12 +752,12 @@
349 prepare: include/asm-$(ARCH)/offset.h \
350 include/asm-$(ARCH)/reg.h
352 -arch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \
353 +arch/$(ARCH)/kernel/offset.asm: include/asm include/linux/version.h \
354 include/config/MARKER
356 -include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s
357 +include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.asm
358 $(call filechk,gen-asm-offset.h)
359 -include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.s
360 +include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.asm
361 $(call filechk,gen-asm-reg.h)
363 CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \
364 diff -ur linux-2.6.7/arch/mips/kernel/Makefile linux-2.6.7-mod/arch/mips/kernel/Makefile
365 --- linux-2.6.7/arch/mips/kernel/Makefile Mon May 10 04:32:28 2004
366 +++ linux-2.6.7-mod/arch/mips/kernel/Makefile Sat Jun 19 12:53:41 2004
368 # Makefile for the Linux/MIPS kernel.
371 -extra-y := head.o init_task.o vmlinux.lds.s
372 +extra-y := head.o init_task.o vmlinux.lds.asm
374 obj-y += cpu-probe.o branch.o entry.o genex.o irq.o process.o \
375 ptrace.o reset.o semaphore.o setup.o signal.o syscall.o \
376 diff -ur linux-2.6.7/arch/parisc/Makefile linux-2.6.7-mod/arch/parisc/Makefile
377 --- linux-2.6.7/arch/parisc/Makefile Fri Jun 18 22:51:21 2004
378 +++ linux-2.6.7-mod/arch/parisc/Makefile Sat Jun 19 12:53:47 2004
381 prepare: include/asm-parisc/offsets.h
383 -arch/parisc/kernel/asm-offsets.s: include/asm include/linux/version.h \
384 +arch/parisc/kernel/asm-offsets.asm: include/asm include/linux/version.h \
385 include/config/MARKER
387 -include/asm-parisc/offsets.h: arch/parisc/kernel/asm-offsets.s
388 +include/asm-parisc/offsets.h: arch/parisc/kernel/asm-offsets.asm
389 $(call filechk,gen-asm-offsets)
391 CLEAN_FILES += lifimage include/asm-parisc/offsets.h
392 diff -ur linux-2.6.7/arch/parisc/kernel/Makefile linux-2.6.7-mod/arch/parisc/kernel/Makefile
393 --- linux-2.6.7/arch/parisc/kernel/Makefile Fri Jun 18 22:51:21 2004
394 +++ linux-2.6.7-mod/arch/parisc/kernel/Makefile Sat Jun 19 12:53:53 2004
398 head-$(CONFIG_PARISC64) := head64.o
399 -extra-y := init_task.o $(head-y) vmlinux.lds.s
400 +extra-y := init_task.o $(head-y) vmlinux.lds.asm
402 AFLAGS_entry.o := -traditional
403 AFLAGS_pacache.o := -traditional
404 diff -ur linux-2.6.7/arch/ppc/Makefile linux-2.6.7-mod/arch/ppc/Makefile
405 --- linux-2.6.7/arch/ppc/Makefile Fri Jun 18 22:51:22 2004
406 +++ linux-2.6.7-mod/arch/ppc/Makefile Sat Jun 19 12:54:09 2004
409 prepare: include/asm-$(ARCH)/offsets.h checkbin
411 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
412 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
413 include/config/MARKER
415 -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
416 +include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
417 $(call filechk,gen-asm-offsets)
423 CLEAN_FILES += include/asm-$(ARCH)/offsets.h \
424 - arch/$(ARCH)/kernel/asm-offsets.s
425 + arch/$(ARCH)/kernel/asm-offsets.asm
426 diff -ur linux-2.6.7/arch/ppc/kernel/Makefile linux-2.6.7-mod/arch/ppc/kernel/Makefile
427 --- linux-2.6.7/arch/ppc/kernel/Makefile Fri Jun 18 22:51:24 2004
428 +++ linux-2.6.7-mod/arch/ppc/kernel/Makefile Sat Jun 19 12:43:10 2004
430 extra-$(CONFIG_8xx) := head_8xx.o
431 extra-$(CONFIG_6xx) += idle_6xx.o
432 extra-$(CONFIG_POWER4) += idle_power4.o
433 -extra-y += vmlinux.lds.s
434 +extra-y += vmlinux.lds.asm
436 obj-y := entry.o traps.o irq.o idle.o time.o misc.o \
437 process.o signal.o ptrace.o align.o \
438 diff -ur linux-2.6.7/arch/ppc64/Makefile linux-2.6.7-mod/arch/ppc64/Makefile
439 --- linux-2.6.7/arch/ppc64/Makefile Fri Jun 18 22:51:26 2004
440 +++ linux-2.6.7-mod/arch/ppc64/Makefile Sat Jun 19 12:54:32 2004
443 prepare: include/asm-ppc64/offsets.h
445 -arch/ppc64/kernel/asm-offsets.s: include/asm include/linux/version.h \
446 +arch/ppc64/kernel/asm-offsets.asm: include/asm include/linux/version.h \
447 include/config/MARKER
449 -include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.s
450 +include/asm-ppc64/offsets.h: arch/ppc64/kernel/asm-offsets.asm
451 $(call filechk,gen-asm-offsets)
454 diff -ur linux-2.6.7/arch/ppc64/kernel/Makefile linux-2.6.7-mod/arch/ppc64/kernel/Makefile
455 --- linux-2.6.7/arch/ppc64/kernel/Makefile Mon May 10 04:33:20 2004
456 +++ linux-2.6.7-mod/arch/ppc64/kernel/Makefile Sat Jun 19 12:54:39 2004
460 EXTRA_CFLAGS += -mno-minimal-toc
461 -extra-y := head.o vmlinux.lds.s
462 +extra-y := head.o vmlinux.lds.asm
464 obj-y := setup.o entry.o traps.o irq.o idle.o dma.o \
465 time.o process.o signal.o syscalls.o misc.o ptrace.o \
466 diff -ur linux-2.6.7/arch/s390/Makefile linux-2.6.7-mod/arch/s390/Makefile
467 --- linux-2.6.7/arch/s390/Makefile Mon May 10 04:32:02 2004
468 +++ linux-2.6.7-mod/arch/s390/Makefile Sat Jun 19 12:54:46 2004
471 prepare: include/asm-$(ARCH)/offsets.h
473 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
474 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
475 include/config/MARKER
477 -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
478 +include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
479 $(call filechk,gen-asm-offsets)
481 CLEAN_FILES += include/asm-$(ARCH)/offsets.h
482 diff -ur linux-2.6.7/arch/s390/kernel/Makefile linux-2.6.7-mod/arch/s390/kernel/Makefile
483 --- linux-2.6.7/arch/s390/kernel/Makefile Mon May 10 04:33:20 2004
484 +++ linux-2.6.7-mod/arch/s390/kernel/Makefile Sat Jun 19 12:54:52 2004
487 extra-$(CONFIG_ARCH_S390_31) += head.o
488 extra-$(CONFIG_ARCH_S390X) += head64.o
489 -extra-y += init_task.o vmlinux.lds.s
490 +extra-y += init_task.o vmlinux.lds.asm
492 obj-$(CONFIG_MODULES) += s390_ksyms.o module.o
493 obj-$(CONFIG_SMP) += smp.o
494 diff -ur linux-2.6.7/arch/sh/kernel/Makefile linux-2.6.7-mod/arch/sh/kernel/Makefile
495 --- linux-2.6.7/arch/sh/kernel/Makefile Mon May 10 04:32:39 2004
496 +++ linux-2.6.7-mod/arch/sh/kernel/Makefile Sat Jun 19 12:55:33 2004
498 # Makefile for the Linux/SuperH kernel.
501 -extra-y := head.o init_task.o vmlinux.lds.s
502 +extra-y := head.o init_task.o vmlinux.lds.asm
504 obj-y := process.o signal.o entry.o traps.o irq.o \
505 ptrace.o setup.o time.o sys_sh.o semaphore.o \
506 diff -ur linux-2.6.7/arch/sparc/Makefile linux-2.6.7-mod/arch/sparc/Makefile
507 --- linux-2.6.7/arch/sparc/Makefile Fri Jun 18 22:51:29 2004
508 +++ linux-2.6.7-mod/arch/sparc/Makefile Sat Jun 19 12:55:48 2004
511 prepare: include/asm-$(ARCH)/asm_offsets.h
513 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
514 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
515 include/config/MARKER
517 -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
518 +include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm
519 $(call filechk,gen-asm-offsets)
521 CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h \
522 - arch/$(ARCH)/kernel/asm-offsets.s \
523 + arch/$(ARCH)/kernel/asm-offsets.asm \
524 arch/$(ARCH)/boot/System.map
526 # Don't use tabs in echo arguments.
527 diff -ur linux-2.6.7/arch/sparc/kernel/Makefile linux-2.6.7-mod/arch/sparc/kernel/Makefile
528 --- linux-2.6.7/arch/sparc/kernel/Makefile Mon May 10 04:33:13 2004
529 +++ linux-2.6.7-mod/arch/sparc/kernel/Makefile Sat Jun 19 12:55:52 2004
531 # Makefile for the linux kernel.
534 -extra-y := head.o init_task.o vmlinux.lds.s
535 +extra-y := head.o init_task.o vmlinux.lds.asm
537 EXTRA_AFLAGS := -ansi
539 diff -ur linux-2.6.7/arch/sparc64/kernel/Makefile linux-2.6.7-mod/arch/sparc64/kernel/Makefile
540 --- linux-2.6.7/arch/sparc64/kernel/Makefile Mon May 10 04:32:02 2004
541 +++ linux-2.6.7-mod/arch/sparc64/kernel/Makefile Sat Jun 19 12:56:24 2004
543 EXTRA_AFLAGS := -ansi
544 EXTRA_CFLAGS := -Werror
546 -extra-y := head.o init_task.o vmlinux.lds.s
547 +extra-y := head.o init_task.o vmlinux.lds.asm
549 obj-y := process.o setup.o cpu.o idprom.o \
550 traps.o devices.o auxio.o \
551 diff -ur linux-2.6.7/arch/um/Makefile linux-2.6.7-mod/arch/um/Makefile
552 --- linux-2.6.7/arch/um/Makefile Mon May 10 04:32:52 2004
553 +++ linux-2.6.7-mod/arch/um/Makefile Sat Jun 19 12:57:07 2004
555 # CONFIG_MODE_SKAS + CONFIG_STATIC_LINK case.
558 -LD_SCRIPT_TT := uml.lds.s
559 +LD_SCRIPT_TT := uml.lds.asm
561 ifeq ($(CONFIG_STATIC_LINK),y)
563 @@ -103,11 +103,11 @@
564 -DELF_FORMAT=\"$(ELF_FORMAT)\" $(CPP_MODE_TT) \
565 -DKERNEL_STACK_SIZE=$(STACK_SIZE)
567 -AFLAGS_$(LD_SCRIPT-y:.s=).o = $(AFLAGS_vmlinux.lds.o) -P -C -Uum
568 +AFLAGS_$(LD_SCRIPT-y:.asm=).o = $(AFLAGS_vmlinux.lds.o) -P -C -Uum
570 LD_SCRIPT-y := $(ARCH_DIR)/$(LD_SCRIPT-y)
572 -$(LD_SCRIPT-y) : $(LD_SCRIPT-y:.s=.S) scripts FORCE
573 +$(LD_SCRIPT-y) : $(LD_SCRIPT-y:.asm=.S) scripts FORCE
574 $(call if_changed_dep,as_s_S)
576 linux: vmlinux $(LD_SCRIPT-y)
578 # To get a definition of F_SETSIG
579 USER_CFLAGS += -D_GNU_SOURCE
581 -CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/uml.lds.s \
582 - $(ARCH_DIR)/dyn_link.ld.s $(GEN_HEADERS)
583 +CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/uml.lds.asm \
584 + $(ARCH_DIR)/dyn_link.ld.asm $(GEN_HEADERS)
586 $(ARCH_DIR)/main.o: $(ARCH_DIR)/main.c
587 $(CC) $(USER_CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
588 diff -ur linux-2.6.7/arch/um/kernel/Makefile linux-2.6.7-mod/arch/um/kernel/Makefile
589 --- linux-2.6.7/arch/um/kernel/Makefile Mon May 10 04:32:53 2004
590 +++ linux-2.6.7-mod/arch/um/kernel/Makefile Sat Jun 19 12:57:15 2004
592 # Licensed under the GPL
595 -extra-y := vmlinux.lds.s
596 +extra-y := vmlinux.lds.asm
598 obj-y = checksum.o config.o exec_kern.o exitcode.o frame_kern.o frame.o \
599 helper.o init_task.o irq.o irq_user.o ksyms.o mem.o mem_user.o \
600 diff -ur linux-2.6.7/arch/v850/Makefile linux-2.6.7-mod/arch/v850/Makefile
601 --- linux-2.6.7/arch/v850/Makefile Mon May 10 04:33:21 2004
602 +++ linux-2.6.7-mod/arch/v850/Makefile Sat Jun 19 12:57:59 2004
604 prepare: include/asm-$(ARCH)/asm-consts.h
606 # Generate constants from C code for use by asm files
607 -arch/$(ARCH)/kernel/asm-consts.s: include/asm include/linux/version.h \
608 +arch/$(ARCH)/kernel/asm-consts.asm: include/asm include/linux/version.h \
609 include/config/MARKER
611 -include/asm-$(ARCH)/asm-consts.h: arch/$(ARCH)/kernel/asm-consts.s
612 +include/asm-$(ARCH)/asm-consts.h: arch/$(ARCH)/kernel/asm-consts.asm
613 $(call filechk,gen-asm-offsets)
615 CLEAN_FILES += include/asm-$(ARCH)/asm-consts.h \
616 - arch/$(ARCH)/kernel/asm-consts.s \
617 + arch/$(ARCH)/kernel/asm-consts.asm \
619 diff -ur linux-2.6.7/arch/v850/kernel/Makefile linux-2.6.7-mod/arch/v850/kernel/Makefile
620 --- linux-2.6.7/arch/v850/kernel/Makefile Mon May 10 04:33:21 2004
621 +++ linux-2.6.7-mod/arch/v850/kernel/Makefile Sat Jun 19 12:58:04 2004
626 -extra-y := head.o init_task.o vmlinux.lds.s
627 +extra-y := head.o init_task.o vmlinux.lds.asm
629 obj-y += intv.o entry.o process.o syscalls.o time.o semaphore.o setup.o \
630 signal.o irq.o mach.o ptrace.o bug.o
631 diff -ur linux-2.6.7/arch/x86_64/Makefile linux-2.6.7-mod/arch/x86_64/Makefile
632 --- linux-2.6.7/arch/x86_64/Makefile Mon May 10 04:33:19 2004
633 +++ linux-2.6.7-mod/arch/x86_64/Makefile Sat Jun 19 12:58:10 2004
636 prepare: include/asm-$(ARCH)/offset.h
638 -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
639 +arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \
640 include/config/MARKER
642 -include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/asm-offsets.s
643 +include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/asm-offsets.asm
644 $(call filechk,gen-asm-offsets)
646 CLEAN_FILES += include/asm-$(ARCH)/offset.h
647 diff -ur linux-2.6.7/arch/x86_64/kernel/Makefile linux-2.6.7-mod/arch/x86_64/kernel/Makefile
648 --- linux-2.6.7/arch/x86_64/kernel/Makefile Fri Jun 18 22:51:32 2004
649 +++ linux-2.6.7-mod/arch/x86_64/kernel/Makefile Sat Jun 19 12:58:17 2004
651 # Makefile for the linux kernel.
654 -extra-y := head.o head64.o init_task.o vmlinux.lds.s
655 +extra-y := head.o head64.o init_task.o vmlinux.lds.asm
656 EXTRA_AFLAGS := -traditional
657 obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o \
658 ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_x86_64.o \
659 diff -ur linux-2.6.7/scripts/Makefile.build linux-2.6.7-mod/scripts/Makefile.build
660 --- linux-2.6.7/scripts/Makefile.build Mon May 10 04:33:13 2004
661 +++ linux-2.6.7-mod/scripts/Makefile.build Sat Jun 19 12:43:10 2004
663 quiet_cmd_cc_s_c = CC $(quiet_modtag) $@
664 cmd_cc_s_c = $(CC) $(c_flags) -S -o $@ $<
668 $(call if_changed_dep,cc_s_c)
670 quiet_cmd_cc_i_c = CPP $(quiet_modtag) $@
672 quiet_cmd_as_s_S = CPP $(quiet_modtag) $@
673 cmd_as_s_S = $(CPP) $(a_flags) -o $@ $<
677 $(call if_changed_dep,as_s_S)
679 quiet_cmd_as_o_S = AS $(quiet_modtag) $@