[oe-commits] org.oe.dev linux.inc: add dtc-native to DEPENDS if KERNEL_DEVICETREE is defined
jeremy_laine commit
oe at amethyst.openembedded.net
Mon Mar 31 11:57:53 UTC 2008
linux.inc: add dtc-native to DEPENDS if KERNEL_DEVICETREE is defined
Author: jeremy_laine at openembedded.org
Branch: org.openembedded.dev
Revision: 45c915e431220061f4a8b87b6203c1b5c5671879
ViewMTN: http://monotone.openembedded.org/revision/info/45c915e431220061f4a8b87b6203c1b5c5671879
Files:
1
packages/linux/linux.inc
Diffs:
#
# mt diff -r2fc8e8fa8e29041f0c726e5d89cbdbcc20473c19 -r45c915e431220061f4a8b87b6203c1b5c5671879
#
#
#
# patch "packages/linux/linux.inc"
# from [952cf195efc3aaef0f2de444ba49f09b27283de9]
# to [7bf95936e9aa2c19910b87746edc070ad1cdbea5]
#
============================================================
--- packages/linux/linux.inc 952cf195efc3aaef0f2de444ba49f09b27283de9
+++ packages/linux/linux.inc 7bf95936e9aa2c19910b87746edc070ad1cdbea5
@@ -24,9 +24,17 @@ KERNEL_DEVICETREE_mpc8323e-rdb = "arch/$
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
More information about the Openembedded-commits
mailing list