diff options
author | Ting Liu <ting.liu@nxp.com> | 2016-08-25 13:50:57 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-09-08 11:27:02 -0300 |
commit | 71d59971695bef003375840386632201182c699a (patch) | |
tree | 10bac1e24a69868e6f02601beaec76ebfd13fb0b | |
parent | 2ce6ca4ec44bf72bc6b1b6e53e04209edb7b9e70 (diff) | |
download | meta-freescale-71d59971695bef003375840386632201182c699a.tar.gz |
udev-rules-qoriq: allow no rules installed
* 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>
-rw-r--r-- | recipes-core/udev/udev-rules-qoriq.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-core/udev/udev-rules-qoriq.bb b/recipes-core/udev/udev-rules-qoriq.bb index 62f2371f..6eedec8f 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" | |||
15 | RULE_t1024 = "72-fsl-dpaa-persistent-networking.rules" | 15 | RULE_t1024 = "72-fsl-dpaa-persistent-networking.rules" |
16 | RULE_t1023 = "72-fsl-dpaa-persistent-networking.rules" | 16 | RULE_t1023 = "72-fsl-dpaa-persistent-networking.rules" |
17 | RULE_ls1043ardb = "73-fsl-dpaa-persistent-networking.rules" | 17 | RULE_ls1043ardb = "73-fsl-dpaa-persistent-networking.rules" |
18 | RULE_ls2080ardb = "" | ||
18 | 19 | ||
19 | do_install () { | 20 | do_install () { |
20 | install -d ${D}${sysconfdir}/udev/rules.d/ | 21 | install -d ${D}${sysconfdir}/udev/rules.d/ |
21 | install -m 0644 ${WORKDIR}/${RULE} ${D}${sysconfdir}/udev/rules.d/ | 22 | for r in ${RULE};do |
23 | install -m 0644 ${WORKDIR}/${r} ${D}${sysconfdir}/udev/rules.d/ | ||
24 | done | ||
22 | } | 25 | } |
23 | 26 | ||
27 | ALLOW_EMPTY_${PN} = "1" | ||
24 | COMPATIBLE_MACHINE = "(qoriq)" | 28 | COMPATIBLE_MACHINE = "(qoriq)" |