Idwer Vollering has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/37766 )
Change subject: util/amdfwtool: silence compiler on FreeBSD ......................................................................
util/amdfwtool: silence compiler on FreeBSD
Change-Id: Ida2c1f36aba7469d69dbb12ee6afce4a181bd6b7 Signed-off-by: Idwer Vollering vidwer@gmail.com --- M util/amdfwtool/amdfwtool.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/37766/1
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 02564cf..b5cad76 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -110,10 +110,12 @@ */ #define PSP_COMBO 0
+#if !defined(__FreeBSD__) typedef unsigned long long int uint64_t; typedef unsigned int uint32_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; +#endif
/* * Creates the OSI Fletcher checksum. See 8473-1, Appendix C, section C.3.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37766 )
Change subject: util/amdfwtool: silence compiler on FreeBSD ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/37766/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/37766/1//COMMIT_MSG@7 PS1, Line 7: util/amdfwtool: silence compiler on FreeBSD Maybe:
Guard macros on FreeBSD
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/37766
to look at the new patch set (#2).
Change subject: util/amdfwtool: guard typedef aliases on FreeBSD ......................................................................
util/amdfwtool: guard typedef aliases on FreeBSD
Change-Id: Ida2c1f36aba7469d69dbb12ee6afce4a181bd6b7 Signed-off-by: Idwer Vollering vidwer@gmail.com --- M util/amdfwtool/amdfwtool.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/37766/2
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/37766
to look at the new patch set (#3).
Change subject: util/amdfwtool: guard typedef aliases ......................................................................
util/amdfwtool: guard typedef aliases
Build tested on Ubuntu 18 LTS, FreeBSD.
Change-Id: Ida2c1f36aba7469d69dbb12ee6afce4a181bd6b7 Signed-off-by: Idwer Vollering vidwer@gmail.com --- M util/amdfwtool/amdfwtool.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/37766/3
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37766 )
Change subject: util/amdfwtool: guard typedef aliases ......................................................................
Patch Set 3: Code-Review+2
Patrick Georgi has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37766 )
Change subject: util/amdfwtool: guard typedef aliases ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/37766/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/37766/1//COMMIT_MSG@7 PS1, Line 7: util/amdfwtool: silence compiler on FreeBSD
Maybe: […]
Different approach used now, commit message is fine, too.
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/37766 )
Change subject: util/amdfwtool: guard typedef aliases ......................................................................
util/amdfwtool: guard typedef aliases
Build tested on Ubuntu 18 LTS, FreeBSD.
Change-Id: Ida2c1f36aba7469d69dbb12ee6afce4a181bd6b7 Signed-off-by: Idwer Vollering vidwer@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/37766 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Patrick Georgi pgeorgi@google.com --- M util/amdfwtool/amdfwtool.c 1 file changed, 2 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Patrick Georgi: Looks good to me, approved
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c index 39cc45f..d5c63de 100644 --- a/util/amdfwtool/amdfwtool.c +++ b/util/amdfwtool/amdfwtool.c @@ -110,10 +110,12 @@ */ #define PSP_COMBO 0
+#if defined(__GLIBC__) typedef unsigned long long int uint64_t; typedef unsigned int uint32_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; +#endif
/* * Creates the OSI Fletcher checksum. See 8473-1, Appendix C, section C.3.
9elements QA has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37766 )
Change subject: util/amdfwtool: guard typedef aliases ......................................................................
Patch Set 4:
Automatic boot test returned (PASS/FAIL/TOTAL): 3/0/3 Emulation targets: EMULATION_QEMU_X86_Q35 using payload TianoCore : SUCCESS : https://lava.9esec.io/r/193 EMULATION_QEMU_X86_Q35 using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/192 EMULATION_QEMU_X86_I440FX using payload SeaBIOS : SUCCESS : https://lava.9esec.io/r/191
Please note: This test is under development and might not be accurate at all!