Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

S390 support #229

Merged
merged 4 commits into from
Feb 8, 2020
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
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
env: ARCH=ppc64
- name: "ARCH=ppc64le LD=ld.lld"
env: ARCH=ppc64le LD=ld.lld-11
- name: "ARCH=s390 BOOT=0"
env: ARCH=s390
- name: "ARCH=x86_64 LD=ld.lld"
env: ARCH=x86_64 LD=ld.lld-11
# linux (cron only)
Expand Down Expand Up @@ -47,6 +49,9 @@ jobs:
- name: "ARCH=ppc64le LD=ld.lld REPO=linux-next"
env: ARCH=ppc64le LD=ld.lld-11 REPO=linux-next
if: type = cron
- name: "ARCH=s390 BOOT=0 REPO=linux-next"
env: ARCH=s390 REPO=linux-next
if: type = cron
- name: "ARCH=x86_64 LD=ld.lld REPO=linux-next"
env: ARCH=x86_64 LD=ld.lld-11 REPO=linux-next
if: type = cron
Expand Down
13 changes: 11 additions & 2 deletions driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ setup_variables() {
export ARCH=powerpc
export CROSS_COMPILE=powerpc64le-linux-gnu- ;;

"s390")
config=defconfig
image_name=bzImage
using_qemu=false
OBJDUMP=s390x-linux-gnu-objdump
export CROSS_COMPILE=s390x-linux-gnu- ;;

"x86_64")
case ${REPO} in
android-*)
Expand Down Expand Up @@ -175,7 +182,7 @@ check_dependencies() {
# Check for existence of needed binaries
command -v nproc
command -v "${CROSS_COMPILE:-}"as
command -v ${qemu}
${using_qemu:=true} && command -v ${qemu}
command -v timeout
command -v unbuffer

Expand Down Expand Up @@ -345,8 +352,10 @@ build_linux() {
}

boot_qemu() {
if ! ${using_qemu}; then
return 0;
fi
local kernel_image

if [[ ${image_name} = "vmlinux" ]]; then
kernel_image=${tree}/vmlinux
else
Expand Down