diff options
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index d95afb7b9b..78926656d7 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -61,22 +61,15 @@ oe_runmake() { | |||
61 | 61 | ||
62 | 62 | ||
63 | def base_dep_prepend(d): | 63 | def base_dep_prepend(d): |
64 | # | 64 | if d.getVar('INHIBIT_DEFAULT_DEPS', False): |
65 | # Ideally this will check a flag so we will operate properly in | 65 | return "" |
66 | # the case where host == build == target, for now we don't work in | 66 | return "${BASE_DEFAULT_DEPS}" |
67 | # that case though. | ||
68 | # | ||
69 | 67 | ||
70 | deps = "" | 68 | BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc" |
71 | # INHIBIT_DEFAULT_DEPS doesn't apply to the patch command. Whether or not | ||
72 | # we need that built is the responsibility of the patch function / class, not | ||
73 | # the application. | ||
74 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): | ||
75 | if (d.getVar('HOST_SYS') != d.getVar('BUILD_SYS')): | ||
76 | deps += " virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc " | ||
77 | return deps | ||
78 | 69 | ||
79 | BASEDEPENDS = "${@base_dep_prepend(d)}" | 70 | BASEDEPENDS = "" |
71 | BASEDEPENDS_class-target = "${@base_dep_prepend(d)}" | ||
72 | BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}" | ||
80 | 73 | ||
81 | DEPENDS_prepend="${BASEDEPENDS} " | 74 | DEPENDS_prepend="${BASEDEPENDS} " |
82 | 75 | ||