]> code.ossystems Code Review - meta-freescale.git/commitdiff
barebox: Rework do_configure_prepend to do_pre_configure
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 7 Aug 2013 10:40:26 +0000 (10:40 +0000)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 7 Aug 2013 13:31:39 +0000 (10:31 -0300)
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>
meta-fsl-arm/recipes-bsp/barebox/barebox.inc

index 5902f157c86e4b57c144f610dcb0c64235831623..e52b463afcaaa44aa615b4d22ddb94137116fda2 100644 (file)
@@ -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