summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-03-31 11:54:48 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-03-31 11:54:48 +0000
commit80b1d5fe7b58c66f8a1b05edd2967cadfd9a1984 (patch)
treedc02f688d426289c979e45778efcd536cfc055c4 /packages
parent15b87148d7d597c9fd213f95471b5c6ffb293d38 (diff)
linux.inc: add dtc-native to DEPENDS if KERNEL_DEVICETREE is defined
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux.inc12
1 files changed, 10 insertions, 2 deletions
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