All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] vboot-utils: fix failing builds
@ 2024-06-16 15:41 Alex Suykov
  2024-06-16 16:04 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Suykov @ 2024-06-16 15:41 UTC (permalink / raw)
  To: buildroot

A typo in the RSA patch and a missing include, which current gcc
apparently treats as hard errors and earlier ones probably didn't.

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>

diff --git a/package/vboot-utils/0003-Avoid-RSA-type-redefinition.patch b/package/vboot-utils/0003-Avoid-RSA-type-redefinition.patch
index 86374ca854..259b2bb7b4 100644
--- a/package/vboot-utils/0003-Avoid-RSA-type-redefinition.patch
+++ b/package/vboot-utils/0003-Avoid-RSA-type-redefinition.patch
@@ -35,7 +35,7 @@ index 9f98ccc..c2d01a5 100644
  /* Private key data */
  typedef struct VbPrivateKey {
 -  RSA* rsa_private_key;  /* Private key data */
-+  struct rsa_rt* rsa_private_key;  /* Private key data */
++  struct rsa_st* rsa_private_key;  /* Private key data */
    uint64_t algorithm;    /* Algorithm to use when signing */
  } VbPrivateKey;
  
diff --git a/package/vboot-utils/0008-firmware-stub-assert.patch b/package/vboot-utils/0008-firmware-stub-assert.patch
new file mode 100644
index 0000000000..01fc2c5abd
--- /dev/null
+++ b/package/vboot-utils/0008-firmware-stub-assert.patch
@@ -0,0 +1,17 @@
+Missing include, assert() is used without <assert.h>.
+
+Most likely it was getting included indirectly somehow but that
+changed in some recent glibc version so it fails to compile now.
+
+Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
+
+--- a/firmware/stub/tpm_lite_stub.c
++++ b/firmware/stub/tpm_lite_stub.c
+@@ -25,6 +25,7 @@
+ #include <sys/stat.h>
+ #include <time.h>
+ #include <unistd.h>
++#include <assert.h>
+ 
+ 
+ #define TPM_DEVICE_PATH "/dev/tpm0"
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-16 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-16 15:41 [Buildroot] [PATCH] vboot-utils: fix failing builds Alex Suykov
2024-06-16 16:04 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.