Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
- name: "ARCH=ppc64le LD=ld.lld REPO=linux-next"
env: ARCH=ppc64le LD=ld.lld REPO=linux-next
if: type = cron
- name: "ARCH=riscv AS=clang REPO=linux-next BOOT=0"
env: ARCH=riscv AS=clang REPO=linux-next
- name: "ARCH=riscv LLVM_IAS=1 REPO=linux-next BOOT=0"
env: ARCH=riscv LLVM_IAS=1 REPO=linux-next
if: type = cron
- name: "ARCH=s390 BOOT=0 REPO=linux-next"
env: ARCH=s390 REPO=linux-next
Expand Down Expand Up @@ -194,8 +194,8 @@ script:
- |
docker run \
--env ARCH=${ARCH} \
--env AS=${AS} \
--env LD=${LD} \
--env LLVM_IAS=${LLVM_IAS} \
--env REPO=${REPO} \
--rm \
--workdir /travis \
Expand Down
10 changes: 6 additions & 4 deletions driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eu
setup_variables() {
while [[ ${#} -ge 1 ]]; do
case ${1} in
"AR="*|"ARCH="*|"AS="*|"CC="*|"LD="*|"NM"=*|"OBJDUMP"=*|"OBJSIZE"=*|"REPO="*) export "${1?}" ;;
"AR="*|"ARCH="*|"CC="*|"LD="*|"LLVM_IAS="*|"NM"=*|"OBJDUMP"=*|"OBJSIZE"=*|"REPO="*) export "${1?}" ;;
"-c"|"--clean") cleanup=true ;;
"-j"|"--jobs") shift; jobs=$1 ;;
"-j"*) jobs=${1/-j} ;;
Expand Down Expand Up @@ -159,7 +159,6 @@ function update_boot_utils() {
check_dependencies() {
# Check for existence of needed binaries
command -v nproc
command -v "${CROSS_COMPILE:-}"as
command -v timeout
command -v unbuffer
command -v zstd
Expand Down Expand Up @@ -188,7 +187,10 @@ check_dependencies() {
# avoid architecture specific selection logic.

"${LD:="${CROSS_COMPILE:-}"ld}" --version
"${AS:="${CROSS_COMPILE:-}"as}" --version
if [[ -z "${LLVM_IAS:-}" ]]; then
LLVM_IAS=0
command -v "${CROSS_COMPILE:-}"as
fi

if [[ -z "${CC:-}" ]]; then
CC=clang
Expand Down Expand Up @@ -308,12 +310,12 @@ mako_reactor() {
KBUILD_BUILD_HOST=clangbuiltlinux \
make -j"${jobs:-$(nproc)}" \
AR="${AR}" \
AS="${AS}" \
CC="${CC}" \
HOSTCC="${CC}" \
HOSTLD="${HOSTLD:-ld}" \
KCFLAGS="-Wno-implicit-fallthrough" \
LD="${LD}" \
LLVM_IAS="${LLVM_IAS}" \
NM="${NM}" \
OBJCOPY="${OBJCOPY}" \
OBJDUMP="${OBJDUMP}" \
Expand Down
5 changes: 3 additions & 2 deletions usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ Environment variables:
If no AR value is specified, the script will attempt to set AR to
llvm-ar-10 llvm-ar-9, llvm-ar-8, llvm-ar-7, llvm-ar, then
${CROSS_COMPILE}ar if they are found in PATH.
AS:
If no AS value is specified, ${CROSS_COMPILE}as is used.
ARCH (required):
If no ARCH value is specified, it's an error; there is no default.
Currently, arm32_v7, arm32_v6, arm32_v5, arm64, mips, mipsel, ppc32,
Expand All @@ -25,6 +23,9 @@ Environment variables:
in PATH.
LD:
If no LD value is specified, ${CROSS_COMPILE}ld is used.
LLVM_IAS:
If this is set to 1, the integrated assembler is used. No value means
${CROSS_COMPILE}as is used for assembling.
REPO:
Nicknames for trees:
linux (default)
Expand Down