diff mbox series

[meta-arago,master,10/26] eudev: Wrap the bbappend in a compliant manner

Message ID 20250320181047.18035-11-reatmon@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series Wrap bbappends in a compliant manner | expand

Commit Message

Ryan Eatmon March 20, 2025, 6:10 p.m. UTC
Wrap the bbappend in a yocto-check-layer compliant manner so that only
if you are building this recipe under meta-arago-distro with the arago
DISTRO_OVERRIDE would the bbappend apply.

Signed-off-by: Ryan Eatmon <reatmon@ti.com>
---
 .../{eudev_%.bbappend => eudev-arago.inc}     |  2 +-
 .../recipes-core/udev/eudev_%.bbappend        | 24 +++----------------
 2 files changed, 4 insertions(+), 22 deletions(-)
 copy meta-arago-distro/recipes-core/udev/{eudev_%.bbappend => eudev-arago.inc} (93%)
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-core/udev/eudev_%.bbappend b/meta-arago-distro/recipes-core/udev/eudev-arago.inc
similarity index 93%
copy from meta-arago-distro/recipes-core/udev/eudev_%.bbappend
copy to meta-arago-distro/recipes-core/udev/eudev-arago.inc
index c5758a21..791a7926 100644
--- a/meta-arago-distro/recipes-core/udev/eudev_%.bbappend
+++ b/meta-arago-distro/recipes-core/udev/eudev-arago.inc
@@ -3,7 +3,7 @@ 
 # meta-arago switches to Dora
 
 # look for files in this layer first
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+FILESEXTRAPATHS:prepend := "${THISDIR}/eudev:"
 
 PR:append = ".arago5"
 
diff --git a/meta-arago-distro/recipes-core/udev/eudev_%.bbappend b/meta-arago-distro/recipes-core/udev/eudev_%.bbappend
index c5758a21..51afb053 100644
--- a/meta-arago-distro/recipes-core/udev/eudev_%.bbappend
+++ b/meta-arago-distro/recipes-core/udev/eudev_%.bbappend
@@ -1,22 +1,4 @@ 
-# This fixes an issue with touchscreens not being detected with the default
-# local.rules.  This can be removed when this change is picked up and
-# meta-arago switches to Dora
+EUDEV_ARAGO = ""
+EUDEV_ARAGO:arago = "eudev-arago.inc"
 
-# look for files in this layer first
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
-
-PR:append = ".arago5"
-
-PACKAGE_ARCH = "${MACHINE_ARCH}"
-
-SRC_URI:append = " \
-                  file://usb1-rules.sh \
-                  file://usb2-rules.sh"
-
-do_install:append() {
-    install -d ${D}/${bindir}
-
-    install -m 0755 ${UNPACKDIR}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
-    install -m 0755 ${UNPACKDIR}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
-    ln -sf libudev.so.1 ${D}${base_libdir}/libudev.so.0
-}
+require ${EUDEV_ARAGO}