mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 14:31:02 +02:00
Merge pull request #1047 from marineam/ccache
coreos-kernel: Fix kernel builds, broken by update to ccache 3.2.1
This commit is contained in:
commit
7ec2488bb9
@ -84,6 +84,11 @@ update_bootengine_cpio() {
|
||||
|
||||
kmake() {
|
||||
local kernel_arch=$(tc-arch-kernel)
|
||||
# Disable hardened PIE explicitly, >=ccache-3.2 breaks the hardened
|
||||
# compiler's auto-detection of kernel builds.
|
||||
if gcc-specs-pie; then
|
||||
set -- KCFLAGS=-nopie "$@"
|
||||
fi
|
||||
emake ARCH="${kernel_arch}" CROSS_COMPILE="${CHOST}-" "$@"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user