From: Ting Liu Date: Thu, 25 Aug 2016 05:50:57 +0000 (+0800) Subject: udev-rules-qoriq: allow no rules installed X-Git-Tag: 2.2~258 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=71d59971695bef003375840386632201182c699a;p=meta-freescale.git 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 Signed-off-by: Otavio Salvador --- 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" 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)"