Browse Source

Build inside of BUILDDIR

Donald Carr 2 years ago
parent
commit
0aa876b436
1 changed files with 7 additions and 3 deletions
  1. 7 3
      PKGBUILD

+ 7 - 3
PKGBUILD

@@ -6,7 +6,7 @@ options=('!strip')
 # The firmware the kernel produces blows: don't falsify this lightly
 # "linux-firmware=20170309.695f2d6-1"
 pkgrel=1
-pkgver=5.15.rc4.201.gdb84a4c10018
+pkgver=6.2.12493.gb0538215e9a7
 pkgdesc="Kernel build from head"
 arch=("x86_64" "aarch64" "armv7h")
 license=("GPL2.1")
@@ -47,7 +47,10 @@ build() {
   set -o errexit
   #set -o xtrace
 
-  cd $_kernel_src_dir && git clean -xdf
+  rm -Rf ${_builddir}
+  mkdir -p ${_builddir}
+
+  cd $_kernel_src_dir
 
   if [[ -n ${_config_preset} ]]; then
     echo ${_make_cmd} ${_config_preset}
@@ -228,4 +231,5 @@ else
     #_config_file="${_kernel_src_dir}/configs/desktop"
 fi
 
-_make_cmd="eval time make V=0 ${_xcompile_args}"
+_builddir=${BUILDDIR}/${pkgbase}
+_make_cmd="eval time make O=${_builddir} V=0 ${_xcompile_args}"