Skip to contentSkip to conversation

libusbgx: fix example gadget start

PATCH New Denis OSTERLAND-HEIM 1 participant 1 message Jun 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libusbgx: fix example gadget start

From variables docu:

Quoted 2 lines

Setting it to "0" does not disable inhibition.
Only the empty string will disable inhibition.

That means in case of examples enabled we need ""
and if not "1" to disable update-rc.d.

---
 meta-oe/recipes-support/libusbgx/libusbgx_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/libusbgx/libusbgx_git.bb +1 -1
index 41c2e8c2e4..8d49bf55ba 100644
@@ -35,7 +35,7 @@ SYSTEMD_AUTO_ENABLE:${PN}-examples = "${@bb.utils.contains('PACKAGECONFIG', 'exa
 INITSCRIPT_PACKAGES = "${@bb.utils.contains('PACKAGECONFIG', 'examples', '${PN}-examples', '', d)}"
 INITSCRIPT_NAME = "usbgx"
 INITSCRIPT_PARAMS = "defaults"
-INHIBIT_UPDATERCD_BBCLASS = "${@bb.utils.contains('PACKAGECONFIG', 'examples', '1', '0', d)}"
+INHIBIT_UPDATERCD_BBCLASS = "${@bb.utils.contains('PACKAGECONFIG', 'examples', '', '1', d)}"
 
 do_install:append() {
     install -Dm 0755 ${UNPACKDIR}/gadget-start ${D}${bindir}/gadget-start
Signature · 1 line
2.47.2