diff options
Diffstat (limited to 'scripts/package-build')
| -rwxr-xr-x | scripts/package-build/linux-kernel/build-kernel.sh | 4 | ||||
| -rw-r--r-- | scripts/package-build/linux-kernel/package.toml | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/package-build/linux-kernel/build-kernel.sh b/scripts/package-build/linux-kernel/build-kernel.sh index 82028244..0e11266c 100755 --- a/scripts/package-build/linux-kernel/build-kernel.sh +++ b/scripts/package-build/linux-kernel/build-kernel.sh @@ -21,6 +21,10 @@ fi echo "I: Copy Kernel config (x86_64_vyos_defconfig) to Kernel Source" cp -rv ${CWD}/arch/ . +if [ -d /usr/lib/ccache/ ]; then + export PATH=/usr/lib/ccache:$PATH +fi + KERNEL_VERSION=$(make kernelversion) KERNEL_SUFFIX=-$(awk -F "= " '/kernel_flavor/ {print $2}' ../../../../data/defaults.toml | tr -d \") diff --git a/scripts/package-build/linux-kernel/package.toml b/scripts/package-build/linux-kernel/package.toml index d8ec4d4e..c783dbed 100644 --- a/scripts/package-build/linux-kernel/package.toml +++ b/scripts/package-build/linux-kernel/package.toml @@ -100,6 +100,7 @@ packages = [ "bc", "kmod", "cpio", + "ccache", "dwarves", "nasm", "rdfind", |
