Pick up build fixes from upstream to make this tree more testable.
Showing the changes to scripts (5 of 302 files). Show all
Unified · Split
| @@ -37,6 +37,18 @@ KBUILD_CFLAGS += -Wno-gnu · 36 unmodified lines | ||
| 37 | 37 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111219 |
| 38 | 38 | KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow-non-kprintf) |
| 39 | 39 | KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation-non-kprintf) |
| 40 | + | |
| 41 | +# Clang may emit a warning when a const variable, such as the dummy variables | |
| 42 | +# in typecheck(), or const member of an aggregate type are not initialized, | |
| 43 | +# which can result in unexpected behavior. However, in many audited cases of | |
| 44 | +# the "field" variant of the warning, this is intentional because the field is | |
| 45 | +# never used within a particular call path, the field is within a union with | |
| 46 | +# other non-const members, or the containing object is not const so the field | |
| 47 | +# can be modified via memcpy() / memset(). While the variable warning also gets | |
| 48 | +# disabled with this same switch, there should not be too much coverage lost | |
| 49 | +# because -Wuninitialized will still flag when an uninitialized const variable | |
| 50 | +# is used. | |
| 51 | +KBUILD_CFLAGS += $(call cc-disable-warning, default-const-init-unsafe) | |
| 40 | 52 | else |
| 41 | 53 | |
| 42 | 54 | # gcc inanely warns about local variables called 'main' |
| @@ -94,10 +94,10 @@ $(vmlinux-final): $(RESOLVE_BTFIDS) · 93 unmodified lines | ||
| 94 | 94 | endif |
| 95 | 95 | |
| 96 | 96 | ifdef CONFIG_BUILDTIME_TABLE_SORT |
| 97 | −vmlinux: scripts/sorttable | |
| 97 | +$(vmlinux-final): scripts/sorttable | |
| 98 | 98 | endif |
| 99 | 99 | |
| 100 | −# module.builtin.ranges | |
| 100 | +# modules.builtin.ranges | |
| 101 | 101 | # --------------------------------------------------------------------------- |
| 102 | 102 | ifdef CONFIG_BUILTIN_MODULE_RANGES |
| 103 | 103 | __default: modules.builtin.ranges |
| @@ -73,7 +73,7 @@ vmlinux.o: $(initcalls-lds) vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE · 72 unmodified lines | ||
| 73 | 73 | |
| 74 | 74 | targets += vmlinux.o |
| 75 | 75 | |
| 76 | −# module.builtin.modinfo | |
| 76 | +# modules.builtin.modinfo | |
| 77 | 77 | # --------------------------------------------------------------------------- |
| 78 | 78 | |
| 79 | 79 | OBJCOPYFLAGS_modules.builtin.modinfo := -j .modinfo -O binary |
| @@ -82,7 +82,7 @@ targets += modules.builtin.modinfo · 2 unmodified lines | ||
| 82 | 82 | modules.builtin.modinfo: vmlinux.o FORCE |
| 83 | 83 | $(call if_changed,objcopy) |
| 84 | 84 | |
| 85 | −# module.builtin | |
| 85 | +# modules.builtin | |
| 86 | 86 | # --------------------------------------------------------------------------- |
| 87 | 87 | |
| 88 | 88 | # The second line aids cases where multiple modules share the same object. |
| @@ -16,6 +16,7 @@ Source1: config · 15 unmodified lines | ||
| 16 | 16 | Source2: diff.patch |
| 17 | 17 | Provides: kernel-%{KERNELRELEASE} |
| 18 | 18 | BuildRequires: bc binutils bison dwarves |
| 19 | +BuildRequires: (elfutils-devel or libdw-devel) | |
| 19 | 20 | BuildRequires: (elfutils-libelf-devel or libelf-devel) flex |
| 20 | 21 | BuildRequires: gcc make openssl openssl-devel perl python3 rsync |
| 21 | 22 | |
| @@ -210,7 +210,7 @@ Rules-Requires-Root: no · 209 unmodified lines | ||
| 210 | 210 | Build-Depends: debhelper-compat (= 12) |
| 211 | 211 | Build-Depends-Arch: bc, bison, flex, |
| 212 | 212 | gcc-${host_gnu} <!pkg.${sourcename}.nokernelheaders>, |
| 213 | − kmod, libelf-dev:native, | |
| 213 | + kmod, libdw-dev:native, libelf-dev:native, | |
| 214 | 214 | libssl-dev:native, libssl-dev <!pkg.${sourcename}.nokernelheaders>, |
| 215 | 215 | python3:native, rsync |
| 216 | 216 | Homepage: https://www.kernel.org/ |