Pull Kbuild fixes from Nicolas Schier: - builddeb - avoid recompiles for non-cross-compiles Avoid triggering complete rebuilds for non-cross-compile Debian package builds by only triggering the rebuild of host tools for actual cross-compile builds - Never respect CONFIG_WERROR / W=e to fixdep Avoid spurious rebuilds of fixdep w/ and w/o -Werror during a single kbuild invocation by never respecting CONFIG_WERROR for fixdep * tag 'kbuild-fixes-7.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux: kbuild: Never respect CONFIG_WERROR / W=e to fixdep kbuild: builddeb - avoid recompiles for non-cross-compiles
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -139,7 +139,13 @@ install_kernel_headers () { · 138 unmodified lines | |||
| 139 | pdir=debian/$1 | 139 | pdir=debian/$1 |
| 140 | version=${1#linux-headers-} | 140 | version=${1#linux-headers-} |
| 141 | 141 | ||
| 142 | CC="${DEB_HOST_GNU_TYPE}-gcc" "${srctree}/scripts/package/install-extmod-build" "${pdir}/usr/src/linux-headers-${version}" | 142 | # Override $CC only for cross-compiles, to not unnecessarily rebuild |
| 143 | # scripts/ including plugins, which may lead to a full kernel rebuild. | ||
| 144 | if [ -n "${CROSS_COMPILE}" ]; then | ||
| 145 | CC="${DEB_HOST_GNU_TYPE}-gcc" "${srctree}/scripts/package/install-extmod-build" "${pdir}/usr/src/linux-headers-${version}" | ||
| 146 | else | ||
| 147 | "${srctree}/scripts/package/install-extmod-build" "${pdir}/usr/src/linux-headers-${version}" | ||
| 148 | fi | ||
| 143 | 149 | ||
| 144 | mkdir -p $pdir/lib/modules/$version/ | 150 | mkdir -p $pdir/lib/modules/$version/ |
| 145 | ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build | 151 | ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build |