Patchwork [1/3] Rename do_configure_prepend to do_pre_configure and add it before do_configure

login
register
mail settings
Submitter Ken Werner
Date Dec. 14, 2011, 10:58 p.m.
Message ID <1323903512-7344-2-git-send-email-ken.werner@linaro.org>
Download mbox | patch
Permalink /patch/16945/
State New
Headers show

Comments

Ken Werner - Dec. 14, 2011, 10:58 p.m.
Defining a new task instead of using configure_prepend allows inheriting
recipes to override the pre_configure task.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
---
 meta/classes/libc-package.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass
index 1796d3d..b2accb6 100644
--- a/meta/classes/libc-package.bbclass
+++ b/meta/classes/libc-package.bbclass
@@ -39,10 +39,10 @@  python __anonymous () {
 
 OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}"
 
-do_configure_prepend() {
+do_pre_configure() {
         sed -e "s#@BASH@#/bin/sh#" -i ${S}/elf/ldd.bash.in
 }
-
+addtask pre_configure before do_configure
 
 
 # indentation removed on purpose