diff options
author | Ross Burton <ross.burton@intel.com> | 2018-07-05 13:29:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-06 22:55:02 +0100 |
commit | 2d28e8370e2e6677a07697f91192d1d199da8cd8 (patch) | |
tree | 2425455a12204a4c0ef85012b7966c8c37f3b763 /meta/classes/distutils3.bbclass | |
parent | 780565b368e0885d5ecf03f1718950683f143ff9 (diff) | |
download | poky-2d28e8370e2e6677a07697f91192d1d199da8cd8.tar.gz |
distutils: clean the build tree in do_configure
base_do_configure() tries to do "make clean" if there is a Makefile present.
For most recipes using distutils there is not a Makefile, but we do know that
"setup.py clean" will work so call that instead.
(From OE-Core rev: b805cefb24566772a2beb5d02036266e45370913)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distutils3.bbclass')
-rw-r--r-- | meta/classes/distutils3.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/distutils3.bbclass b/meta/classes/distutils3.bbclass index 6c30306882..99ad64d287 100644 --- a/meta/classes/distutils3.bbclass +++ b/meta/classes/distutils3.bbclass | |||
@@ -8,6 +8,12 @@ DISTUTILS_STAGE_ALL_ARGS ?= "--prefix=${STAGING_DIR_HOST}${prefix} \ | |||
8 | DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ | 8 | DISTUTILS_INSTALL_ARGS ?= "--prefix=${D}/${prefix} \ |
9 | --install-data=${D}/${datadir}" | 9 | --install-data=${D}/${datadir}" |
10 | 10 | ||
11 | distutils3_do_configure() { | ||
12 | if [ "${CLEANBROKEN}" != "1" ] ; then | ||
13 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} setup.py clean | ||
14 | fi | ||
15 | } | ||
16 | |||
11 | distutils3_do_compile() { | 17 | distutils3_do_compile() { |
12 | STAGING_INCDIR=${STAGING_INCDIR} \ | 18 | STAGING_INCDIR=${STAGING_INCDIR} \ |
13 | STAGING_LIBDIR=${STAGING_LIBDIR} \ | 19 | STAGING_LIBDIR=${STAGING_LIBDIR} \ |
@@ -71,6 +77,6 @@ distutils3_do_install() { | |||
71 | } | 77 | } |
72 | distutils3_do_install[vardepsexclude] = "MACHINE" | 78 | distutils3_do_install[vardepsexclude] = "MACHINE" |
73 | 79 | ||
74 | EXPORT_FUNCTIONS do_compile do_install | 80 | EXPORT_FUNCTIONS do_configure do_compile do_install |
75 | 81 | ||
76 | export LDSHARED="${CCLD} -shared" | 82 | export LDSHARED="${CCLD} -shared" |