diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 14:23:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 14:23:06 -0400 |
commit | 821f3eff7cdb9d6c7076effabd46c96c322daed1 (patch) | |
tree | 60f13155196fd6c84424c8aebc133ca4a5f56749 /arch/um | |
parent | ebc283118ee448dcb6e6cae74a8a43f17a1ccc3f (diff) | |
parent | f77bf01425b11947eeb3b5b54685212c302741b8 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits)
kbuild: introduce ccflags-y, asflags-y and ldflags-y
kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
kbuild: enable use of AFLAGS and CFLAGS on commandline
kbuild: enable 'make AFLAGS=...' to add additional options to AS
kbuild: fix AFLAGS use in h8300 and m68knommu
kbuild: check for wrong use of CFLAGS
kbuild: enable 'make CFLAGS=...' to add additional options to CC
kbuild: fix up CFLAGS usage
kbuild: make modpost detect unterminated device id lists
kbuild: call export_report from the Makefile
kbuild: move Kai Germaschewski to CREDITS
kconfig/menuconfig: distinguish between selected-by-another options and comments
kconfig: tristate choices with mixed tristate and boolean values
include/linux/Kbuild: remove duplicate entries
kbuild: kill backward compatibility checks
kbuild: kill EXTRA_ARFLAGS
kbuild: fix documentation in makefiles.txt
kbuild: call make once for all targets when O=.. is used
kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
kbuild: update _shipped files for kconfig syntax cleanup
...
Fix up conflicts in arch/um/sys-{x86_64,i386}/Makefile manually.
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/Makefile | 12 | ||||
-rw-r--r-- | arch/um/Makefile-i386 | 6 | ||||
-rw-r--r-- | arch/um/Makefile-os-Linux | 2 | ||||
-rw-r--r-- | arch/um/Makefile-x86_64 | 6 | ||||
-rw-r--r-- | arch/um/drivers/Makefile | 2 | ||||
-rw-r--r-- | arch/um/sys-ppc/Makefile | 6 |
6 files changed, 17 insertions, 17 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile index ab22fdeedf29..82c2ac48040d 100644 --- a/arch/um/Makefile +++ b/arch/um/Makefile | |||
@@ -49,15 +49,15 @@ SYS_DIR := $(ARCH_DIR)/include/sysdep-$(SUBARCH) | |||
49 | # | 49 | # |
50 | # These apply to USER_CFLAGS to. | 50 | # These apply to USER_CFLAGS to. |
51 | 51 | ||
52 | CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ | 52 | KBUILD_CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ |
53 | $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap \ | 53 | $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap \ |
54 | -Din6addr_loopback=kernel_in6addr_loopback \ | 54 | -Din6addr_loopback=kernel_in6addr_loopback \ |
55 | -Din6addr_any=kernel_in6addr_any | 55 | -Din6addr_any=kernel_in6addr_any |
56 | 56 | ||
57 | AFLAGS += $(ARCH_INCLUDE) | 57 | KBUILD_AFLAGS += $(ARCH_INCLUDE) |
58 | 58 | ||
59 | USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ | 59 | USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ |
60 | $(patsubst -I%,,$(CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \ | 60 | $(patsubst -I%,,$(KBUILD_CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \ |
61 | -D_FILE_OFFSET_BITS=64 | 61 | -D_FILE_OFFSET_BITS=64 |
62 | 62 | ||
63 | include $(srctree)/$(ARCH_DIR)/Makefile-$(SUBARCH) | 63 | include $(srctree)/$(ARCH_DIR)/Makefile-$(SUBARCH) |
@@ -67,14 +67,14 @@ include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS) | |||
67 | 67 | ||
68 | # -Derrno=kernel_errno - This turns all kernel references to errno into | 68 | # -Derrno=kernel_errno - This turns all kernel references to errno into |
69 | # kernel_errno to separate them from the libc errno. This allows -fno-common | 69 | # kernel_errno to separate them from the libc errno. This allows -fno-common |
70 | # in CFLAGS. Otherwise, it would cause ld to complain about the two different | 70 | # in KBUILD_CFLAGS. Otherwise, it would cause ld to complain about the two different |
71 | # errnos. | 71 | # errnos. |
72 | # These apply to kernelspace only. | 72 | # These apply to kernelspace only. |
73 | 73 | ||
74 | KERNEL_DEFINES = -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask \ | 74 | KERNEL_DEFINES = -Derrno=kernel_errno -Dsigprocmask=kernel_sigprocmask \ |
75 | -Dmktime=kernel_mktime $(ARCH_KERNEL_DEFINES) | 75 | -Dmktime=kernel_mktime $(ARCH_KERNEL_DEFINES) |
76 | CFLAGS += $(KERNEL_DEFINES) | 76 | KBUILD_CFLAGS += $(KERNEL_DEFINES) |
77 | CFLAGS += $(call cc-option,-fno-unit-at-a-time,) | 77 | KBUILD_CFLAGS += $(call cc-option,-fno-unit-at-a-time,) |
78 | 78 | ||
79 | # These are needed for clean and mrproper, since in that case .config is not | 79 | # These are needed for clean and mrproper, since in that case .config is not |
80 | # included; the values here are meaningless | 80 | # included; the values here are meaningless |
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index ae61e3c271e2..0178df306939 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 | |||
@@ -12,8 +12,8 @@ HEADER_ARCH := x86 | |||
12 | 12 | ||
13 | ifeq ("$(origin SUBARCH)", "command line") | 13 | ifeq ("$(origin SUBARCH)", "command line") |
14 | ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)") | 14 | ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)") |
15 | CFLAGS += $(call cc-option,-m32) | 15 | KBUILD_CFLAGS += $(call cc-option,-m32) |
16 | AFLAGS += $(call cc-option,-m32) | 16 | KBUILD_AFLAGS += $(call cc-option,-m32) |
17 | LINK-y += $(call cc-option,-m32) | 17 | LINK-y += $(call cc-option,-m32) |
18 | UML_OBJCOPYFLAGS += -F $(ELF_FORMAT) | 18 | UML_OBJCOPYFLAGS += -F $(ELF_FORMAT) |
19 | 19 | ||
@@ -38,4 +38,4 @@ cflags-y += $(call cc-option,-mpreferred-stack-boundary=2) | |||
38 | # an unresolved reference. | 38 | # an unresolved reference. |
39 | cflags-y += -ffreestanding | 39 | cflags-y += -ffreestanding |
40 | 40 | ||
41 | CFLAGS += $(cflags-y) | 41 | KBUILD_CFLAGS += $(cflags-y) |
diff --git a/arch/um/Makefile-os-Linux b/arch/um/Makefile-os-Linux index 0c0f9a1cbbad..52859487c95d 100644 --- a/arch/um/Makefile-os-Linux +++ b/arch/um/Makefile-os-Linux | |||
@@ -5,4 +5,4 @@ | |||
5 | 5 | ||
6 | # To get a definition of F_SETSIG | 6 | # To get a definition of F_SETSIG |
7 | USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE | 7 | USER_CFLAGS += -D_GNU_SOURCE -D_LARGEFILE64_SOURCE |
8 | CFLAGS += -D_LARGEFILE64_SOURCE | 8 | KBUILD_CFLAGS += -D_LARGEFILE64_SOURCE |
diff --git a/arch/um/Makefile-x86_64 b/arch/um/Makefile-x86_64 index 8a00e5f6934c..fe5316f0c6a5 100644 --- a/arch/um/Makefile-x86_64 +++ b/arch/um/Makefile-x86_64 | |||
@@ -9,12 +9,12 @@ _extra_flags_ = -fno-builtin -m64 | |||
9 | #We #undef __x86_64__ for kernelspace, not for userspace where | 9 | #We #undef __x86_64__ for kernelspace, not for userspace where |
10 | #it's needed for headers to work! | 10 | #it's needed for headers to work! |
11 | ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__ | 11 | ARCH_KERNEL_DEFINES = -U__$(SUBARCH)__ |
12 | CFLAGS += $(_extra_flags_) | 12 | KBUILD_CFLAGS += $(_extra_flags_) |
13 | 13 | ||
14 | CHECKFLAGS += -m64 | 14 | CHECKFLAGS += -m64 |
15 | AFLAGS += -m64 | 15 | KBUILD_AFLAGS += -m64 |
16 | LDFLAGS += -m elf_x86_64 | 16 | LDFLAGS += -m elf_x86_64 |
17 | CPPFLAGS += -m64 | 17 | KBUILD_CPPFLAGS += -m64 |
18 | 18 | ||
19 | ELF_ARCH := i386:x86-64 | 19 | ELF_ARCH := i386:x86-64 |
20 | ELF_FORMAT := elf64-x86-64 | 20 | ELF_FORMAT := elf64-x86-64 |
diff --git a/arch/um/drivers/Makefile b/arch/um/drivers/Makefile index 634968150bd6..d283e7b022a0 100644 --- a/arch/um/drivers/Makefile +++ b/arch/um/drivers/Makefile | |||
@@ -17,7 +17,7 @@ ubd-objs := ubd_kern.o ubd_user.o | |||
17 | port-objs := port_kern.o port_user.o | 17 | port-objs := port_kern.o port_user.o |
18 | harddog-objs := harddog_kern.o harddog_user.o | 18 | harddog-objs := harddog_kern.o harddog_user.o |
19 | 19 | ||
20 | LDFLAGS_pcap.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libpcap.a) | 20 | LDFLAGS_pcap.o := -r $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libpcap.a) |
21 | 21 | ||
22 | LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a) | 22 | LDFLAGS_vde.o := -r $(shell $(CC) $(CFLAGS) -print-file-name=libvdeplug.a) |
23 | 23 | ||
diff --git a/arch/um/sys-ppc/Makefile b/arch/um/sys-ppc/Makefile index af200268fddb..a9814a7ae60e 100644 --- a/arch/um/sys-ppc/Makefile +++ b/arch/um/sys-ppc/Makefile | |||
@@ -1,7 +1,7 @@ | |||
1 | OBJ = built-in.o | 1 | OBJ = built-in.o |
2 | 2 | ||
3 | .S.o: | 3 | .S.o: |
4 | $(CC) $(AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o | 4 | $(CC) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o |
5 | 5 | ||
6 | OBJS = ptrace.o sigcontext.o semaphore.o checksum.o miscthings.o misc.o \ | 6 | OBJS = ptrace.o sigcontext.o semaphore.o checksum.o miscthings.o misc.o \ |
7 | ptrace_user.o sysrq.o | 7 | ptrace_user.o sysrq.o |
@@ -57,13 +57,13 @@ ppc_defs.h: mk_defs.c ppc_defs.head \ | |||
57 | checksum.o: checksum.S | 57 | checksum.o: checksum.S |
58 | rm -f asm | 58 | rm -f asm |
59 | ln -s $(TOPDIR)/include/asm-ppc asm | 59 | ln -s $(TOPDIR)/include/asm-ppc asm |
60 | $(CC) $(EXTRA_AFLAGS) $(AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o | 60 | $(CC) $(EXTRA_AFLAGS) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o |
61 | rm -f asm | 61 | rm -f asm |
62 | 62 | ||
63 | misc.o: misc.S ppc_defs.h | 63 | misc.o: misc.S ppc_defs.h |
64 | rm -f asm | 64 | rm -f asm |
65 | ln -s $(TOPDIR)/include/asm-ppc asm | 65 | ln -s $(TOPDIR)/include/asm-ppc asm |
66 | $(CC) $(EXTRA_AFLAGS) $(AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o | 66 | $(CC) $(EXTRA_AFLAGS) $(KBUILD_AFLAGS) -D__ASSEMBLY__ -D__UM_PPC__ -c $< -o $*.o |
67 | rm -f asm | 67 | rm -f asm |
68 | 68 | ||
69 | clean-files := $(OBJS) ppc_defs.h checksum.S semaphore.c mk_defs.c | 69 | clean-files := $(OBJS) ppc_defs.h checksum.S semaphore.c mk_defs.c |