From 28c999e71a05ee798fc93107a248cb3fd0078fd7 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 8 Oct 2013 16:51:51 +1000 Subject: linux-dtb.inc: Only append packages if not already in collection * Fixes compatibility with the linux-yocto recipes Signed-off-by: Nathan Rossi --- recipes-kernel/linux/linux-dtb.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-dtb.inc b/recipes-kernel/linux/linux-dtb.inc index eb9cca85..5efb9a0d 100644 --- a/recipes-kernel/linux/linux-dtb.inc +++ b/recipes-kernel/linux/linux-dtb.inc @@ -8,7 +8,8 @@ python __anonymous () { depends = d.getVar("DEPENDS", True) d.setVar("DEPENDS", "%s dtc-native" % depends) packages = d.getVar("PACKAGES", True) - d.setVar("PACKAGES", "%s kernel-devicetree" % packages) + if "kernel-devicetree" not in packages: + d.setVar("PACKAGES", "%s kernel-devicetree" % packages) } do_install_append() { -- cgit v1.2.3-54-g00ecf