[meta-fsl-ppc][PATCH] udev-rules-qoriq: make variable and function specific to qoriq-ppc targets


Zhenhua Luo
 

Signed-off-by: Zhenhua Luo <zhenhua.luo@...>
---
recipes-core/udev/udev-rules-qoriq.bb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/recipes-core/udev/udev-rules-qoriq.bb b/recipes-core/udev/udev-rules-qoriq.bb
index 1f34b8d..197bc0e 100644
--- a/recipes-core/udev/udev-rules-qoriq.bb
+++ b/recipes-core/udev/udev-rules-qoriq.bb
@@ -2,17 +2,17 @@ DESCRIPTION = "udev rules for Freescale QorIQ SOCs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

-SRC_URI = "\
+SRC_URI_qoriq-ppc = "\
file://71-fsl-dpaa-persistent-networking.rules \
file://72-fsl-dpaa-persistent-networking.rules \
"
-RULE ?= "71-fsl-dpaa-persistent-networking.rules"
+RULE_qoriq-ppc ?= "71-fsl-dpaa-persistent-networking.rules"
RULE_e6500 = "72-fsl-dpaa-persistent-networking.rules"
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"

-do_install () {
+do_install_qoriq-ppc () {
install -d ${D}${sysconfdir}/udev/rules.d/
install -m 0644 ${WORKDIR}/${RULE} ${D}${sysconfdir}/udev/rules.d/
}
--
2.4.3

Join {meta-freescale@lists.yoctoproject.org to automatically receive all group messages.