blob: c19f8d462ddbca63c63b9e9ecf399e793388c782 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
DEPENDS += "python-scons-native"
EXTRA_OESCONS ?= ""
export TARGET_LINK_HASH_STYLE
scons_do_compile() {
if [ "${SCONS_FIX_ENV}" = "1" ] ; then
if grep "toolchain-from-env" ${S}/SConstruct ; then
echo "Toolchain overrides already applied"
else
cat ${STAGING_DATADIR_NATIVE}/scons/toolchain-from-env.SConscript >> ${S}/SConstruct
fi
fi
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} CXX="${CXX}" PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
oefatal "scons build execution failed."
}
scons_do_install() {
install -d ${D}${prefix}
${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix} prefix=${D}${prefix} install || \
oefatal "scons install execution failed."
}
EXPORT_FUNCTIONS do_compile do_install
|