From 80b1d5fe7b58c66f8a1b05edd2967cadfd9a1984 Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Mon, 31 Mar 2008 11:54:48 +0000 Subject: linux.inc: add dtc-native to DEPENDS if KERNEL_DEVICETREE is defined --- packages/linux/linux.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'packages') diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc index 1f6eeb5538..2757ad520d 100644 --- a/packages/linux/linux.inc +++ b/packages/linux/linux.inc @@ -24,8 +24,16 @@ KERNEL_DEVICETREE_mpc8313e-rdb = "arch/${ARCH}/boot/dts/mpc8313erdb.dts" KERNEL_DEVICETREE_FLAGS_mpc8313e-rdb = "-R 8 -S 0x3000" KERNEL_DEVICETREE_mpc8323e-rdb = "arch/${ARCH}/boot/dts/mpc832x_rdb.dts" -DEPENDS_append_mpc8313e-rdb = " dtc-native" -DEPENDS_append_mpc8323e-rdb = " dtc-native" +python __anonymous () { + + import bb + + devicetree = bb.data.getVar('KERNEL_DEVICETREE', d, 1) or '' + if devicetree: + depends = bb.data.getVar("DEPENDS", d, 1) + depends = "%s dtc-native" % depends + bb.data.setVar("DEPENDS", depends, d) +} do_configure_prepend() { echo "" > ${S}/.config -- cgit v1.2.3