Skip to content

Commit 80fc623

Browse files
committed
Merge tag 'kbuild-v4.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull more Kbuild updates from Masahiro Yamada: - Move generic-y of exported headers to uapi/asm/Kbuild for complete de-coupling of UAPI - Clean up scripts/Makefile.headersinst - Fix host programs for 32 bit machine with XFS file system * tag 'kbuild-v4.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (29 commits) kbuild: Enable Large File Support for hostprogs kbuild: remove wrapper files handling from Makefile.headersinst kbuild: split exported generic header creation into uapi-asm-generic kbuild: do not include old-kbuild-file from Makefile.headersinst xtensa: move generic-y of exported headers to uapi/asm/Kbuild unicore32: move generic-y of exported headers to uapi/asm/Kbuild tile: move generic-y of exported headers to uapi/asm/Kbuild sparc: move generic-y of exported headers to uapi/asm/Kbuild sh: move generic-y of exported headers to uapi/asm/Kbuild parisc: move generic-y of exported headers to uapi/asm/Kbuild openrisc: move generic-y of exported headers to uapi/asm/Kbuild nios2: move generic-y of exported headers to uapi/asm/Kbuild nios2: remove unneeded arch/nios2/include/(generated/)asm/signal.h microblaze: move generic-y of exported headers to uapi/asm/Kbuild metag: move generic-y of exported headers to uapi/asm/Kbuild m68k: move generic-y of exported headers to uapi/asm/Kbuild m32r: move generic-y of exported headers to uapi/asm/Kbuild ia64: remove redundant generic-y += kvm_para.h from asm/Kbuild hexagon: move generic-y of exported headers to uapi/asm/Kbuild h8300: move generic-y of exported headers to uapi/asm/Kbuild ...
2 parents bc0f51d + d7f14c6 commit 80fc623

44 files changed

Lines changed: 391 additions & 438 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Makefile‎

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,17 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
294294
else if [ -x /bin/bash ]; then echo /bin/bash; \
295295
else echo sh; fi ; fi)
296296

297+
HOST_LFS_CFLAGS := $(shell getconf LFS_CFLAGS)
298+
HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS)
299+
HOST_LFS_LIBS := $(shell getconf LFS_LIBS)
300+
297301
HOSTCC = gcc
298302
HOSTCXX = g++
299-
HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89
300-
HOSTCXXFLAGS = -O2
303+
HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \
304+
-fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS)
305+
HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS)
306+
HOSTLDFLAGS := $(HOST_LFS_LDFLAGS)
307+
HOST_LOADLIBES := $(HOST_LFS_LIBS)
301308

