diff options
author | Pyry Kontio <pyry.kontio@drasa.eu> | 2020-07-06 12:57:35 +0900 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-08-24 10:36:52 +0000 |
commit | da6b3b70cb852dd8e9f9e21aef95fa83e7f7ab0d (patch) | |
tree | 86923c61c8b7de09d440aa4326dccc4d712a2a76 /sst28sf040.c | |
parent | 821e44cb4dc23ca1261a92b3ee3cdf591c1da91b (diff) | |
download | flashrom-da6b3b70cb852dd8e9f9e21aef95fa83e7f7ab0d.tar.gz flashrom-da6b3b70cb852dd8e9f9e21aef95fa83e7f7ab0d.tar.bz2 flashrom-da6b3b70cb852dd8e9f9e21aef95fa83e7f7ab0d.zip |
Makefile: Fix building on AArch64 NixOS
The parsing of the output of archtest.c produced an unexpected
value on AArch64 NixOS. For example, the make variable ARCH was set to:
```
bit outside of fd_set selected
arm
```
This made the arch and OS checks fail.
This commit simplifies the parsing, making it more robust.
The C files archtest.c, endiantest.c and os.h used to set the
TARGET_OS, ARCH and ENDIAN variables, respectively, output
the result of the test as the final line, so just extracting
the final line and removing double quoting is enough.
This commit also fixes a bug with debug_shell lacking escaping
single quotes, which prevented using the single quote in the
debug_shell calls. It used to work by accident before this fix;
the line in the call happened to contain a balanced pair of double
quotes and lacked other characters that needed escaping, which
didn't break the debug_shell, but this was accidental and very
brittle.
Signed-off-by: Pyry Kontio <pyry.kontio@drasa.eu>
Change-Id: Iaa4477a71e758cf9ecad2c22f3b77bc6508a3510
Reviewed-on: https://review.coreboot.org/c/flashrom/+/43140
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'sst28sf040.c')
0 files changed, 0 insertions, 0 deletions