📄 linux-2.6.8-build_on_case_insensitive_fs.patch
字号:
Submitted By: Martin Schaffner <schaffner@gmx.li>Date: 2004-06-19Initial Package Version: 2.6.7Upstream Status: Not submittedOrigin: Martin SchaffnerDescription: Enables build on case-insensitive file systemsURL: xxxhttp://mirror.vtx.ch/lfs/patches/downloads/linux/linux-2.6.7-build_on_case_insensitive_fs-1.patch--- Rediffed against 2.6.8 by dank@kegel.com--- plus a few missing hunks added to fix sparc32 build--- linux-2.6.8/Makefile.orig 2004-08-13 22:37:25.000000000 -0700+++ linux-2.6.8/Makefile 2004-09-01 21:39:39.000000000 -0700@@ -540,7 +540,7 @@ do_system_map = $(NM) $(1) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > $(2) -LDFLAGS_vmlinux += -T arch/$(ARCH)/kernel/vmlinux.lds.s+LDFLAGS_vmlinux += -T arch/$(ARCH)/kernel/vmlinux.lds.asm # Generate section listing all symbols and add it into vmlinux # It's a three stage process:@@ -584,13 +584,13 @@ .tmp_kallsyms%.S: .tmp_vmlinux% $(call cmd,kallsyms) -.tmp_vmlinux1: $(vmlinux-objs) arch/$(ARCH)/kernel/vmlinux.lds.s FORCE+.tmp_vmlinux1: $(vmlinux-objs) arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE $(call if_changed_rule,vmlinux__) -.tmp_vmlinux2: $(vmlinux-objs) .tmp_kallsyms1.o arch/$(ARCH)/kernel/vmlinux.lds.s FORCE+.tmp_vmlinux2: $(vmlinux-objs) .tmp_kallsyms1.o arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE $(call if_changed_rule,vmlinux__) -.tmp_vmlinux3: $(vmlinux-objs) .tmp_kallsyms2.o arch/$(ARCH)/kernel/vmlinux.lds.s FORCE+.tmp_vmlinux3: $(vmlinux-objs) .tmp_kallsyms2.o arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE $(call if_changed_rule,vmlinux__) endif@@ -603,13 +603,13 @@ $(rule_verify_kallsyms) endef -vmlinux: $(vmlinux-objs) $(kallsyms.o) arch/$(ARCH)/kernel/vmlinux.lds.s FORCE+vmlinux: $(vmlinux-objs) $(kallsyms.o) arch/$(ARCH)/kernel/vmlinux.lds.asm FORCE $(call if_changed_rule,vmlinux) # The actual objects are generated when descending, # make sure no implicit rule kicks in -$(sort $(vmlinux-objs)) arch/$(ARCH)/kernel/vmlinux.lds.s: $(vmlinux-dirs) ;+$(sort $(vmlinux-objs)) arch/$(ARCH)/kernel/vmlinux.lds.asm: $(vmlinux-dirs) ; # Handle descending into subdirectories listed in $(vmlinux-dirs) # Preset locale variables to speed up the build process. Limit locale@@ -672,7 +672,7 @@ # Single targets # --------------------------------------------------------------------------- -%.s: %.c scripts FORCE+%.asm: %.c scripts FORCE $(Q)$(MAKE) $(build)=$(@D) $@ %.i: %.c scripts FORCE $(Q)$(MAKE) $(build)=$(@D) $@@@ -682,7 +682,7 @@ $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) $(build)=$(@D) %.lst: %.c scripts FORCE $(Q)$(MAKE) $(build)=$(@D) $@-%.s: %.S scripts FORCE+%.asm: %.S scripts FORCE $(Q)$(MAKE) $(build)=$(@D) $@ %.o: %.S scripts FORCE $(Q)$(MAKE) $(build)=$(@D) $@diff -ur linux-2.6.7/arch/alpha/Makefile linux-2.6.7-mod/arch/alpha/Makefile--- linux-2.6.7/arch/alpha/Makefile Fri Jun 18 22:51:03 2004+++ linux-2.6.7-mod/arch/alpha/Makefile Sat Jun 19 12:46:32 2004@@ -114,10 +114,10 @@ prepare: include/asm-$(ARCH)/asm_offsets.h -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \+arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \ include/config/MARKER -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s+include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets) archclean:diff -ur linux-2.6.7/arch/alpha/kernel/Makefile linux-2.6.7-mod/arch/alpha/kernel/Makefile--- linux-2.6.7/arch/alpha/kernel/Makefile Mon May 10 04:32:29 2004+++ linux-2.6.7-mod/arch/alpha/kernel/Makefile Sat Jun 19 12:46:48 2004@@ -2,7 +2,7 @@ # Makefile for the linux kernel. # -extra-y := head.o vmlinux.lds.s+extra-y := head.o vmlinux.lds.asm EXTRA_AFLAGS := $(CFLAGS) EXTRA_CFLAGS := -Werror -Wno-sign-compare --- linux-2.6.8/arch/arm/Makefile.orig 2004-08-13 22:36:56.000000000 -0700+++ linux-2.6.8/arch/arm/Makefile 2004-09-01 21:40:21.000000000 -0700@@ -176,10 +176,10 @@ bp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage i zi:; $(Q)$(MAKE) $(build)=$(boot) $@ -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \+arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \ include/asm-arm/.arch -include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.s+include/asm-$(ARCH)/constants.h: arch/$(ARCH)/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets) define archhelpdiff -ur linux-2.6.7/arch/arm/kernel/Makefile linux-2.6.7-mod/arch/arm/kernel/Makefile--- linux-2.6.7/arch/arm/kernel/Makefile Mon May 10 04:33:19 2004+++ linux-2.6.7-mod/arch/arm/kernel/Makefile Sat Jun 19 12:47:25 2004@@ -27,7 +27,7 @@ head-y := head.o obj-$(CONFIG_DEBUG_LL) += debug.o -extra-y := $(head-y) init_task.o vmlinux.lds.s+extra-y := $(head-y) init_task.o vmlinux.lds.asm # Spell out some dependencies that aren't automatically figured out $(obj)/entry-armv.o: $(obj)/entry-header.S include/asm-arm/constants.hdiff -ur linux-2.6.7/arch/arm26/Makefile linux-2.6.7-mod/arch/arm26/Makefile--- linux-2.6.7/arch/arm26/Makefile Mon May 10 04:32:28 2004+++ linux-2.6.7-mod/arch/arm26/Makefile Sat Jun 19 12:48:24 2004@@ -101,10 +101,10 @@ fi; \ ) -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \+arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \ include/config/MARKER -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s+include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets) define archhelpdiff -ur linux-2.6.7/arch/arm26/kernel/Makefile linux-2.6.7-mod/arch/arm26/kernel/Makefile--- linux-2.6.7/arch/arm26/kernel/Makefile Mon May 10 04:32:29 2004+++ linux-2.6.7-mod/arch/arm26/kernel/Makefile Sat Jun 19 12:48:30 2004@@ -14,5 +14,5 @@ obj-$(CONFIG_FIQ) += fiq.o obj-$(CONFIG_MODULES) += armksyms.o -extra-y := init_task.o vmlinux.lds.s+extra-y := init_task.o vmlinux.lds.asm diff -ur linux-2.6.7/arch/cris/Makefile linux-2.6.7-mod/arch/cris/Makefile--- linux-2.6.7/arch/cris/Makefile Fri Jun 18 22:51:07 2004+++ linux-2.6.7-mod/arch/cris/Makefile Sat Jun 19 12:48:47 2004@@ -107,8 +107,8 @@ @ln -sf $(SARCH) include/asm-$(ARCH)/arch @touch $@ -arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \+arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \ include/config/MARKER -include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s+include/asm-$(ARCH)/$(SARCH)/offset.h: arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets)diff -ur linux-2.6.7/arch/cris/kernel/Makefile linux-2.6.7-mod/arch/cris/kernel/Makefile--- linux-2.6.7/arch/cris/kernel/Makefile Fri Jun 18 22:51:09 2004+++ linux-2.6.7-mod/arch/cris/kernel/Makefile Sat Jun 19 12:48:53 2004@@ -3,7 +3,7 @@ # Makefile for the linux kernel. # -extra-y := vmlinux.lds.s+extra-y := vmlinux.lds.asm obj-y := process.o traps.o irq.o ptrace.o setup.o \ time.o sys_cris.o semaphore.odiff -ur linux-2.6.7/arch/h8300/Makefile linux-2.6.7-mod/arch/h8300/Makefile--- linux-2.6.7/arch/h8300/Makefile Fri Jun 18 22:51:09 2004+++ linux-2.6.7-mod/arch/h8300/Makefile Sat Jun 19 12:49:12 2004@@ -64,7 +64,7 @@ prepare: include/asm-$(ARCH)/asm-offsets.h -include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \+include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm \ include/asm include/linux/version.h $(call filechk,gen-asm-offsets) diff -ur linux-2.6.7/arch/h8300/kernel/Makefile linux-2.6.7-mod/arch/h8300/kernel/Makefile--- linux-2.6.7/arch/h8300/kernel/Makefile Fri Jun 18 22:51:09 2004+++ linux-2.6.7-mod/arch/h8300/kernel/Makefile Sat Jun 19 12:49:32 2004@@ -2,7 +2,7 @@ # Makefile for the linux kernel. # -extra-y := vmlinux.lds.s+extra-y := vmlinux.lds.asm obj-y := process.o traps.o ptrace.o ints.o \ sys_h8300.o time.o semaphore.o signal.o \diff -ur linux-2.6.7/arch/i386/Makefile linux-2.6.7-mod/arch/i386/Makefile--- linux-2.6.7/arch/i386/Makefile Fri Jun 18 22:51:10 2004+++ linux-2.6.7-mod/arch/i386/Makefile Sat Jun 19 12:49:43 2004@@ -141,10 +141,10 @@ prepare: include/asm-$(ARCH)/asm_offsets.h CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \+arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \ include/config/MARKER -include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.s+include/asm-$(ARCH)/asm_offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets) archclean:diff -ur linux-2.6.7/arch/i386/kernel/Makefile linux-2.6.7-mod/arch/i386/kernel/Makefile--- linux-2.6.7/arch/i386/kernel/Makefile Mon May 10 04:32:02 2004+++ linux-2.6.7-mod/arch/i386/kernel/Makefile Sat Jun 19 12:49:54 2004@@ -2,7 +2,7 @@ # Makefile for the linux kernel. # -extra-y := head.o init_task.o vmlinux.lds.s+extra-y := head.o init_task.o vmlinux.lds.asm obj-y := process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \ ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \diff -ur linux-2.6.7/arch/ia64/Makefile linux-2.6.7-mod/arch/ia64/Makefile--- linux-2.6.7/arch/ia64/Makefile Mon May 10 04:31:59 2004+++ linux-2.6.7-mod/arch/ia64/Makefile Sat Jun 19 12:50:12 2004@@ -88,12 +88,12 @@ prepare: include/asm-ia64/offsets.h -arch/ia64/kernel/asm-offsets.s: include/asm include/linux/version.h include/config/MARKER+arch/ia64/kernel/asm-offsets.asm: include/asm include/linux/version.h include/config/MARKER -include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.s+include/asm-ia64/offsets.h: arch/ia64/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets) -arch/ia64/kernel/asm-offsets.s: include/asm-ia64/.offsets.h.stamp+arch/ia64/kernel/asm-offsets.asm: include/asm-ia64/.offsets.h.stamp include/asm-ia64/.offsets.h.stamp: mkdir -p include/asm-ia64diff -ur linux-2.6.7/arch/ia64/kernel/Makefile linux-2.6.7-mod/arch/ia64/kernel/Makefile--- linux-2.6.7/arch/ia64/kernel/Makefile Fri Jun 18 22:51:13 2004+++ linux-2.6.7-mod/arch/ia64/kernel/Makefile Sat Jun 19 12:52:14 2004@@ -2,7 +2,7 @@ # Makefile for the linux kernel. # -extra-y := head.o init_task.o vmlinux.lds.s+extra-y := head.o init_task.o vmlinux.lds.asm obj-y := acpi.o entry.o efi.o efi_stub.o gate-data.o fsys.o ia64_ksyms.o irq.o irq_ia64.o \ irq_lsapic.o ivt.o machvec.o pal.o patch.o process.o perfmon.o ptrace.o sal.o \@@ -21,7 +21,7 @@ # The gate DSO image is built using a special linker script. targets += gate.so gate-syms.o -extra-y += gate.so gate-syms.o gate.lds.s gate.o+extra-y += gate.so gate-syms.o gate.lds.asm gate.o # fp_emulate() expects f2-f5,f16-f31 to contain the user-level state. CFLAGS_traps.o += -mfixed-range=f2-f5,f16-f31@@ -32,14 +32,14 @@ cmd_gate = $(CC) -nostdlib $(GATECFLAGS_$(@F)) -Wl,-T,$(filter-out FORCE,$^) -o $@ GATECFLAGS_gate.so = -shared -s -Wl,-soname=linux-gate.so.1-$(obj)/gate.so: $(obj)/gate.lds.s $(obj)/gate.o FORCE+$(obj)/gate.so: $(obj)/gate.lds.asm $(obj)/gate.o FORCE $(call if_changed,gate) $(obj)/built-in.o: $(obj)/gate-syms.o $(obj)/built-in.o: ld_flags += -R $(obj)/gate-syms.o GATECFLAGS_gate-syms.o = -r-$(obj)/gate-syms.o: $(src)/gate.lds.s $(obj)/gate.o FORCE+$(obj)/gate-syms.o: $(src)/gate.lds.asm $(obj)/gate.o FORCE $(call if_changed,gate) # gate-data.o contains the gate DSO image as data in section .data.gate.diff -ur linux-2.6.7/arch/m68k/Makefile linux-2.6.7-mod/arch/m68k/Makefile--- linux-2.6.7/arch/m68k/Makefile Fri Jun 18 22:51:14 2004+++ linux-2.6.7-mod/arch/m68k/Makefile Sat Jun 19 12:52:30 2004@@ -114,10 +114,10 @@ prepare: include/asm-$(ARCH)/offsets.h CLEAN_FILES += include/asm-$(ARCH)/offsets.h -arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \+arch/$(ARCH)/kernel/asm-offsets.asm: include/asm include/linux/version.h \ include/config/MARKER -include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s+include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm $(call filechk,gen-asm-offsets) archclean:diff -ur linux-2.6.7/arch/m68k/kernel/Makefile linux-2.6.7-mod/arch/m68k/kernel/Makefile--- linux-2.6.7/arch/m68k/kernel/Makefile Mon May 10 04:33:10 2004+++ linux-2.6.7-mod/arch/m68k/kernel/Makefile Sat Jun 19 12:52:35 2004@@ -7,7 +7,7 @@ else extra-y := sun3-head.o endif-extra-y += vmlinux.lds.s+extra-y += vmlinux.lds.asm obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \ sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.odiff -ur linux-2.6.7/arch/m68knommu/Makefile linux-2.6.7-mod/arch/m68knommu/Makefile--- linux-2.6.7/arch/m68knommu/Makefile Mon May 10 04:32:54 2004+++ linux-2.6.7-mod/arch/m68knommu/Makefile Sat Jun 19 12:52:57 2004@@ -89,7 +89,7 @@ head-y := arch/m68knommu/platform/$(platform-y)/$(board-y)/crt0_$(model-y).o CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \- arch/$(ARCH)/kernel/asm-offsets.s+ arch/$(ARCH)/kernel/asm-offsets.asm core-y += arch/m68knommu/kernel/ \ arch/m68knommu/mm/ \@@ -102,7 +102,7 @@ archclean: $(call descend arch/$(ARCH)/boot, subdirclean) -include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \+include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.asm \ include/asm include/linux/version.h \ include/config/MARKER $(call filechk,gen-asm-offsets)diff -ur linux-2.6.7/arch/m68knommu/kernel/Makefile linux-2.6.7-mod/arch/m68knommu/kernel/Makefile--- linux-2.6.7/arch/m68knommu/kernel/Makefile Mon May 10 04:32:26 2004+++ linux-2.6.7-mod/arch/m68knommu/kernel/Makefile Sat Jun 19 12:53:20 2004@@ -2,7 +2,7 @@ # Makefile for arch/m68knommu/kernel. # -extra-y := vmlinux.lds.s+extra-y := vmlinux.lds.asm obj-y += dma.o entry.o init_task.o m68k_ksyms.o process.o ptrace.o semaphore.o \ setup.o signal.o syscalltable.o sys_m68k.o time.o traps.odiff -ur linux-2.6.7/arch/mips/Makefile linux-2.6.7-mod/arch/mips/Makefile--- linux-2.6.7/arch/mips/Makefile Fri Jun 18 22:51:19 2004+++ linux-2.6.7-mod/arch/mips/Makefile Sat Jun 19 12:53:35 2004@@ -752,12 +752,12 @@ prepare: include/asm-$(ARCH)/offset.h \ include/asm-$(ARCH)/reg.h -arch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \+arch/$(ARCH)/kernel/offset.asm: include/asm include/linux/version.h \ include/config/MARKER -include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s+include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.asm $(call filechk,gen-asm-offset.h)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -