Skip to contentSkip to conversation

udev-rules-qoriq: make variable and function specific to qoriq-ppc targets

PATCH In review Zhenhua Luo 2 participants 3 messages Jan 8, 2016 – Jan 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev-rules-qoriq: make variable and function specific to qoriq-ppc targets

---
 recipes-core/udev/udev-rules-qoriq.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-core/udev/udev-rules-qoriq.bb +3 -3
index 1f34b8d..197bc0e 100644
@@ -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/
 }
Signature · 1 line
2.4.3
#1 lore raw
Quoted 20 lines · Zhenhua Luo
---
 recipes-core/udev/udev-rules-qoriq.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-core/udev/udev-rules-qoriq.bb +2 -2
index 1f34b8d..197bc0e 100644
@@ -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"

recipes-core/udev/udev-rules-qoriq.bb DESCRIPTION = "udev rules for Freescale QorIQ SOCs" · line 18

Quoted 10 lines
recipes-core/udev/udev-rules-qoriq.bb +1 -1
 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/
 }

The compatible machine should be used here, instead. Why are you doing this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw

It intention is to fix https://bugzilla.yoctoproject.org/show_bug.cgi?id=8802, the bug of fsl-ppc has been fixed by another patch, ignore the patch.

Best Regards,

Zhenhua

Quoted 47 lines

-----Original Message-----
From: Otavio Salvador [mailto:[email protected]]
Sent: Tuesday, January 12, 2016 12:15 AM
To: Zhenhua Luo <[email protected]>
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-ppc][PATCH] udev-rules-qoriq: make variable and function specific to qoriq-ppc targets

recipes-core/udev/udev-rules-qoriq.bb DESCRIPTION = "udev rules for Freescale QorIQ SOCs" · line 3

Quoted 13 lines · Zhenhua Luo
---
 recipes-core/udev/udev-rules-qoriq.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-core/udev/udev-rules-qoriq.bb +0 -0
index 1f34b8d..197bc0e 100644
@@ -2,17 +2,17 @@ DESCRIPTION = "udev rules for Freescale QorIQ SOCs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM =

"file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"

Quoted 7 lines
recipes-core/udev/udev-rules-qoriq.bb +2 -2
-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"

recipes-core/udev/udev-rules-qoriq.bb DESCRIPTION = "udev rules for Freescale QorIQ SOCs"

Quoted 10 lines
recipes-core/udev/udev-rules-qoriq.bb +1 -1
 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/  }

The compatible machine should be used here, instead. Why are you doing this?

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750