12 Commits

Author SHA1 Message Date
Tim Crawford
968a612824 scripts: Address shellcheck issues
Report issues by shell files with:

    git ls-files '*.sh' | xargs shellcheck --exclude=SC2162

Address the following:

- SC1087: Use braces when expanding arrays
- SC1091: Not following
- SC2004: `$`/`${}` is unnecessary on arithmetic variables
- SC2024: `sudo` doesn't affect redirects
- SC2034: foo appears unused. Verify it or export it
- SC2086: Double quote to prevent globbing and word splitting
- SC2087: Quote `EOF`
- SC2115: Use `"${var:?}"` to ensure this never expands to `/*`
- SC2148: Add a shebang

Addresses (at least partially) some POSIX/dash issues:

- SC2113: `function` keyword is non-standard
- SC3010: In POSIX sh, `[[` `]]` is undefined
- SC3014: In POSIX sh, `==` in place of `=` is undefined
- SC3020: In POSIX sh, `&>` is undefined
- SC3046: In POSIX sh, `source` in place of `.` is undefined

Does not address:

- SC2162: `read` without `-r` will mangle backslashes
- Any other POSIX/dash-specific issues

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-10-19 14:45:22 -06:00
Jeremy Soller
b212d78343 Firmware security support 2023-04-03 13:23:12 -06:00
Tim Crawford
05577baab2 qemu: Enable KVM
Fixes performance issues when running a QEMU VM.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-03-10 10:14:09 -07:00
Tim Crawford
9e09461c65 scripts: Change QEMU binary name
`kvm` is a symlink to the `qemu-system-x86_64`. Use this name instead so
the script can be used on other distros without modification.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2022-02-28 16:00:54 -07:00
Jeremy Soller
7e066e6be8
Rename coreboot.rom to firmware.rom 2020-04-08 13:32:25 -06:00
Jeremy Soller
acd1724707
Update coreboot and add PCIEXP_HOTPLUG to configuration 2019-10-10 16:16:37 -06:00
Jeremy Soller
1f66909492
Add instructions for qemu hotplug bridge 2019-10-10 10:34:33 -06:00
Jeremy Soller
00256c107c
Increase qemu memory 2019-10-07 12:15:03 -06:00
Jeremy Soller
2d4bb204d8
Fix qemu script 2019-10-03 13:40:13 -06:00
Jeremy Soller
1bf512114c
Update edk2-platforms, add serial documentation to qemu script 2019-09-26 09:56:52 -06:00
Jeremy Soller
7603daa48a
Also send serial output to stdio on QEMU 2019-09-25 14:07:05 -06:00
Jeremy Soller
42bad6730e
Add support for running QEMU version of System76 firmware 2019-09-20 14:19:57 -06:00