Patchwork [meta-fsl-arm,1/2] barebox: Rework do_configure_prepend to do_pre_configure

login
register
mail settings
Submitter Alexandre Belloni
Date Aug. 7, 2013, 10:27 a.m.
Message ID <1375871266-19867-1-git-send-email-alexandre.belloni@free-electrons.com>
Download mbox | patch
Permalink /patch/55267/
State Superseded
Delegated to: Otavio Salvador
Headers show

Comments

Alexandre Belloni - Aug. 7, 2013, 10:27 a.m.
Defining a new task instead of using configure_prepend allows inheriting
recipes to override the pre_configure task.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 recipes-bsp/barebox/barebox.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc
index 5902f15..e52b463 100644
--- a/recipes-bsp/barebox/barebox.inc
+++ b/recipes-bsp/barebox/barebox.inc
@@ -20,10 +20,11 @@  BAREBOXENV_SYMLINK ?= "bareboxenv-${MACHINE}.bin"
 
 INSANE_SKIP_${PN} = "True"
 
-do_configure_prepend() {
+do_pre_configure() {
 	   cp ${WORKDIR}/defconfig ${S}/.config
 	   oe_runmake oldconfig
 }
+addtask pre_configure before do_configure after do_patch
 
 do_compile () {
 	if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then