Skip to content

Commit 28d747f

Browse files
committed
Merge tag 'kbuild-v5.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull more Kbuild updates from Masahiro Yamada: - add more Build-Depends to Debian source package - prefix header search paths with $(srctree)/ - make modpost show verbose section mismatch warnings - avoid hard-coded CROSS_COMPILE for h8300 - fix regression for Debian make-kpkg command - add semantic patch to detect missing put_device() - fix some warnings of 'make deb-pkg' - optimize NOSTDINC_FLAGS evaluation - add warnings about redundant generic-y - clean up Makefiles and scripts * tag 'kbuild-v5.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: kconfig: remove stale lxdialog/.gitignore kbuild: force all architectures except um to include mandatory-y kbuild: warn redundant generic-y Revert "modsign: Abort modules_install when signing fails" kbuild: Make NOSTDINC_FLAGS a simply expanded variable kbuild: deb-pkg: avoid implicit effects coccinelle: semantic code search for missing put_device() kbuild: pkg: grep include/config/auto.conf instead of $KCONFIG_CONFIG kbuild: deb-pkg: introduce is_enabled and if_enabled_echo to builddeb kbuild: deb-pkg: add CONFIG_ prefix to kernel config options kbuild: add workaround for Debian make-kpkg kbuild: source include/config/auto.conf instead of ${KCONFIG_CONFIG} unicore32: simplify linker script generation for decompressor h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- kbuild: move archive command to scripts/Makefile.lib modpost: always show verbose warning for section mismatch ia64: prefix header search path with $(srctree)/ libfdt: prefix header search paths with $(srctree)/ deb-pkg: generate correct build dependencies
2 parents 80b98e9 + c71bb9f commit 28d747f

File tree

57 files changed

+153
-156
lines changed

Some content is hidden

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

57 files changed

+153
-156
lines changed

Documentation/kbuild/makefiles.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ See subsequent chapter for the syntax of the Kbuild file.
12741274

12751275
--- 7.4 mandatory-y
12761276

1277-
mandatory-y is essentially used by include/(uapi/)asm-generic/Kbuild.asm
1277+
mandatory-y is essentially used by include/(uapi/)asm-generic/Kbuild
12781278
to define the minimum set of ASM headers that all architectures must have.
12791279

12801280
This works like optional generic-y. If a mandatory header is missing

Makefile

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ _all:
3131
# descending is started. They are now explicitly listed as the
3232
# prepare rule.
3333

34+
# Ugly workaround for Debian make-kpkg:
35+
# make-kpkg directly includes the top Makefile of Linux kernel. In such a case,
36+
# skip sub-make to support debian_* targets in ruleset/kernel_version.mk, but
37+
# displays warning to discourage such abusage.
38+
ifneq ($(word 2, $(MAKEFILE_LIST)),)
39+
$(warning Do not include top Makefile of Linux Kernel)
40+
sub-make-done := 1
41+
MAKEFLAGS += -rR
42+
endif
43+
3444
ifneq ($(sub-make-done),1)
3545

3646
# Do not use make's built-in rules and variables
@@ -402,7 +412,7 @@ CHECK = sparse
402412

403413
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
404414
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
405-
NOSTDINC_FLAGS =
415+
NOSTDINC_FLAGS :=
406416
CFLAGS_MODULE =
407417
AFLAGS_MODULE =
408418
LDFLAGS_MODULE =
@@ -1088,9 +1098,11 @@ asm-generic := -f $(srctree)/scripts/Makefile.asm-generic obj
10881098

10891099
PHONY += asm-generic uapi-asm-generic
10901100
asm-generic: uapi-asm-generic
1091-
$(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm
1101+
$(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/asm \
1102+
generic=include/asm-generic
10921103
uapi-asm-generic:
1093-
$(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm
1104+
$(Q)$(MAKE) $(asm-generic)=arch/$(SRCARCH)/include/generated/uapi/asm \
1105+
generic=include/uapi/asm-generic
10941106

10951107
PHONY += prepare-objtool
10961108
prepare-objtool: $(objtool_target)

arch/alpha/include/uapi/asm/Kbuild

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
include include/uapi/asm-generic/Kbuild.asm
2-
31
generated-y += unistd_32.h

arch/arc/include/uapi/asm/Kbuild

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
include include/uapi/asm-generic/Kbuild.asm
2-
31
generic-y += kvm_para.h
42
generic-y += ucontext.h

arch/arm/include/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ generic-y += segment.h
1818
generic-y += serial.h
1919
generic-y += simd.h
2020
generic-y += sizes.h
21-
generic-y += timex.h
2221
generic-y += trace_clock.h
2322

2423
generated-y += mach-types.h

arch/arm/include/uapi/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
include include/uapi/asm-generic/Kbuild.asm
32

43
generated-y += unistd-common.h
54
generated-y += unistd-oabi.h

arch/arm64/include/uapi/asm/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
include include/uapi/asm-generic/Kbuild.asm
32

43
generic-y += kvm_para.h

arch/c6x/include/uapi/asm/Kbuild

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
include include/uapi/asm-generic/Kbuild.asm
2-
31
generic-y += kvm_para.h
42
generic-y += ucontext.h

arch/csky/include/uapi/asm/Kbuild

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
include include/uapi/asm-generic/Kbuild.asm
2-
31
generic-y += ucontext.h

arch/h8300/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ KBUILD_LDFLAGS += $(ldflags-y)
2727
CHECKFLAGS += -msize-long
2828

2929
ifeq ($(CROSS_COMPILE),)
30-
CROSS_COMPILE := h8300-unknown-linux-
30+
CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
3131
endif
3232

3333
core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/

0 commit comments

Comments
 (0)