Skip to contentSkip to conversation

fwupd: add new recipe

PATCH New Ross Burton 1 participant 1 message Nov 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 fwupd: add new recipe

---
 meta-oe/recipes-bsp/fwupd/fwupd/io.patch      |  36 +++++
 meta-oe/recipes-bsp/fwupd/fwupd/no-bash.patch | 141 ++++++++++++++++++
 meta-oe/recipes-bsp/fwupd/fwupd/run-ptest     |   6 +
 meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb      | 102 +++++++++++++
 4 files changed, 285 insertions(+)
 create mode 100644 meta-oe/recipes-bsp/fwupd/fwupd/io.patch
 create mode 100644 meta-oe/recipes-bsp/fwupd/fwupd/no-bash.patch
 create mode 100755 meta-oe/recipes-bsp/fwupd/fwupd/run-ptest
 create mode 100644 meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb
meta-oe/recipes-bsp/fwupd/fwupd/io.patch new file +36 -0
new file mode 100644
index 0000000000..7cef88507b
@@ -0,0 +1,36 @@
+Upstream-Status: Submitted [https://github.com/fwupd/fwupd/pull/3970]
+Signed-off-by: Ross Burton <[email protected]>
+
+From c3711712d0603f14beef64b0ef0b2fd03c0442e0 Mon Sep 17 00:00:00 2001
+From: Ross Burton <[email protected]>
+Date: Tue, 9 Nov 2021 16:26:45 +0000
+Subject: [PATCH] build: check that outb is present in io.h
+
+The flashrom plugin can use inb/outb to do a CMOS reset. The build gates
+this on whether io.h exists (since bc43ad) as with glibc if io.h exists,
+inb/outb are defined. However on musl, io.h always exists but it may not
+define inb/outb.
+
+Thus, fwupd builds with musl on non-x86 platforms will fail to link. Fix
+this by checking for both io.h and that outb() is defined.
+
+Signed-off-by: Ross Burton <[email protected]>
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index dabfc1ce..4c548cf9 100644
+--- a/meson.build
++++ b/meson.build
+@@ -308,7 +308,7 @@ endif
+ if cc.has_header('sys/socket.h')
+   conf.set('HAVE_SOCKET_H', '1')
+ endif
+-if cc.has_header('sys/io.h')
++if cc.has_header('sys/io.h') and cc.has_function('outb', prefix: '#include <sys/io.h>')
+   conf.set('HAVE_IO_H', '1')
+ endif
+ if cc.has_header('linux/ethtool.h')
+--
+2.25.1
meta-oe/recipes-bsp/fwupd/fwupd/no-bash.patch new file +141 -0

141 lines not on this page · raw message

meta-oe/recipes-bsp/fwupd/fwupd/run-ptest new file +6 -0
new file mode 100755
index 0000000000..dbc0fc32a2
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+# Don't run all of the fwupd tests, as fwupd/fwupdmgr.test needs a custom
+# /etc/fwupd/daemon.conf with DisabledPlugins unset.
+
+gnome-desktop-testing-runner fwupd/fwupd.test
meta-oe/recipes-bsp/fwupd/fwupd_1.7.1.bb new file +102 -0

102 lines not on this page · raw message

Signature · 1 line
2.25.1