diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-29 15:21:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-30 00:11:51 +0100 |
commit | 2f2875f73ceec4839f1fdbbd65a216a0cc840b76 (patch) | |
tree | a62e24e1de0d60c24d0125e9675af83257e2d74d /meta/classes/base.bbclass | |
parent | a4b9bf3a1e48d5a65896807597522627c6ac5e1c (diff) | |
download | poky-2f2875f73ceec4839f1fdbbd65a216a0cc840b76.tar.gz |
autotools/base/icecc: Remove prepend from function names
Using prepend as part of a function name is a poor choice. Whilst we're
about to make the syntax explict, improve the names anyway making the
conversion easier and the intent clear that this isn't an override.
(From OE-Core rev: 9d002acae720b0a8e96a6734424a142b86880461)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 42fb84c4d5..ff0579c7d6 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -66,7 +66,7 @@ oe_runmake() { | |||
66 | } | 66 | } |
67 | 67 | ||
68 | 68 | ||
69 | def base_dep_prepend(d): | 69 | def get_base_dep(d): |
70 | if d.getVar('INHIBIT_DEFAULT_DEPS', False): | 70 | if d.getVar('INHIBIT_DEFAULT_DEPS', False): |
71 | return "" | 71 | return "" |
72 | return "${BASE_DEFAULT_DEPS}" | 72 | return "${BASE_DEFAULT_DEPS}" |
@@ -74,8 +74,8 @@ def base_dep_prepend(d): | |||
74 | BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc" | 74 | BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc" |
75 | 75 | ||
76 | BASEDEPENDS = "" | 76 | BASEDEPENDS = "" |
77 | BASEDEPENDS_class-target = "${@base_dep_prepend(d)}" | 77 | BASEDEPENDS_class-target = "${@get_base_dep(d)}" |
78 | BASEDEPENDS_class-nativesdk = "${@base_dep_prepend(d)}" | 78 | BASEDEPENDS_class-nativesdk = "${@get_base_dep(d)}" |
79 | 79 | ||
80 | DEPENDS_prepend="${BASEDEPENDS} " | 80 | DEPENDS_prepend="${BASEDEPENDS} " |
81 | 81 | ||