[meta-freescale] [meta-freescale-layer][PATCH 1/2] udev-rules-qoriq: allow no rules installed

ting.liu at nxp.com ting.liu at nxp.com
Wed Aug 24 22:50:57 PDT 2016


From: Ting Liu <ting.liu at nxp.com>

* set RULE to empty for ls2080ardb.
* use loop to handle the case when RULE is empty.
* set ALLOW_EMPTY to 1.

Signed-off-by: Ting Liu <ting.liu at nxp.com>
---
 recipes-core/udev/udev-rules-qoriq.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/recipes-core/udev/udev-rules-qoriq.bb b/recipes-core/udev/udev-rules-qoriq.bb
index 62f2371..6eedec8 100644
--- a/recipes-core/udev/udev-rules-qoriq.bb
+++ b/recipes-core/udev/udev-rules-qoriq.bb
@@ -15,10 +15,14 @@ RULE_e6500-64b = "72-fsl-dpaa-persistent-networking.rules"
 RULE_t1024 = "72-fsl-dpaa-persistent-networking.rules"
 RULE_t1023 = "72-fsl-dpaa-persistent-networking.rules"
 RULE_ls1043ardb = "73-fsl-dpaa-persistent-networking.rules"
+RULE_ls2080ardb = ""
 
 do_install () {
     install -d ${D}${sysconfdir}/udev/rules.d/
-    install -m 0644 ${WORKDIR}/${RULE} ${D}${sysconfdir}/udev/rules.d/
+    for r in ${RULE};do
+        install -m 0644 ${WORKDIR}/${r} ${D}${sysconfdir}/udev/rules.d/
+    done
 }
 
+ALLOW_EMPTY_${PN} = "1"
 COMPATIBLE_MACHINE = "(qoriq)"
-- 
1.9.2



More information about the meta-freescale mailing list