M7350/oe-core/meta/classes/scons.bbclass

16 lines
462 B
Plaintext
Raw Normal View History

2024-09-09 08:52:07 +00:00
DEPENDS += "python-scons-native"
2024-09-09 08:57:42 +00:00
EXTRA_OESCONS ?= ""
2024-09-09 08:52:07 +00:00
scons_do_compile() {
2024-09-09 08:57:42 +00:00
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
2024-09-09 08:52:07 +00:00
bbfatal "scons build execution failed."
}
scons_do_install() {
2024-09-09 08:57:42 +00:00
${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix} prefix=${D}${prefix} install ${EXTRA_OESCONS}|| \
2024-09-09 08:52:07 +00:00
bbfatal "scons install execution failed."
}
EXPORT_FUNCTIONS do_compile do_install