blob: 4f3ae502efca7e431f8be2c283b68fac95b0c615 [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001inherit python3native
2
3DEPENDS += "python3-scons-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05004
5EXTRA_OESCONS ?= ""
6
Brad Bishop19323692019-04-05 15:28:33 -04007do_configure() {
8 if [ -n "${CONFIGURESTAMPFILE}" ]; then
9 if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
10 ${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
11 fi
12
13 mkdir -p `dirname ${CONFIGURESTAMPFILE}`
14 echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
15 fi
16}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018scons_do_compile() {
Brad Bishop19323692019-04-05 15:28:33 -040019 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
20 die "scons build execution failed."
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021}
22
23scons_do_install() {
Brad Bishop19323692019-04-05 15:28:33 -040024 ${STAGING_BINDIR_NATIVE}/scons install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
25 die "scons install execution failed."
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026}
27
28EXPORT_FUNCTIONS do_compile do_install