blob: 9ee7d1587d7b78fc914c9bb014448f019568e8bb [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DEPENDS += "python-scons-native"
2
3EXTRA_OESCONS ?= ""
4
Brad Bishop19323692019-04-05 15:28:33 -04005do_configure() {
6 if [ -n "${CONFIGURESTAMPFILE}" ]; then
7 if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
8 ${STAGING_BINDIR_NATIVE}/scons --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
9 fi
10
11 mkdir -p `dirname ${CONFIGURESTAMPFILE}`
12 echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
13 fi
14}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016scons_do_compile() {
Brad Bishop19323692019-04-05 15:28:33 -040017 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
18 die "scons build execution failed."
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019}
20
21scons_do_install() {
Brad Bishop19323692019-04-05 15:28:33 -040022 ${STAGING_BINDIR_NATIVE}/scons install_root=${D}${prefix} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} install || \
23 die "scons install execution failed."
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024}
25
26EXPORT_FUNCTIONS do_compile do_install