302309
ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
303310
HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \
@@ -408,7 +415,7 @@ KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(S
408415

409416
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
410417
export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
411-
export CPP AR NM STRIP OBJCOPY OBJDUMP
418+
export CPP AR NM STRIP OBJCOPY OBJDUMP HOSTLDFLAGS HOST_LOADLIBES
412419
export MAKE AWK GENKSYMS INSTALLKERNEL PERL PYTHON UTS_MACHINE
413420
export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
414421

@@ -456,10 +463,11 @@ ifneq ($(KBUILD_SRC),)
456463
endif
457464

458465
# Support for using generic headers in asm-generic
459-
PHONY += asm-generic
460-
asm-generic:
466+
PHONY += asm-generic uapi-asm-generic
467+
asm-generic: uapi-asm-generic
461468
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
462469
src=asm obj=arch/$(SRCARCH)/include/generated/asm
470+
uapi-asm-generic:
463471
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \
464472
src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm
465473

@@ -1136,7 +1144,7 @@ firmware_install:
11361144
#Default location for installed headers
11371145
export INSTALL_HDR_PATH = $(objtree)/usr
11381146

1139-
# If we do an all arch process set dst to asm-$(hdr-arch)
1147+
# If we do an all arch process set dst to include/arch-$(hdr-arch)
11401148
hdr-dst = $(if $(KBUILD_HEADERS), dst=include/arch-$(hdr-arch), dst=include)
11411149

11421150
PHONY += archheaders
@@ -1146,7 +1154,7 @@ PHONY += archscripts
11461154
archscripts:
11471155

11481156
PHONY += __headers
1149-
__headers: $(version_h) scripts_basic asm-generic archheaders archscripts
1157+
__headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts
11501158
$(Q)$(MAKE) $(build)=scripts build_unifdef
11511159

11521160
PHONY += headers_install_all
@@ -1157,7 +1165,7 @@ PHONY += headers_install
11571165
headers_install: __headers
11581166
$(if $(wildcard $(srctree)/arch/$(hdr-arch)/include/uapi/asm/Kbuild),, \
11591167
$(error Headers not exportable for the $(SRCARCH) architecture))
1160-
$(Q)$(MAKE) $(hdr-inst)=include/uapi
1168+
$(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include
11611169
$(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst)
11621170

11631171
PHONY += headers_check_all
@@ -1166,7 +1174,7 @@ headers_check_all: headers_install_all
11661174

11671175
PHONY += headers_check
11681176
headers_check: headers_install
1169-
$(Q)$(MAKE) $(hdr-inst)=include/uapi HDRCHECK=1
1177+
$(Q)$(MAKE) $(hdr-inst)=include/uapi dst=include HDRCHECK=1
11701178
$(Q)$(MAKE) $(hdr-inst)=arch/$(hdr-arch)/include/uapi $(hdr-dst) HDRCHECK=1
11711179

11721180
# ---------------------------------------------------------------------------

‎arch/arc/include/asm/Kbuild‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,27 @@
1-
generic-y += auxvec.h
2-
generic-y += bitsperlong.h
31
generic-y += bugs.h
42
generic-y += clkdev.h
53
generic-y += device.h
64
generic-y += div64.h
75
generic-y += emergency-restart.h
8-
generic-y += errno.h
96
generic-y += extable.h
107
generic-y += fb.h
11-
generic-y += fcntl.h
128
generic-y += ftrace.h
139
generic-y += hardirq.h
1410
generic-y += hw_irq.h
15-
generic-y += ioctl.h
16-
generic-y += ioctls.h
17-
generic-y += ipcbuf.h
1811
generic-y += irq_regs.h
1912
generic-y += irq_work.h
2013
generic-y += kmap_types.h
21-
generic-y += kvm_para.h
2214
generic-y += local.h
2315
generic-y += local64.h
2416
generic-y += mcs_spinlock.h
2517
generic-y += mm-arch-hooks.h
26-
generic-y += mman.h
27-
generic-y += msgbuf.h
2818
generic-y += msi.h
29-
generic-y += param.h
3019
generic-y += parport.h
3120
generic-y += pci.h
3221
generic-y += percpu.h
33-
generic-y += poll.h
34-
generic-y += posix_types.h
3522
generic-y += preempt.h
36-
generic-y += resource.h
37-
generic-y += sembuf.h
38-
generic-y += shmbuf.h
39-
generic-y += socket.h
40-
generic-y += sockios.h
41-
generic-y += stat.h
42-
generic-y += statfs.h
43-
generic-y += termbits.h
44-
generic-y += termios.h
4523
generic-y += topology.h
4624
generic-y += trace_clock.h
47-
generic-y += types.h
48-
generic-y += ucontext.h
4925
generic-y += user.h
5026
generic-y += vga.h
5127
generic-y += word-at-a-time.h

‎arch/arc/include/uapi/asm/Kbuild‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
# UAPI Header export list
22
include include/uapi/asm-generic/Kbuild.asm
33

4+
generic-y += auxvec.h
5+
generic-y += bitsperlong.h
6+
generic-y += errno.h
7+
generic-y += fcntl.h
8+
generic-y += ioctl.h
9+
generic-y += ioctls.h
10+
generic-y += ipcbuf.h
11+
generic-y += kvm_para.h
12+
generic-y += mman.h
13+
generic-y += msgbuf.h
14+
generic-y += param.h
15+
generic-y += poll.h
16+
generic-y += posix_types.h
17+
generic-y += resource.h
18+
generic-y += sembuf.h
19+
generic-y += shmbuf.h
420
generic-y += siginfo.h
21+
generic-y += socket.h
22+
generic-y += sockios.h
23+
generic-y += stat.h
24+
generic-y += statfs.h
25+
generic-y += termbits.h
26+
generic-y += termios.h
27+
generic-y += types.h
28+
generic-y += ucontext.h

‎arch/arm/include/asm/Kbuild‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
1-
2-
3-
generic-y += bitsperlong.h
41
generic-y += clkdev.h
52
generic-y += current.h
63
generic-y += early_ioremap.h
74
generic-y += emergency-restart.h
8-
generic-y += errno.h
95
generic-y += exec.h
106
generic-y += extable.h
11-
generic-y += ioctl.h
12-
generic-y += ipcbuf.h
137
generic-y += irq_regs.h
148
generic-y += kdebug.h
159
generic-y += local.h
1610
generic-y += local64.h
1711
generic-y += mm-arch-hooks.h
18-
generic-y += msgbuf.h
1912
generic-y += msi.h
20-
generic-y += param.h
2113
generic-y += parport.h
22-
generic-y += poll.h
2314
generic-y += preempt.h
24-
generic-y += resource.h
2515
generic-y += rwsem.h
2616
generic-y += seccomp.h
2717
generic-y += segment.h
28-
generic-y += sembuf.h
2918
generic-y += serial.h
30-
generic-y += shmbuf.h
3119
generic-y += simd.h
3220
generic-y += sizes.h
33-
generic-y += socket.h
34-
generic-y += sockios.h
35-
generic-y += termbits.h
36-
generic-y += termios.h
3721
generic-y += timex.h
3822
generic-y += trace_clock.h
3923
generic-y += unaligned.h

‎arch/arm/include/uapi/asm/Kbuild‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,18 @@ generated-y += unistd-common.h
55
generated-y += unistd-oabi.h
66
generated-y += unistd-eabi.h
77

8+
generic-y += bitsperlong.h
9+
generic-y += errno.h
10+
generic-y += ioctl.h
11+
generic-y += ipcbuf.h
12+
generic-y += msgbuf.h
13+
generic-y += param.h
14+
generic-y += poll.h
15+
generic-y += resource.h
16+
generic-y += sembuf.h
17+
generic-y += shmbuf.h
818
generic-y += siginfo.h
19+
generic-y += socket.h
20+
generic-y += sockios.h
21+
generic-y += termbits.h
22+
generic-y += termios.h

‎arch/arm64/include/asm/Kbuild‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,24 @@ generic-y += dma.h
66
generic-y += dma-contiguous.h
77
generic-y += early_ioremap.h
88
generic-y += emergency-restart.h
9-
generic-y += errno.h
109
generic-y += hw_irq.h
11-
generic-y += ioctl.h
12-
generic-y += ioctls.h
13-
generic-y += ipcbuf.h
1410
generic-y += irq_regs.h
1511
generic-y += kdebug.h
1612
generic-y += kmap_types.h
17-
generic-y += kvm_para.h
1813
generic-y += local.h
1914
generic-y += local64.h
2015
generic-y += mcs_spinlock.h
2116
generic-y += mm-arch-hooks.h
22-
generic-y += mman.h
23-
generic-y += msgbuf.h
2417
generic-y += msi.h
25-
generic-y += poll.h
2618
generic-y += preempt.h
27-
generic-y += resource.h
2819
generic-y += rwsem.h
2920
generic-y += segment.h
30-
generic-y += sembuf.h
3121
generic-y += serial.h
3222
generic-y += set_memory.h
33-
generic-y += shmbuf.h
3423
generic-y += simd.h
3524
generic-y += sizes.h
36-
generic-y += socket.h
37-
generic-y += sockios.h
38-
generic-y += swab.h
3925
generic-y += switch_to.h
40-
generic-y += termbits.h
41-
generic-y += termios.h
4226
generic-y += trace_clock.h
43-
generic-y += types.h
4427
generic-y += unaligned.h
4528
generic-y += user.h
4629
generic-y += vga.h

‎arch/arm64/include/uapi/asm/Kbuild‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
# UAPI Header export list
22
include include/uapi/asm-generic/Kbuild.asm
33

4+
generic-y += errno.h
5+
generic-y += ioctl.h
6+
generic-y += ioctls.h
7+
generic-y += ipcbuf.h
48
generic-y += kvm_para.h
9+
generic-y += mman.h
10+
generic-y += msgbuf.h
11+
generic-y += poll.h
12+
generic-y += resource.h
13+
generic-y += sembuf.h
14+
generic-y += shmbuf.h
15+
generic-y += socket.h
16+
generic-y += sockios.h
17+
generic-y += swab.h
18+
generic-y += termbits.h
19+
generic-y += termios.h
20+
generic-y += types.h

‎arch/blackfin/include/asm/Kbuild‎

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,28 @@
1-
2-
generic-y += auxvec.h
3-
generic-y += bitsperlong.h
41
generic-y += bugs.h
52
generic-y += current.h
63
generic-y += device.h
74
generic-y += div64.h
85
generic-y += emergency-restart.h
9-
generic-y += errno.h
106
generic-y += extable.h
117
generic-y += fb.h
128
generic-y += futex.h
139
generic-y += hw_irq.h
14-
generic-y += ioctl.h
15-
generic-y += ipcbuf.h
1610
generic-y += irq_regs.h
1711
generic-y += irq_work.h
1812
generic-y += kdebug.h
1913
generic-y += kmap_types.h
20-
generic-y += kvm_para.h
14+
generic-y += kprobes.h
2115
generic-y += local.h
2216
generic-y += local64.h
2317
generic-y += mcs_spinlock.h
2418
generic-y += mm-arch-hooks.h
25-
generic-y += mman.h
26-
generic-y += msgbuf.h
27-
generic-y += param.h
2819
generic-y += percpu.h
2920
generic-y += pgalloc.h
3021
generic-y += preempt.h
31-
generic-y += resource.h
32-
generic-y += sembuf.h
3322
generic-y += serial.h
34-
generic-y += setup.h
35-
generic-y += shmbuf.h
36-
generic-y += shmparam.h
37-
generic-y += socket.h
38-
generic-y += sockios.h
39-
generic-y += statfs.h
40-
generic-y += termbits.h
41-
generic-y += termios.h
4223
generic-y += topology.h
4324
generic-y += trace_clock.h
44-
generic-y += types.h
45-
generic-y += ucontext.h
4625
generic-y += unaligned.h
4726
generic-y += user.h
4827
generic-y += word-at-a-time.h
4928
generic-y += xor.h
50-
generic-y += kprobes.h
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
# UAPI Header export list
22
include include/uapi/asm-generic/Kbuild.asm
3+
4+
generic-y += auxvec.h
5+
generic-y += bitsperlong.h
6+
generic-y += errno.h
7+
generic-y += ioctl.h
8+
generic-y += ipcbuf.h
9+
generic-y += kvm_para.h
10+
generic-y += mman.h
11+
generic-y += msgbuf.h
12+
generic-y += param.h
13+
generic-y += resource.h
14+
generic-y += sembuf.h
15+
generic-y += setup.h
16+
generic-y += shmbuf.h
17+
generic-y += shmparam.h
18+
generic-y += socket.h
19+
generic-y += sockios.h
20+
generic-y += statfs.h
21+
generic-y += termbits.h
22+
generic-y += termios.h
23+
generic-y += types.h
24+
generic-y += ucontext.h

0 commit comments

Comments
 (0)