Skip to contentSkip to conversation

gpsd-machine-conf: allow creation of an empty package

PATCH New Fabien Parent 1 participant 1 message Jun 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpsd-machine-conf: allow creation of an empty package

gpsd-machine-conf is an empty recipe that does not ship any files on the rootfs. This recipe is targeted to be extended by a bbappend that will provide the gpsd machine configuration.

In the case where gpsd-machine-conf is included into an image, and if no layers is providing the machine configuration, the build fails with the following error:

No match for argument: gpsd-machine-conf
Error: Unable to find a match: gpsd-machine-conf

This error is because no package was created for gpsd-machine-conf since the recipe does not install any files.

This commit allows the creation of an empty package in order to avoid the do_rootfs failure when this package is included into an image.

---
 meta-oe/recipes-navigation/gpsd/gpsd-machine-conf_1.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-navigation/gpsd/gpsd-machine-conf_1.0.bb +1 -0
index 9c1db3a6b0b1..4ced1c98db6f 100644
@@ -5,3 +5,4 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;m
 # empty by default
 # BSP layers can add stuff like meta-openmoko example:
 #
+ALLOW_EMPTY:${PN} = "1"
Signature · 1 line
2.36.1