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

Commit

Permalink
driver: Add the ability to skip booting with QEMU
Browse files Browse the repository at this point in the history
Some architectures like hexagon and s390 will skip booting with QEMU for
the time being.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
  • Loading branch information
nathanchance committed Feb 7, 2020
1 parent fa15d66 commit db908a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,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 +345,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

0 comments on commit db908a6

Please sign in to comment.