Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.
Closed
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
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ matrix:
env: ARCH=arm32_v6
- name: "ARCH=arm32_v7 LD=ld.lld"
env: ARCH=arm32_v7 LD=ld.lld-10
- name: "ARCH=arm64 LD=ld.lld"
env: ARCH=arm64 LD=ld.lld-10
- name: "ARCH=arm64 OBJCOPY=llvm-objcopy LD=ld.lld"
env: ARCH=arm64 OBJCOPY=llvm-objcopy-10 LD=ld.lld-10
- name: "ARCH=mipsel"
env: ARCH=mipsel
- name: "ARCH=ppc32"
Expand All @@ -32,8 +32,8 @@ matrix:
- name: "ARCH=arm32_v7 LD=ld.lld REPO=linux-next"
env: ARCH=arm32_v7 LD=ld.lld-10 REPO=linux-next
if: type = cron
- name: "ARCH=arm64 LD=ld.lld REPO=linux-next"
env: ARCH=arm64 LD=ld.lld-10 REPO=linux-next
- name: "ARCH=arm64 OBJCOPY=llvm-objcopy LD=ld.lld REPO=linux-next"
env: ARCH=arm64 OBJCOPY=llvm-objcopy-10 LD=ld.lld-10 REPO=linux-next
if: type = cron
- name: "ARCH=mipsel REPO=linux-next"
env: ARCH=mipsel REPO=linux-next
Expand All @@ -54,8 +54,8 @@ matrix:
- name: "ARCH=arm32_v7 REPO=4.19"
env: ARCH=arm32_v7 REPO=4.19
if: type = cron
- name: "ARCH=arm64 REPO=4.19"
env: ARCH=arm64 REPO=4.19
- name: "ARCH=arm64 OBJCOPY=llvm-objcopy REPO=4.19"
env: ARCH=arm64 OBJCOPY=llvm-objcopy-10 REPO=4.19
if: type = cron
- name: "ARCH=ppc64le REPO=4.19"
env: ARCH=ppc64le REPO=4.19
Expand All @@ -66,8 +66,8 @@ matrix:
- name: "ARCH=arm32_v7 REPO=4.14"
env: ARCH=arm32_v7 REPO=4.14
if: type = cron
- name: "ARCH=arm64 REPO=4.14"
env: ARCH=arm64 REPO=4.14
- name: "ARCH=arm64 OBJCOPY=llvm-objcopy REPO=4.14"
env: ARCH=arm64 OBJCOPY=llvm-objcopy-10 REPO=4.14
if: type = cron
- name: "ARCH=ppc64le REPO=4.14"
env: ARCH=ppc64le REPO=4.14
Expand All @@ -78,8 +78,8 @@ matrix:
- name: "ARCH=arm32_v7 REPO=4.9"
env: ARCH=arm32_v7 REPO=4.9
if: type = cron
- name: "ARCH=arm64 REPO=4.9"
env: ARCH=arm64 REPO=4.9
- name: "ARCH=arm64 OBJCOPY=llvm-objcopy REPO=4.9"
env: ARCH=arm64 OBJCOPY=llvm-objcopy-10 REPO=4.9
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=4.9"
env: ARCH=x86_64 LD=ld.lld-10 REPO=4.9
Expand Down
8 changes: 5 additions & 3 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="*|"CC="*|"LD="*|"NM"=*|"OBJDUMP"=*|"REPO="*) export "${1?}" ;;
"AR="*|"ARCH="*|"CC="*|"LD="*|"NM"=*|"OBJCOPY"=*|"OBJDUMP"=*|"REPO="*) export "${1?}" ;;
"-c"|"--clean") cleanup=true ;;
"-j"|"--jobs") shift; jobs=$1 ;;
"-j"*) jobs=${1/-j} ;;
Expand Down Expand Up @@ -191,11 +191,12 @@ check_dependencies() {
# Check for LD, CC, and AR environmental variables
# and print the version string of each. If CC and AR
# don't exist, try to find them.
# lld isn't ready for all architectures so it's just
# simpler to fall back to GNU ld when LD isn't specified
# lld and objcopy aren't ready for all architectures so it's just
# simpler to fall back to GNU ld/objcopy when LD/OBJCOPY aren't specified
# to avoid architecture specific selection logic.

"${LD:="${CROSS_COMPILE:-}"ld}" --version
"${OBJCOPY:="${CROSS_COMPILE:-}"objcopy}" --version

if [[ -z "${CC:-}" ]]; then
for CC in $(gen_bin_list clang) clang; do
Expand Down Expand Up @@ -275,6 +276,7 @@ mako_reactor() {
KCFLAGS="-Wno-implicit-fallthrough" \
LD="${LD}" \
NM="${NM}" \
OBJCOPY="${OBJCOPY}" \
OBJDUMP="${OBJDUMP}" \
"${@}"
}
Expand Down
2 changes: 2 additions & 0 deletions usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Environment variables:
in PATH.
LD:
If no LD value is specified, ${CROSS_COMPILE}ld is used.
OBJCOPY:
If no OBJCOPY value is specified, ${CROSS_COMPILE}objcopy is used.
REPO:
Nicknames for trees:
linux (default)
Expand Down