Skip to contentSkip to conversation

pointercal-xinput: set ALLOW_EMPTY

PATCH In review Ross Burton 2 participants 2 messages Aug 2, 2016 – Aug 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pointercal-xinput: set ALLOW_EMPTY

Many BSPs don't have pointer calibration, so set ALLOW_EMPTY so the package still exists (for dependencies) even if there isn't a calibration file to package.

---
 meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb +1 -0
index 65348c3..71756c3 100644
@@ -17,4 +17,5 @@ do_install() {
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
+ALLOW_EMPTY_${PN} = "1"
 CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"
Signature · 1 line
2.8.1
#1 lore raw
Quoted 3 lines · Ross Burton

Many BSPs don't have pointer calibration, so set ALLOW_EMPTY so the package still exists (for dependencies) even if there isn't a calibration file to package.

And what's the point of that empty package?

xinput-calibrator is already using RRECOMMENDS for it to work correctly when there isn't pointercal-xinput for given BSP and the packagegroup change isn't needed (as you don't need pointercal-xinput without xinput-calibrator)

xinput-calibrator_git.bb:RRECOMMENDS_${PN} = "pointercal-xinput"

Quoted 24 lines
---
 meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-graphics/xinput-calibrator/pointercal-xinput_0.0.bb +1 -0
index 65348c3..71756c3 100644
@@ -17,4 +17,5 @@ do_install() {
 }
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
+ALLOW_EMPTY_${PN} = "1"
 CONFFILES_${PN} = "${sysconfdir}/pointercal.xinput"
Signature · 7 lines
2.8.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]