diff options
55 files changed, 76 insertions, 181 deletions
@@ -10,11 +10,9 @@ NAME = Shuffling Zombie Juror | |||
10 | # Comments in this file are targeted only to the developer, do not | 10 | # Comments in this file are targeted only to the developer, do not |
11 | # expect to learn how to build the kernel reading this file. | 11 | # expect to learn how to build the kernel reading this file. |
12 | 12 | ||
13 | # Do not: | 13 | # Do not use make's built-in rules and variables |
14 | # o use make's built-in rules and variables | 14 | # (this increases performance and avoids hard-to-debug behaviour); |
15 | # (this increases performance and avoids hard-to-debug behaviour); | 15 | MAKEFLAGS += -rR |
16 | # o print "Entering directory ..."; | ||
17 | MAKEFLAGS += -rR --no-print-directory | ||
18 | 16 | ||
19 | # Avoid funny character set dependencies | 17 | # Avoid funny character set dependencies |
20 | unexport LC_ALL | 18 | unexport LC_ALL |
@@ -97,34 +95,6 @@ endif | |||
97 | 95 | ||
98 | export quiet Q KBUILD_VERBOSE | 96 | export quiet Q KBUILD_VERBOSE |
99 | 97 | ||
100 | # Call a source code checker (by default, "sparse") as part of the | ||
101 | # C compilation. | ||
102 | # | ||
103 | # Use 'make C=1' to enable checking of only re-compiled files. | ||
104 | # Use 'make C=2' to enable checking of *all* source files, regardless | ||
105 | # of whether they are re-compiled or not. | ||
106 | # | ||
107 | # See the file "Documentation/sparse.txt" for more details, including | ||
108 | # where to get the "sparse" utility. | ||
109 | |||
110 | ifeq ("$(origin C)", "command line") | ||
111 | KBUILD_CHECKSRC = $(C) | ||
112 | endif | ||
113 | ifndef KBUILD_CHECKSRC | ||
114 | KBUILD_CHECKSRC = 0 | ||
115 | endif | ||
116 | |||
117 | # Use make M=dir to specify directory of external module to build | ||
118 | # Old syntax make ... SUBDIRS=$PWD is still supported | ||
119 | # Setting the environment variable KBUILD_EXTMOD take precedence | ||
120 | ifdef SUBDIRS | ||
121 | KBUILD_EXTMOD ?= $(SUBDIRS) | ||
122 | endif | ||
123 | |||
124 | ifeq ("$(origin M)", "command line") | ||
125 | KBUILD_EXTMOD := $(M) | ||
126 | endif | ||
127 | |||
128 | # kbuild supports saving output files in a separate directory. | 98 | # kbuild supports saving output files in a separate directory. |
129 | # To locate output files in a separate directory two syntaxes are supported. | 99 | # To locate output files in a separate directory two syntaxes are supported. |
130 | # In both cases the working directory must be the root of the kernel src. | 100 | # In both cases the working directory must be the root of the kernel src. |
@@ -140,7 +110,6 @@ endif | |||
140 | # The O= assignment takes precedence over the KBUILD_OUTPUT environment | 110 | # The O= assignment takes precedence over the KBUILD_OUTPUT environment |
141 | # variable. | 111 | # variable. |
142 | 112 | ||
143 | |||
144 | # KBUILD_SRC is set on invocation of make in OBJ directory | 113 | # KBUILD_SRC is set on invocation of make in OBJ directory |
145 | # KBUILD_SRC is not intended to be used by the regular user (for now) | 114 | # KBUILD_SRC is not intended to be used by the regular user (for now) |
146 | ifeq ($(KBUILD_SRC),) | 115 | ifeq ($(KBUILD_SRC),) |
@@ -172,17 +141,9 @@ PHONY += $(MAKECMDGOALS) sub-make | |||
172 | $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make | 141 | $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make |
173 | @: | 142 | @: |
174 | 143 | ||
175 | # Fake the "Entering directory" message once, so that IDEs/editors are | ||
176 | # able to understand relative filenames. | ||
177 | echodir := @echo | ||
178 | quiet_echodir := @echo | ||
179 | silent_echodir := @: | ||
180 | sub-make: FORCE | 144 | sub-make: FORCE |
181 | $($(quiet)echodir) "make[1]: Entering directory \`$(KBUILD_OUTPUT)'" | 145 | $(Q)$(MAKE) -C $(KBUILD_OUTPUT) KBUILD_SRC=$(CURDIR) \ |
182 | $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ | 146 | -f $(CURDIR)/Makefile $(filter-out _all sub-make,$(MAKECMDGOALS)) |
183 | KBUILD_SRC=$(CURDIR) \ | ||
184 | KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile \ | ||
185 | $(filter-out _all sub-make,$(MAKECMDGOALS)) | ||
186 | 147 | ||
187 | # Leave processing to above invocation of make | 148 | # Leave processing to above invocation of make |
188 | skip-makefile := 1 | 149 | skip-makefile := 1 |
@@ -192,6 +153,39 @@ endif # ifeq ($(KBUILD_SRC),) | |||
192 | # We process the rest of the Makefile if this is the final invocation of make | 153 | # We process the rest of the Makefile if this is the final invocation of make |
193 | ifeq ($(skip-makefile),) | 154 | ifeq ($(skip-makefile),) |
194 | 155 | ||
156 | # Do not print "Entering directory ...", | ||
157 | # but we want to display it when entering to the output directory | ||
158 | # so that IDEs/editors are able to understand relative filenames. | ||
159 | MAKEFLAGS += --no-print-directory | ||
160 | |||
161 | # Call a source code checker (by default, "sparse") as part of the | ||
162 | # C compilation. | ||
163 | # | ||
164 | # Use 'make C=1' to enable checking of only re-compiled files. | ||
165 | # Use 'make C=2' to enable checking of *all* source files, regardless | ||
166 | # of whether they are re-compiled or not. | ||
167 | # | ||
168 | # See the file "Documentation/sparse.txt" for more details, including | ||
169 | # where to get the "sparse" utility. | ||
170 | |||
171 | ifeq ("$(origin C)", "command line") | ||
172 | KBUILD_CHECKSRC = $(C) | ||
173 | endif | ||
174 | ifndef KBUILD_CHECKSRC | ||
175 | KBUILD_CHECKSRC = 0 | ||
176 | endif | ||
177 | |||
178 | # Use make M=dir to specify directory of external module to build | ||
179 | # Old syntax make ... SUBDIRS=$PWD is still supported | ||
180 | # Setting the environment variable KBUILD_EXTMOD take precedence | ||
181 | ifdef SUBDIRS | ||
182 | KBUILD_EXTMOD ?= $(SUBDIRS) | ||
183 | endif | ||
184 | |||
185 | ifeq ("$(origin M)", "command line") | ||
186 | KBUILD_EXTMOD := $(M) | ||
187 | endif | ||
188 | |||
195 | # If building an external module we do not care about the all: rule | 189 | # If building an external module we do not care about the all: rule |
196 | # but instead _all depend on modules | 190 | # but instead _all depend on modules |
197 | PHONY += all | 191 | PHONY += all |
@@ -889,9 +883,7 @@ vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ | |||
889 | $(net-y) $(net-m) $(libs-y) $(libs-m))) | 883 | $(net-y) $(net-m) $(libs-y) $(libs-m))) |
890 | 884 | ||
891 | vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \ | 885 | vmlinux-alldirs := $(sort $(vmlinux-dirs) $(patsubst %/,%,$(filter %/, \ |
892 | $(init-n) $(init-) \ | 886 | $(init-) $(core-) $(drivers-) $(net-) $(libs-)))) |
893 | $(core-n) $(core-) $(drivers-n) $(drivers-) \ | ||
894 | $(net-n) $(net-) $(libs-n) $(libs-)))) | ||
895 | 887 | ||
896 | init-y := $(patsubst %/, %/built-in.o, $(init-y)) | 888 | init-y := $(patsubst %/, %/built-in.o, $(init-y)) |
897 | core-y := $(patsubst %/, %/built-in.o, $(core-y)) | 889 | core-y := $(patsubst %/, %/built-in.o, $(core-y)) |
@@ -1591,7 +1583,7 @@ endif | |||
1591 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=dir | 1583 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=dir |
1592 | # Usage: | 1584 | # Usage: |
1593 | # $(Q)$(MAKE) $(clean)=dir | 1585 | # $(Q)$(MAKE) $(clean)=dir |
1594 | clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj | 1586 | clean := -f $(srctree)/scripts/Makefile.clean obj |
1595 | 1587 | ||
1596 | endif # skip-makefile | 1588 | endif # skip-makefile |
1597 | 1589 | ||
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index dceb0441b1a6..034a94904d69 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -50,8 +50,6 @@ AS += -EL | |||
50 | LD += -EL | 50 | LD += -EL |
51 | endif | 51 | endif |
52 | 52 | ||
53 | comma = , | ||
54 | |||
55 | # This selects which instruction set is used. | 53 | # This selects which instruction set is used. |
56 | # Note that GCC does not numerically define an architecture version | 54 | # Note that GCC does not numerically define an architecture version |
57 | # macro, but instead defines a whole series of macros which makes | 55 | # macro, but instead defines a whole series of macros which makes |
diff --git a/arch/arm/mach-at91/Makefile b/arch/arm/mach-at91/Makefile index ac99d87ffefe..1b9ae0257a6e 100644 --- a/arch/arm/mach-at91/Makefile +++ b/arch/arm/mach-at91/Makefile | |||
@@ -3,9 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := gpio.o setup.o sysirq_mask.o | 5 | obj-y := gpio.o setup.o sysirq_mask.o |
6 | obj-m := | ||
7 | obj-n := | ||
8 | obj- := | ||
9 | 6 | ||
10 | obj-$(CONFIG_OLD_IRQ_AT91) += irq.o | 7 | obj-$(CONFIG_OLD_IRQ_AT91) += irq.o |
11 | obj-$(CONFIG_OLD_CLK_AT91) += clock.o | 8 | obj-$(CONFIG_OLD_CLK_AT91) += clock.o |
diff --git a/arch/arm/mach-ebsa110/Makefile b/arch/arm/mach-ebsa110/Makefile index 935e4af01a27..a7d68c13c1d1 100644 --- a/arch/arm/mach-ebsa110/Makefile +++ b/arch/arm/mach-ebsa110/Makefile | |||
@@ -5,6 +5,3 @@ | |||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := core.o io.o leds.o | 7 | obj-y := core.o io.o leds.o |
8 | obj-m := | ||
9 | obj-n := | ||
10 | obj- := | ||
diff --git a/arch/arm/mach-ep93xx/Makefile b/arch/arm/mach-ep93xx/Makefile index 0dc51f9462de..78d427b34b1f 100644 --- a/arch/arm/mach-ep93xx/Makefile +++ b/arch/arm/mach-ep93xx/Makefile | |||
@@ -2,9 +2,6 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | obj-y := core.o clock.o | 4 | obj-y := core.o clock.o |
5 | obj-m := | ||
6 | obj-n := | ||
7 | obj- := | ||
8 | 5 | ||
9 | obj-$(CONFIG_EP93XX_DMA) += dma.o | 6 | obj-$(CONFIG_EP93XX_DMA) += dma.o |
10 | 7 | ||
diff --git a/arch/arm/mach-exynos/Makefile b/arch/arm/mach-exynos/Makefile index 788f26d21141..27ae6144679c 100644 --- a/arch/arm/mach-exynos/Makefile +++ b/arch/arm/mach-exynos/Makefile | |||
@@ -7,11 +7,6 @@ | |||
7 | 7 | ||
8 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include | 8 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include |
9 | 9 | ||
10 | obj-y := | ||
11 | obj-m := | ||
12 | obj-n := | ||
13 | obj- := | ||
14 | |||
15 | # Core | 10 | # Core |
16 | 11 | ||
17 | obj-$(CONFIG_ARCH_EXYNOS) += exynos.o pmu.o exynos-smc.o firmware.o | 12 | obj-$(CONFIG_ARCH_EXYNOS) += exynos.o pmu.o exynos-smc.o firmware.o |
diff --git a/arch/arm/mach-footbridge/Makefile b/arch/arm/mach-footbridge/Makefile index c3faa3bc84dd..e83d5c8396ff 100644 --- a/arch/arm/mach-footbridge/Makefile +++ b/arch/arm/mach-footbridge/Makefile | |||
@@ -5,9 +5,6 @@ | |||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := common.o dma.o isa-irq.o | 7 | obj-y := common.o dma.o isa-irq.o |
8 | obj-m := | ||
9 | obj-n := | ||
10 | obj- := | ||
11 | 8 | ||
12 | pci-y += dc21285.o | 9 | pci-y += dc21285.o |
13 | pci-$(CONFIG_ARCH_CATS) += cats-pci.o | 10 | pci-$(CONFIG_ARCH_CATS) += cats-pci.o |
diff --git a/arch/arm/mach-iop13xx/Makefile b/arch/arm/mach-iop13xx/Makefile index cad015fee12f..a3d9260e335f 100644 --- a/arch/arm/mach-iop13xx/Makefile +++ b/arch/arm/mach-iop13xx/Makefile | |||
@@ -1,8 +1,3 @@ | |||
1 | obj-y := | ||
2 | obj-m := | ||
3 | obj-n := | ||
4 | obj- := | ||
5 | |||
6 | obj-$(CONFIG_ARCH_IOP13XX) += setup.o | 1 | obj-$(CONFIG_ARCH_IOP13XX) += setup.o |
7 | obj-$(CONFIG_ARCH_IOP13XX) += irq.o | 2 | obj-$(CONFIG_ARCH_IOP13XX) += irq.o |
8 | obj-$(CONFIG_ARCH_IOP13XX) += pci.o | 3 | obj-$(CONFIG_ARCH_IOP13XX) += pci.o |
diff --git a/arch/arm/mach-iop32x/Makefile b/arch/arm/mach-iop32x/Makefile index cfdf8a137c2b..2d4010abb82f 100644 --- a/arch/arm/mach-iop32x/Makefile +++ b/arch/arm/mach-iop32x/Makefile | |||
@@ -3,9 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := irq.o | 5 | obj-y := irq.o |
6 | obj-m := | ||
7 | obj-n := | ||
8 | obj- := | ||
9 | 6 | ||
10 | obj-$(CONFIG_MACH_GLANTANK) += glantank.o | 7 | obj-$(CONFIG_MACH_GLANTANK) += glantank.o |
11 | obj-$(CONFIG_ARCH_IQ80321) += iq80321.o | 8 | obj-$(CONFIG_ARCH_IQ80321) += iq80321.o |
diff --git a/arch/arm/mach-iop33x/Makefile b/arch/arm/mach-iop33x/Makefile index 90081d8c9d16..e95db30d81d5 100644 --- a/arch/arm/mach-iop33x/Makefile +++ b/arch/arm/mach-iop33x/Makefile | |||
@@ -3,9 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := irq.o uart.o | 5 | obj-y := irq.o uart.o |
6 | obj-m := | ||
7 | obj-n := | ||
8 | obj- := | ||
9 | 6 | ||
10 | obj-$(CONFIG_ARCH_IQ80331) += iq80331.o | 7 | obj-$(CONFIG_ARCH_IQ80331) += iq80331.o |
11 | obj-$(CONFIG_MACH_IQ80332) += iq80332.o | 8 | obj-$(CONFIG_MACH_IQ80332) += iq80332.o |
diff --git a/arch/arm/mach-ks8695/Makefile b/arch/arm/mach-ks8695/Makefile index e370caf0c91b..8ecb7973ae54 100644 --- a/arch/arm/mach-ks8695/Makefile +++ b/arch/arm/mach-ks8695/Makefile | |||
@@ -4,9 +4,6 @@ | |||
4 | # | 4 | # |
5 | 5 | ||
6 | obj-y := cpu.o irq.o time.o devices.o | 6 | obj-y := cpu.o irq.o time.o devices.o |
7 | obj-m := | ||
8 | obj-n := | ||
9 | obj- := | ||
10 | 7 | ||
11 | # PCI support is optional | 8 | # PCI support is optional |
12 | obj-$(CONFIG_PCI) += pci.o | 9 | obj-$(CONFIG_PCI) += pci.o |
diff --git a/arch/arm/mach-rpc/Makefile b/arch/arm/mach-rpc/Makefile index 992e28b4ae9a..2ebc6875aeb8 100644 --- a/arch/arm/mach-rpc/Makefile +++ b/arch/arm/mach-rpc/Makefile | |||
@@ -5,7 +5,3 @@ | |||
5 | # Object file lists. | 5 | # Object file lists. |
6 | 6 | ||
7 | obj-y := dma.o ecard.o fiq.o irq.o riscpc.o time.o | 7 | obj-y := dma.o ecard.o fiq.o irq.o riscpc.o time.o |
8 | obj-m := | ||
9 | obj-n := | ||
10 | obj- := | ||
11 | |||
diff --git a/arch/arm/mach-s3c24xx/Makefile b/arch/arm/mach-s3c24xx/Makefile index 2235d0d3b38d..b92071638733 100644 --- a/arch/arm/mach-s3c24xx/Makefile +++ b/arch/arm/mach-s3c24xx/Makefile | |||
@@ -7,11 +7,6 @@ | |||
7 | # | 7 | # |
8 | # Licensed under GPLv2 | 8 | # Licensed under GPLv2 |
9 | 9 | ||
10 | obj-y := | ||
11 | obj-m := | ||
12 | obj-n := | ||
13 | obj- := | ||
14 | |||
15 | # core | 10 | # core |
16 | 11 | ||
17 | obj-y += common.o | 12 | obj-y += common.o |
diff --git a/arch/arm/mach-s3c64xx/Makefile b/arch/arm/mach-s3c64xx/Makefile index 58069a702a43..12f67b61ca5f 100644 --- a/arch/arm/mach-s3c64xx/Makefile +++ b/arch/arm/mach-s3c64xx/Makefile | |||
@@ -5,11 +5,6 @@ | |||
5 | # | 5 | # |
6 | # Licensed under GPLv2 | 6 | # Licensed under GPLv2 |
7 | 7 | ||
8 | obj-y := | ||
9 | obj-m := | ||
10 | obj-n := | ||
11 | obj- := | ||
12 | |||
13 | # Core | 8 | # Core |
14 | 9 | ||
15 | obj-y += common.o | 10 | obj-y += common.o |
diff --git a/arch/arm/mach-s5pv210/Makefile b/arch/arm/mach-s5pv210/Makefile index 7dc2d0e25a83..72b9e9671507 100644 --- a/arch/arm/mach-s5pv210/Makefile +++ b/arch/arm/mach-s5pv210/Makefile | |||
@@ -7,11 +7,6 @@ | |||
7 | 7 | ||
8 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include | 8 | ccflags-$(CONFIG_ARCH_MULTIPLATFORM) += -I$(srctree)/$(src)/include -I$(srctree)/arch/arm/plat-samsung/include |
9 | 9 | ||
10 | obj-y := | ||
11 | obj-m := | ||
12 | obj-n := | ||
13 | obj- := | ||
14 | |||
15 | # Core | 10 | # Core |
16 | 11 | ||
17 | obj-$(CONFIG_PM_SLEEP) += pm.o sleep.o | 12 | obj-$(CONFIG_PM_SLEEP) += pm.o sleep.o |
diff --git a/arch/arm/mach-sa1100/Makefile b/arch/arm/mach-sa1100/Makefile index 2732eef48966..f1114d11fe13 100644 --- a/arch/arm/mach-sa1100/Makefile +++ b/arch/arm/mach-sa1100/Makefile | |||
@@ -4,9 +4,6 @@ | |||
4 | 4 | ||
5 | # Common support | 5 | # Common support |
6 | obj-y := clock.o generic.o irq.o time.o #nmi-oopser.o | 6 | obj-y := clock.o generic.o irq.o time.o #nmi-oopser.o |
7 | obj-m := | ||
8 | obj-n := | ||
9 | obj- := | ||
10 | 7 | ||
11 | # Specific board support | 8 | # Specific board support |
12 | obj-$(CONFIG_SA1100_ASSABET) += assabet.o | 9 | obj-$(CONFIG_SA1100_ASSABET) += assabet.o |
diff --git a/arch/arm/mach-u300/Makefile b/arch/arm/mach-u300/Makefile index 3ec74ac95bc1..87d37de054b6 100644 --- a/arch/arm/mach-u300/Makefile +++ b/arch/arm/mach-u300/Makefile | |||
@@ -3,9 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := core.o | 5 | obj-y := core.o |
6 | obj-m := | ||
7 | obj-n := | ||
8 | obj- := | ||
9 | 6 | ||
10 | obj-$(CONFIG_MACH_U300_SPIDUMMY) += dummyspichip.o | 7 | obj-$(CONFIG_MACH_U300_SPIDUMMY) += dummyspichip.o |
11 | obj-$(CONFIG_REGULATOR_AB3100) += regulator.o | 8 | obj-$(CONFIG_REGULATOR_AB3100) += regulator.o |
diff --git a/arch/arm/plat-iop/Makefile b/arch/arm/plat-iop/Makefile index 224e56c6049b..f2af203d601f 100644 --- a/arch/arm/plat-iop/Makefile +++ b/arch/arm/plat-iop/Makefile | |||
@@ -2,8 +2,6 @@ | |||
2 | # Makefile for the linux kernel. | 2 | # Makefile for the linux kernel. |
3 | # | 3 | # |
4 | 4 | ||
5 | obj-y := | ||
6 | |||
7 | # IOP32X | 5 | # IOP32X |
8 | obj-$(CONFIG_ARCH_IOP32X) += i2c.o | 6 | obj-$(CONFIG_ARCH_IOP32X) += i2c.o |
9 | obj-$(CONFIG_ARCH_IOP32X) += pci.o | 7 | obj-$(CONFIG_ARCH_IOP32X) += pci.o |
@@ -27,7 +25,3 @@ obj-$(CONFIG_ARCH_IOP33X) += restart.o | |||
27 | # IOP13XX | 25 | # IOP13XX |
28 | obj-$(CONFIG_ARCH_IOP13XX) += cp6.o | 26 | obj-$(CONFIG_ARCH_IOP13XX) += cp6.o |
29 | obj-$(CONFIG_ARCH_IOP13XX) += time.o | 27 | obj-$(CONFIG_ARCH_IOP13XX) += time.o |
30 | |||
31 | obj-m := | ||
32 | obj-n := | ||
33 | obj- := | ||
diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile index 0b01b68fd033..97a50e8883f9 100644 --- a/arch/arm/plat-omap/Makefile +++ b/arch/arm/plat-omap/Makefile | |||
@@ -6,9 +6,6 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/arch/arm/plat-omap/include | |||
6 | 6 | ||
7 | # Common support | 7 | # Common support |
8 | obj-y := sram.o dma.o counter_32k.o | 8 | obj-y := sram.o dma.o counter_32k.o |
9 | obj-m := | ||
10 | obj-n := | ||
11 | obj- := | ||
12 | 9 | ||
13 | # omap_device support (OMAP2+ only at the moment) | 10 | # omap_device support (OMAP2+ only at the moment) |
14 | 11 | ||
diff --git a/arch/arm/plat-samsung/Makefile b/arch/arm/plat-samsung/Makefile index 5fe175017f07..f0a008496993 100644 --- a/arch/arm/plat-samsung/Makefile +++ b/arch/arm/plat-samsung/Makefile | |||
@@ -6,11 +6,6 @@ | |||
6 | 6 | ||
7 | ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include | 7 | ccflags-$(CONFIG_ARCH_MULTI_V7) += -I$(srctree)/$(src)/include |
8 | 8 | ||
9 | obj-y := | ||
10 | obj-m := | ||
11 | obj-n := dummy.o | ||
12 | obj- := | ||
13 | |||
14 | # Objects we always build independent of SoC choice | 9 | # Objects we always build independent of SoC choice |
15 | 10 | ||
16 | obj-y += init.o cpu.o | 11 | obj-y += init.o cpu.o |
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 59c86b6b3052..20901ffed182 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile | |||
@@ -30,8 +30,6 @@ AS += -EL | |||
30 | LD += -EL | 30 | LD += -EL |
31 | endif | 31 | endif |
32 | 32 | ||
33 | comma = , | ||
34 | |||
35 | CHECKFLAGS += -D__aarch64__ | 33 | CHECKFLAGS += -D__aarch64__ |
36 | 34 | ||
37 | # Default value | 35 | # Default value |
diff --git a/drivers/clk/shmobile/Makefile b/drivers/clk/shmobile/Makefile index 531d4f6c7050..960bf22d42ae 100644 --- a/drivers/clk/shmobile/Makefile +++ b/drivers/clk/shmobile/Makefile | |||
@@ -7,5 +7,3 @@ obj-$(CONFIG_ARCH_R8A7791) += clk-rcar-gen2.o | |||
7 | obj-$(CONFIG_ARCH_R8A7794) += clk-rcar-gen2.o | 7 | obj-$(CONFIG_ARCH_R8A7794) += clk-rcar-gen2.o |
8 | obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += clk-div6.o | 8 | obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += clk-div6.o |
9 | obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += clk-mstp.o | 9 | obj-$(CONFIG_ARCH_SHMOBILE_MULTI) += clk-mstp.o |
10 | # for emply built-in.o | ||
11 | obj-n := dummy | ||
diff --git a/drivers/net/wimax/Makefile b/drivers/net/wimax/Makefile index 992bc02bc016..692184dd674a 100644 --- a/drivers/net/wimax/Makefile +++ b/drivers/net/wimax/Makefile | |||
@@ -1,5 +1 @@ | |||
1 | |||
2 | obj-$(CONFIG_WIMAX_I2400M) += i2400m/ | obj-$(CONFIG_WIMAX_I2400M) += i2400m/ | |
3 | |||
4 | # (from Sam Ravnborg) force kbuild to create built-in.o | ||
5 | obj- := dummy.o | ||
diff --git a/firmware/Makefile b/firmware/Makefile index 0862d34cf7d1..e297e1b52636 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -232,6 +232,6 @@ targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \ | |||
232 | 232 | ||
233 | # Without this, built-in.o won't be created when it's empty, and the | 233 | # Without this, built-in.o won't be created when it's empty, and the |
234 | # final vmlinux link will fail. | 234 | # final vmlinux link will fail. |
235 | obj-n := dummy | 235 | obj- := dummy |
236 | 236 | ||
237 | hostprogs-y := ihex2fw | 237 | hostprogs-y := ihex2fw |
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 8a9a4e1c7eab..65e7b08bb2cc 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -171,13 +171,13 @@ ld-ifversion = $(shell [ $(call ld-version) $(1) $(2) ] && echo $(3)) | |||
171 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= | 171 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= |
172 | # Usage: | 172 | # Usage: |
173 | # $(Q)$(MAKE) $(build)=dir | 173 | # $(Q)$(MAKE) $(build)=dir |
174 | build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj | 174 | build := -f $(srctree)/scripts/Makefile.build obj |
175 | 175 | ||
176 | ### | 176 | ### |
177 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.modbuiltin obj= | 177 | # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.modbuiltin obj= |
178 | # Usage: | 178 | # Usage: |
179 | # $(Q)$(MAKE) $(modbuiltin)=dir | 179 | # $(Q)$(MAKE) $(modbuiltin)=dir |
180 | modbuiltin := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.modbuiltin obj | 180 | modbuiltin := -f $(srctree)/scripts/Makefile.modbuiltin obj |
181 | 181 | ||
182 | # Prefix -I with $(srctree) if it is not an absolute path. | 182 | # Prefix -I with $(srctree) if it is not an absolute path. |
183 | # skip if -I has no parameter | 183 | # skip if -I has no parameter |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index bf3e6778cd71..649ce6844033 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -79,11 +79,11 @@ endif | |||
79 | 79 | ||
80 | # =========================================================================== | 80 | # =========================================================================== |
81 | 81 | ||
82 | ifneq ($(strip $(lib-y) $(lib-m) $(lib-n) $(lib-)),) | 82 | ifneq ($(strip $(lib-y) $(lib-m) $(lib-)),) |
83 | lib-target := $(obj)/lib.a | 83 | lib-target := $(obj)/lib.a |
84 | endif | 84 | endif |
85 | 85 | ||
86 | ifneq ($(strip $(obj-y) $(obj-m) $(obj-n) $(obj-) $(subdir-m) $(lib-target)),) | 86 | ifneq ($(strip $(obj-y) $(obj-m) $(obj-) $(subdir-m) $(lib-target)),) |
87 | builtin-target := $(obj)/built-in.o | 87 | builtin-target := $(obj)/built-in.o |
88 | endif | 88 | endif |
89 | 89 | ||
@@ -382,16 +382,14 @@ cmd_link_multi-y = $(LD) $(ld_flags) -r -o $@ $(link_multi_deps) $(cmd_secanalys | |||
382 | quiet_cmd_link_multi-m = LD [M] $@ | 382 | quiet_cmd_link_multi-m = LD [M] $@ |
383 | cmd_link_multi-m = $(cmd_link_multi-y) | 383 | cmd_link_multi-m = $(cmd_link_multi-y) |
384 | 384 | ||
385 | # We would rather have a list of rules like | 385 | $(multi-used-y): FORCE |
386 | # foo.o: $(foo-objs) | ||
387 | # but that's not so easy, so we rather make all composite objects depend | ||
388 | # on the set of all their parts | ||
389 | $(multi-used-y) : %.o: $(multi-objs-y) FORCE | ||
390 | $(call if_changed,link_multi-y) | 386 | $(call if_changed,link_multi-y) |
387 | $(call multi_depend, $(multi-used-y), .o, -objs -y) | ||
391 | 388 | ||
392 | $(multi-used-m) : %.o: $(multi-objs-m) FORCE | 389 | $(multi-used-m): FORCE |
393 | $(call if_changed,link_multi-m) | 390 | $(call if_changed,link_multi-m) |
394 | @{ echo $(@:.o=.ko); echo $(link_multi_deps); } > $(MODVERDIR)/$(@F:.o=.mod) | 391 | @{ echo $(@:.o=.ko); echo $(link_multi_deps); } > $(MODVERDIR)/$(@F:.o=.mod) |
392 | $(call multi_depend, $(multi-used-m), .o, -objs -y) | ||
395 | 393 | ||
396 | targets += $(multi-used-y) $(multi-used-m) | 394 | targets += $(multi-used-y) $(multi-used-m) |
397 | 395 | ||
diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index a651cee84f2a..b1c668dc6815 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean | |||
@@ -10,7 +10,7 @@ __clean: | |||
10 | # Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir | 10 | # Shorthand for $(Q)$(MAKE) scripts/Makefile.clean obj=dir |
11 | # Usage: | 11 | # Usage: |
12 | # $(Q)$(MAKE) $(clean)=dir | 12 | # $(Q)$(MAKE) $(clean)=dir |
13 | clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj | 13 | clean := -f $(srctree)/scripts/Makefile.clean obj |
14 | 14 | ||
15 | # The filename Kbuild has precedence over Makefile | 15 | # The filename Kbuild has precedence over Makefile |
16 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) | 16 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) |
@@ -23,15 +23,13 @@ __subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) | |||
23 | subdir-y += $(__subdir-y) | 23 | subdir-y += $(__subdir-y) |
24 | __subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m))) | 24 | __subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m))) |
25 | subdir-m += $(__subdir-m) | 25 | subdir-m += $(__subdir-m) |
26 | __subdir-n := $(patsubst %/,%,$(filter %/, $(obj-n))) | ||
27 | subdir-n += $(__subdir-n) | ||
28 | __subdir- := $(patsubst %/,%,$(filter %/, $(obj-))) | 26 | __subdir- := $(patsubst %/,%,$(filter %/, $(obj-))) |
29 | subdir- += $(__subdir-) | 27 | subdir- += $(__subdir-) |
30 | 28 | ||
31 | # Subdirectories we need to descend into | 29 | # Subdirectories we need to descend into |
32 | 30 | ||
33 | subdir-ym := $(sort $(subdir-y) $(subdir-m)) | 31 | subdir-ym := $(sort $(subdir-y) $(subdir-m)) |
34 | subdir-ymn := $(sort $(subdir-ym) $(subdir-n) $(subdir-)) | 32 | subdir-ymn := $(sort $(subdir-ym) $(subdir-)) |
35 | 33 | ||
36 | # Add subdir path | 34 | # Add subdir path |
37 | 35 | ||
diff --git a/scripts/Makefile.fwinst b/scripts/Makefile.fwinst index d8e335eed226..5b698add4f31 100644 --- a/scripts/Makefile.fwinst +++ b/scripts/Makefile.fwinst | |||
@@ -2,7 +2,7 @@ | |||
2 | # Installing firmware | 2 | # Installing firmware |
3 | # | 3 | # |
4 | # We don't include the .config, so all firmware files are in $(fw-shipped-) | 4 | # We don't include the .config, so all firmware files are in $(fw-shipped-) |
5 | # rather than in $(fw-shipped-y) or $(fw-shipped-n). | 5 | # rather than in $(fw-shipped-y) or $(fw-shipped-m). |
6 | # ========================================================================== | 6 | # ========================================================================== |
7 | 7 | ||
8 | INSTALL := install | 8 | INSTALL := install |
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index ab5980f91714..133edfae5b8a 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
@@ -96,8 +96,9 @@ quiet_cmd_host-cmulti = HOSTLD $@ | |||
96 | cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \ | 96 | cmd_host-cmulti = $(HOSTCC) $(HOSTLDFLAGS) -o $@ \ |
97 | $(addprefix $(obj)/,$($(@F)-objs)) \ | 97 | $(addprefix $(obj)/,$($(@F)-objs)) \ |
98 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 98 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
99 | $(host-cmulti): $(obj)/%: $(host-cobjs) FORCE | 99 | $(host-cmulti): FORCE |
100 | $(call if_changed,host-cmulti) | 100 | $(call if_changed,host-cmulti) |
101 | $(call multi_depend, $(host-cmulti), , -objs) | ||
101 | 102 | ||
102 | # Create .o file from a single .c file | 103 | # Create .o file from a single .c file |
103 | # host-cobjs -> .o | 104 | # host-cobjs -> .o |
@@ -113,8 +114,9 @@ quiet_cmd_host-cxxmulti = HOSTLD $@ | |||
113 | $(foreach o,objs cxxobjs,\ | 114 | $(foreach o,objs cxxobjs,\ |
114 | $(addprefix $(obj)/,$($(@F)-$(o)))) \ | 115 | $(addprefix $(obj)/,$($(@F)-$(o)))) \ |
115 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) | 116 | $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) |
116 | $(host-cxxmulti): $(obj)/%: $(host-cobjs) $(host-cxxobjs) FORCE | 117 | $(host-cxxmulti): FORCE |
117 | $(call if_changed,host-cxxmulti) | 118 | $(call if_changed,host-cxxmulti) |
119 | $(call multi_depend, $(host-cxxmulti), , -objs -cxxobjs) | ||
118 | 120 | ||
119 | # Create .o file from a single .cc (C++) file | 121 | # Create .o file from a single .cc (C++) file |
120 | quiet_cmd_host-cxxobjs = HOSTCXX $@ | 122 | quiet_cmd_host-cxxobjs = HOSTCXX $@ |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 260bf8acfce9..54be19a0fa51 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -159,6 +159,15 @@ dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \ | |||
159 | modname-multi = $(sort $(foreach m,$(multi-used),\ | 159 | modname-multi = $(sort $(foreach m,$(multi-used),\ |
160 | $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=)))) | 160 | $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=)))) |
161 | 161 | ||
162 | # Useful for describing the dependency of composite objects | ||
163 | # Usage: | ||
164 | # $(call multi_depend, multi_used_targets, suffix_to_remove, suffix_to_add) | ||
165 | define multi_depend | ||
166 | $(foreach m, $(notdir $1), \ | ||
167 | $(eval $(obj)/$m: \ | ||
168 | $(addprefix $(obj)/, $(foreach s, $3, $($(m:%$(strip $2)=%$(s))))))) | ||
169 | endef | ||
170 | |||
162 | ifdef REGENERATE_PARSERS | 171 | ifdef REGENERATE_PARSERS |
163 | 172 | ||
164 | # GPERF | 173 | # GPERF |
diff --git a/scripts/bootgraph.pl b/scripts/bootgraph.pl index 9ca667bcaee9..9ca667bcaee9 100644..100755 --- a/scripts/bootgraph.pl +++ b/scripts/bootgraph.pl | |||
diff --git a/scripts/export_report.pl b/scripts/export_report.pl index 8f79b701de87..8f79b701de87 100644..100755 --- a/scripts/export_report.pl +++ b/scripts/export_report.pl | |||
diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh index c9469d34ecc6..c9469d34ecc6 100644..100755 --- a/scripts/gcc-goto.sh +++ b/scripts/gcc-goto.sh | |||
diff --git a/scripts/gcc-ld b/scripts/gcc-ld index cadab9a13ed7..cadab9a13ed7 100644..100755 --- a/scripts/gcc-ld +++ b/scripts/gcc-ld | |||
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh index 7f2126df91f2..7f2126df91f2 100644..100755 --- a/scripts/gcc-version.sh +++ b/scripts/gcc-version.sh | |||
diff --git a/scripts/gcc-x86_32-has-stack-protector.sh b/scripts/gcc-x86_32-has-stack-protector.sh index 12dbd0b11ea4..12dbd0b11ea4 100644..100755 --- a/scripts/gcc-x86_32-has-stack-protector.sh +++ b/scripts/gcc-x86_32-has-stack-protector.sh | |||
diff --git a/scripts/gcc-x86_64-has-stack-protector.sh b/scripts/gcc-x86_64-has-stack-protector.sh index 973e8c141567..973e8c141567 100644..100755 --- a/scripts/gcc-x86_64-has-stack-protector.sh +++ b/scripts/gcc-x86_64-has-stack-protector.sh | |||
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh index 17fa901418ae..17fa901418ae 100644..100755 --- a/scripts/gen_initramfs_list.sh +++ b/scripts/gen_initramfs_list.sh | |||
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 62320f93e903..62320f93e903 100644..100755 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl | |||
diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh index fdebd66f8fc1..fdebd66f8fc1 100644..100755 --- a/scripts/headers_install.sh +++ b/scripts/headers_install.sh | |||
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ebf40f6edb4d..9645c0739386 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -176,39 +176,10 @@ qconf-cxxobjs := qconf.o | |||
176 | qconf-objs := zconf.tab.o | 176 | qconf-objs := zconf.tab.o |
177 | gconf-objs := gconf.o zconf.tab.o | 177 | gconf-objs := gconf.o zconf.tab.o |
178 | 178 | ||
179 | hostprogs-y := conf | 179 | hostprogs-y := conf nconf mconf kxgettext qconf gconf |
180 | |||
181 | ifeq ($(MAKECMDGOALS),nconfig) | ||
182 | hostprogs-y += nconf | ||
183 | endif | ||
184 | |||
185 | ifeq ($(MAKECMDGOALS),menuconfig) | ||
186 | hostprogs-y += mconf | ||
187 | endif | ||
188 | |||
189 | ifeq ($(MAKECMDGOALS),update-po-config) | ||
190 | hostprogs-y += kxgettext | ||
191 | endif | ||
192 | |||
193 | ifeq ($(MAKECMDGOALS),xconfig) | ||
194 | qconf-target := 1 | ||
195 | endif | ||
196 | ifeq ($(MAKECMDGOALS),gconfig) | ||
197 | gconf-target := 1 | ||
198 | endif | ||
199 | |||
200 | |||
201 | ifeq ($(qconf-target),1) | ||
202 | hostprogs-y += qconf | ||
203 | endif | ||
204 | |||
205 | ifeq ($(gconf-target),1) | ||
206 | hostprogs-y += gconf | ||
207 | endif | ||
208 | 180 | ||
209 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck | 181 | clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck |
210 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h | 182 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h |
211 | clean-files += mconf qconf gconf nconf | ||
212 | clean-files += config.pot linux.pot | 183 | clean-files += config.pot linux.pot |
213 | 184 | ||
214 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) | 185 | # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) |
@@ -239,11 +210,12 @@ HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ | |||
239 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) | 210 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) |
240 | 211 | ||
241 | HOSTLOADLIBES_nconf = $(shell \ | 212 | HOSTLOADLIBES_nconf = $(shell \ |
242 | pkg-config --libs menu panel ncurses 2>/dev/null \ | 213 | pkg-config --libs menuw panelw ncursesw 2>/dev/null \ |
214 | || pkg-config --libs menu panel ncurses 2>/dev/null \ | ||
243 | || echo "-lmenu -lpanel -lncurses" ) | 215 | || echo "-lmenu -lpanel -lncurses" ) |
244 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck | 216 | $(obj)/qconf.o: $(obj)/.tmp_qtcheck |
245 | 217 | ||
246 | ifeq ($(qconf-target),1) | 218 | ifeq ($(MAKECMDGOALS),xconfig) |
247 | $(obj)/.tmp_qtcheck: $(src)/Makefile | 219 | $(obj)/.tmp_qtcheck: $(src)/Makefile |
248 | -include $(obj)/.tmp_qtcheck | 220 | -include $(obj)/.tmp_qtcheck |
249 | 221 | ||
@@ -300,7 +272,7 @@ endif | |||
300 | 272 | ||
301 | $(obj)/gconf.o: $(obj)/.tmp_gtkcheck | 273 | $(obj)/gconf.o: $(obj)/.tmp_gtkcheck |
302 | 274 | ||
303 | ifeq ($(gconf-target),1) | 275 | ifeq ($(MAKECMDGOALS),gconfig) |
304 | -include $(obj)/.tmp_gtkcheck | 276 | -include $(obj)/.tmp_gtkcheck |
305 | 277 | ||
306 | # GTK needs some extra effort, too... | 278 | # GTK needs some extra effort, too... |
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh index 9d2a4c585ee1..5075ebf2d3b9 100644..100755 --- a/scripts/kconfig/lxdialog/check-lxdialog.sh +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh | |||
@@ -21,7 +21,11 @@ ldflags() | |||
21 | # Where is ncurses.h? | 21 | # Where is ncurses.h? |
22 | ccflags() | 22 | ccflags() |
23 | { | 23 | { |
24 | if [ -f /usr/include/ncursesw/curses.h ]; then | 24 | if pkg-config --cflags ncursesw 2>/dev/null; then |
25 | echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1' | ||
26 | elif pkg-config --cflags ncurses 2>/dev/null; then | ||
27 | echo '-DCURSES_LOC="<ncurses.h>"' | ||
28 | elif [ -f /usr/include/ncursesw/curses.h ]; then | ||
25 | echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' | 29 | echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"' |
26 | echo ' -DNCURSES_WIDECHAR=1' | 30 | echo ' -DNCURSES_WIDECHAR=1' |
27 | elif [ -f /usr/include/ncurses/ncurses.h ]; then | 31 | elif [ -f /usr/include/ncurses/ncurses.h ]; then |
diff --git a/scripts/kconfig/lxdialog/dialog.h b/scripts/kconfig/lxdialog/dialog.h index b4343d384926..fcffd5b41fb0 100644 --- a/scripts/kconfig/lxdialog/dialog.h +++ b/scripts/kconfig/lxdialog/dialog.h | |||
@@ -170,7 +170,7 @@ char item_tag(void); | |||
170 | /* item list manipulation for lxdialog use */ | 170 | /* item list manipulation for lxdialog use */ |
171 | #define MAXITEMSTR 200 | 171 | #define MAXITEMSTR 200 |
172 | struct dialog_item { | 172 | struct dialog_item { |
173 | char str[MAXITEMSTR]; /* promtp displayed */ | 173 | char str[MAXITEMSTR]; /* prompt displayed */ |
174 | char tag; | 174 | char tag; |
175 | void *data; /* pointer to menu item - used by menubox+checklist */ | 175 | void *data; /* pointer to menu item - used by menubox+checklist */ |
176 | int selected; /* Set to 1 by dialog_*() function if selected. */ | 176 | int selected; /* Set to 1 by dialog_*() function if selected. */ |
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 9cb8522d8d22..9cb8522d8d22 100644..100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl | |||
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 86a4fe75f453..86a4fe75f453 100644..100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh | |||
diff --git a/scripts/markup_oops.pl b/scripts/markup_oops.pl index c21d16328d3f..c21d16328d3f 100644..100755 --- a/scripts/markup_oops.pl +++ b/scripts/markup_oops.pl | |||
diff --git a/scripts/mkmakefile b/scripts/mkmakefile index 84af27bf0f99..84af27bf0f99 100644..100755 --- a/scripts/mkmakefile +++ b/scripts/mkmakefile | |||
diff --git a/scripts/mksysmap b/scripts/mksysmap index 7ada35a0f478..7ada35a0f478 100644..100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap | |||
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 35d5a5877d04..35d5a5877d04 100644..100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
diff --git a/scripts/package/buildtar b/scripts/package/buildtar index e046bff33589..e046bff33589 100644..100755 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar | |||
diff --git a/scripts/profile2linkerlist.pl b/scripts/profile2linkerlist.pl index 6943fa7cc95b..6943fa7cc95b 100644..100755 --- a/scripts/profile2linkerlist.pl +++ b/scripts/profile2linkerlist.pl | |||
diff --git a/scripts/rt-tester/rt-tester.py b/scripts/rt-tester/rt-tester.py index 6d916c2a45a5..6d916c2a45a5 100644..100755 --- a/scripts/rt-tester/rt-tester.py +++ b/scripts/rt-tester/rt-tester.py | |||
diff --git a/scripts/selinux/install_policy.sh b/scripts/selinux/install_policy.sh index f6a0ce71015f..f6a0ce71015f 100644..100755 --- a/scripts/selinux/install_policy.sh +++ b/scripts/selinux/install_policy.sh | |||
diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py index db40fa04cd51..db40fa04cd51 100644..100755 --- a/scripts/tracing/draw_functrace.py +++ b/scripts/tracing/draw_functrace.py | |||
diff --git a/scripts/xz_wrap.sh b/scripts/xz_wrap.sh index 7a2d372f4885..7a2d372f4885 100644..100755 --- a/scripts/xz_wrap.sh +++ b/scripts/xz_wrap.sh | |||