Skip to contentSkip to conversation

scons.bbclass: Add scons class prefix to do_configure

PATCH New [email protected] 1 participant 1 message Aug 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scons.bbclass: Add scons class prefix to do_configure

From: Ola x Nilsson <[email protected]>

While do_compile and do_install already have the scons_ prefix, do_configure did not. This was most likely an oversight from when it was converted from do_configure[noexec] = "1".

---
 meta/classes-recipe/scons.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes-recipe/scons.bbclass +2 -2
index d20a78dc6e..1cb375522d 100644
@@ -12,7 +12,7 @@ EXTRA_OESCONS ?= ""
 # This value below is derived from $(getconf ARG_MAX)
 SCONS_MAXLINELENGTH ?= "MAXLINELENGTH=2097152"
 EXTRA_OESCONS:append = " ${SCONS_MAXLINELENGTH}"
-do_configure() {
+scons_do_configure() {
 	if [ -n "${CONFIGURESTAMPFILE}" -a "${S}" = "${B}" ]; then
 		if [ -e "${CONFIGURESTAMPFILE}" -a "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${CLEANBROKEN}" != "1" ]; then
 			${STAGING_BINDIR_NATIVE}/scons --directory=${S} --clean PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS}
@@ -37,4 +37,4 @@ do_configure[vardepsexclude] = "SCONS_MAXLINELENGTH"
 do_compile[vardepsexclude] = "SCONS_MAXLINELENGTH"
 do_install[vardepsexclude] = "SCONS_MAXLINELENGTH"
 
-EXPORT_FUNCTIONS do_compile do_install
+EXPORT_FUNCTIONS do_configure do_compile do_install
Signature · 1 line
2.39.2