Loading...
# Copyright (c) 2017 Tuomas Tynkkynen. All rights reserved. # Based on conf.vexpress_ca15_tc2_qemu which is: # Copyright (c) 2016 Konsulko Group. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, publish, distribute, sublicense, # and/or sell copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. set -e if [ -n "${fip}" ] && [ -n "${bl1}" ]; then echo "Both fip and bl1 exist - TF-A mode" helper_setup="swtpm_setup --tpmstate /tmp/tpm --tpm2 --pcr-banks sha256" qemu_machine="virt,secure=on" qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/flash.bin" flash_impl=fiptool else qemu_machine="virt" qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/u-boot.bin" flash_impl=none fi console_impl=qemu qemu_helper_script="swtpm" qemu_binary="qemu-system-aarch64" qemu_net_args="-netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0" qemu_host_args="-semihosting-config enable=on,target=native" qemu_tpm_args="-chardev socket,id=chrtpm,path=/tmp/tpm/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis-device,tpmdev=tpm0" qemu_extra_args="-m 4G -cpu cortex-a57 -nographic -device virtio-rng-pci -d unimp ${qemu_host_args} ${qemu_net_args} ${qemu_tpm_args}" reset_impl=none |