diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2013-08-07 10:40:26 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2013-08-07 10:31:39 -0300 |
commit | 7fb048374500b0a6adf2fb4234d1908b5ce55785 (patch) | |
tree | 0613006d53fa75070cdd46cb862b18aa65bbb37b | |
parent | b95915ac881aa5ab220fe71f55ebe93a481449a9 (diff) | |
download | meta-freescale-7fb048374500b0a6adf2fb4234d1908b5ce55785.tar.gz |
barebox: Rework do_configure_prepend to do_pre_configure
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>
-rw-r--r-- | meta-fsl-arm/recipes-bsp/barebox/barebox.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-fsl-arm/recipes-bsp/barebox/barebox.inc b/meta-fsl-arm/recipes-bsp/barebox/barebox.inc index 5902f157c..e52b463af 100644 --- a/meta-fsl-arm/recipes-bsp/barebox/barebox.inc +++ b/meta-fsl-arm/recipes-bsp/barebox/barebox.inc | |||
@@ -20,10 +20,11 @@ BAREBOXENV_SYMLINK ?= "bareboxenv-${MACHINE}.bin" | |||
20 | 20 | ||
21 | INSANE_SKIP_${PN} = "True" | 21 | INSANE_SKIP_${PN} = "True" |
22 | 22 | ||
23 | do_configure_prepend() { | 23 | do_pre_configure() { |
24 | cp ${WORKDIR}/defconfig ${S}/.config | 24 | cp ${WORKDIR}/defconfig ${S}/.config |
25 | oe_runmake oldconfig | 25 | oe_runmake oldconfig |
26 | } | 26 | } |
27 | addtask pre_configure before do_configure after do_patch | ||
27 | 28 | ||
28 | do_compile () { | 29 | do_compile () { |
29 | if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then | 30 | if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then |