Skip to contentSkip to conversation

travis-ci: Add tests for booting from coreboot

PATCH Superseded Simon Glass 2 participants 2 messages Dec 3, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 travis-ci: Add tests for booting from coreboot

Add a means of testing a coreboot + U-Boot build using qemu.

---

 bin/ellesmere/conf.coreboot_qemu |  1 +
 bin/travis-ci/conf.coreboot_qemu | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 120000 bin/ellesmere/conf.coreboot_qemu
 create mode 100644 bin/travis-ci/conf.coreboot_qemu
bin/ellesmere/conf.coreboot_qemu new file +1 -0
new file mode 120000
index 0000000..c81eb3f
@@ -0,0 +1 @@
+../travis-ci/conf.coreboot_qemu
\ No newline at end of file
bin/travis-ci/conf.coreboot_qemu new file +28 -0
new file mode 100644
index 0000000..76d6927
@@ -0,0 +1,28 @@
+# Copyright (c) 2016 Konsulko Group. All rights reserved.
+# Copyright 2021 Google LLC
+#
+# 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.
+
+console_impl=qemu
+qemu_machine="pc"
+qemu_binary="qemu-system-i386"
+qemu_extra_args="-nographic -cpu qemu32 -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device e1000,netdev=net0"
+qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/coreboot.rom"
+reset_impl=none
+flash_impl=none
Signature · 1 line
2.34.0.384.gca35af8252-goog
#1 lore raw
Quoted 10 lines · Simon Glass

Add a means of testing a coreboot + U-Boot build using qemu.

---

 bin/ellesmere/conf.coreboot_qemu |  1 +
 bin/travis-ci/conf.coreboot_qemu | 28 ++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
 create mode 120000 bin/ellesmere/conf.coreboot_qemu
 create mode 100644 bin/travis-ci/conf.coreboot_qemu

Please just include this in travis-ci. I'm not exactly sure of the best way to handle the existing deployment dirs and turn them in to examples for others, without breaking existing deployments, but I don't want to add to this problem.

Signature · 1 line
Tom