aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-06-11 16:13:58 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-06-11 16:13:58 -0300
commitb6a1c979b849201809aa57781e5b0242559f3f2a (patch)
tree8ac1a1221844704716b9c7c5431155b18c8c0fab /recipes-core
parent8780263ea627502fa58c190c211dc91e660930ee (diff)
downloadmeta-fsl-arm-b6a1c979b849201809aa57781e5b0242559f3f2a.tar.gz
meta-fsl-arm-b6a1c979b849201809aa57781e5b0242559f3f2a.tar.bz2
meta-fsl-arm-b6a1c979b849201809aa57781e5b0242559f3f2a.zip
udev-extra-rules: add
The BSP expect to have meta-openembedded layer available so we don't override udev-extraconf but udev-extra-rules; the recipe is also fixed to be machine specific to avoid changing the behavior of the udev for other machines. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/udev/udev-extra-rules.bbappend19
-rw-r--r--recipes-core/udev/udev-extra-rules/10-imx.rules (renamed from recipes-core/udev/udev-extraconf/10-imx.rules)0
-rw-r--r--recipes-core/udev/udev-extraconf_0.0.bbappend11
3 files changed, 19 insertions, 11 deletions
diff --git a/recipes-core/udev/udev-extra-rules.bbappend b/recipes-core/udev/udev-extra-rules.bbappend
new file mode 100644
index 0000000..81b584e
--- /dev/null
+++ b/recipes-core/udev/udev-extra-rules.bbappend
@@ -0,0 +1,19 @@
+# Freescale imx extra configuration udev rules
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+PRINC := "${@int(PRINC) + 1}"
+
+SRC_URI_append_mxs = "file://10-imx.rules"
+SRC_URI_append_mx5 = "file://10-imx.rules"
+SRC_URI_append_mx6 = "file://10-imx.rules"
+
+do_install_prepend () {
+ if [ -e "${WORKDIR}/10-imx.rules" ]; then
+ install -d ${D}${sysconfdir}/udev/rules.d
+ install -m 0644 ${WORKDIR}/10-imx.rules ${D}${sysconfdir}/udev/rules.d
+ fi
+}
+
+PACKAGE_ARCH_mxs = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
+PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
diff --git a/recipes-core/udev/udev-extraconf/10-imx.rules b/recipes-core/udev/udev-extra-rules/10-imx.rules
index 1fc32dc..1fc32dc 100644
--- a/recipes-core/udev/udev-extraconf/10-imx.rules
+++ b/recipes-core/udev/udev-extra-rules/10-imx.rules
diff --git a/recipes-core/udev/udev-extraconf_0.0.bbappend b/recipes-core/udev/udev-extraconf_0.0.bbappend
deleted file mode 100644
index bbd6bbb..0000000
--- a/recipes-core/udev/udev-extraconf_0.0.bbappend
+++ /dev/null
@@ -1,11 +0,0 @@
-# Freescale imx extra configuration udev rules
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-PRINC := "${@int(PRINC) + 1}"
-
-SRC_URI_append += "file://10-imx.rules"
-
-do_install_prepend () {
- install -d ${D}${sysconfdir}/udev/rules.d
- install -m 0644 ${WORKDIR}/10-imx.rules ${D}${sysconfdir}/udev/rules.d
-}