linux-next: Build with clang instead of GCC
As far as I can tell, the intent was always to use clang, but building with LLVM=1 CC=gcc will result in building with GCC and LLVM binutils and LLD. Signed-off-by: Jens Reidel <adrian@postmarketos.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7335>
This commit is contained in:
parent
9f355d95a2
commit
b9102ac571
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
pkgname=linux-next
|
||||
pkgver=6.18_git20251112
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
_nextver="${pkgver#*_git}"
|
||||
pkgdesc="Linux next kernel"
|
||||
arch="armv7 aarch64"
|
||||
|
|
@ -58,14 +58,14 @@ prepare() {
|
|||
|
||||
# Generate .config
|
||||
unset LDFLAGS
|
||||
make LLVM=1 ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
make ARCH="$_carch" LLVM=1 \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-next-$_nextver" \
|
||||
"$_defconfig" pmos.config devices.config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make LLVM=1 O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
make O="$_outdir" ARCH="$_carch" LLVM=1 \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue