Skip to content

Commit

Permalink
build-kernel: let me set a different clang/gcc temporarily if desired
Browse files Browse the repository at this point in the history
  * Use hub to clone AnyKernel2

Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
  • Loading branch information
akhilnarang committed Aug 9, 2018
1 parent 304886d commit db49a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-kernel
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export OUTDIR="${KERNELDIR}/${DEVICE}/obj"
export ANYKERNEL="${KERNELDIR}/anykernel/${DEVICE}"
export ARCH="arm64"
export CCACHE="$(command -v ccache)"
export CLANG_DIR="${HOME}/clang-build/build"
export GCC_DIR="${HOME}/build-tools-gcc/aarch64-linux-gnu"
[[ -z ${CLANG_DIR} ]] && export CLANG_DIR="${HOME}/clang-build/build"
[[ -z ${GCC_DIR} ]] && export GCC_DIR="${HOME}/build-tools-gcc/aarch64-linux-gnu"
export CROSS_COMPILE="${GCC_DIR}/bin/aarch64-linux-gnu-"
export CLANG_TRIPLE="aarch64-linux-gnu-"
export CC="${CLANG_DIR}/bin/clang"
Expand All @@ -37,7 +37,7 @@ if [[ -z "${JOBS}" ]]; then
fi

if [[ ! -d "${ANYKERNEL}" ]]; then
git clone AnyKernel2 -b "${DEVICE}" "${ANYKERNEL}"
hub clone AnyKernel2 -b "${DEVICE}" "${ANYKERNEL}"
fi

export MAKE="make O=${OUTDIR}"
Expand Down

0 comments on commit db49a67

Please sign in to comment.