]> code.ossystems Code Review - meta-freescale.git/commitdiff
udev-rules-qoriq: allow no rules installed
authorTing Liu <ting.liu@nxp.com>
Thu, 25 Aug 2016 05:50:57 +0000 (13:50 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 8 Sep 2016 14:27:02 +0000 (11:27 -0300)
* 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@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-core/udev/udev-rules-qoriq.bb

index 62f2371fcc9579823ec23c4e7c75e9f7d166d015..6eedec8f04b3868aee5848cbd216b68079c94029 100644 (file)
@@ -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)"