Skip to contentSkip to conversation

perf: pass DESTDIR in EXTRA_OEMAKE

PATCH In review Ross Burton 2 participants 2 messages Apr 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf: pass DESTDIR in EXTRA_OEMAKE

Instead of passing DESTDIR just in the make install invocation, pass it in EXTRA_OEMAKE. This appears to stop perf from rebuilding at instal time for me, which appears to be the trigger for the random build failure.

[ YOCTO #9182 ]

---
 meta/recipes-kernel/perf/perf.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/perf/perf.bb +2 -1
index c43f39c..3d6ffb3 100644
@@ -88,6 +88,7 @@ EXTRA_OEMAKE = '\
 '
 
 EXTRA_OEMAKE += "\
+    'DESTDIR=${D}' \
     'prefix=${prefix}' \
     'bindir=${bindir}' \
     'sharedir=${datadir}' \
@@ -110,7 +111,7 @@ do_compile() {
 do_install() {
 	# Linux kernel build system is expected to do the right thing
 	unset CFLAGS
-	oe_runmake DESTDIR=${D} install
+	oe_runmake install
 	# we are checking for this make target to be compatible with older perf versions
 	if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" ] && grep -q install-python_ext ${S}/tools/perf/Makefile*; then
 		oe_runmake DESTDIR=${D} install-python_ext
Signature · 1 line
2.8.0.rc3
Tested-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ross Burton

Instead of passing DESTDIR just in the make install invocation, pass it in EXTRA_OEMAKE. This appears to stop perf from rebuilding at instal time for me,
which appears to be the trigger for the random build failure.

This also passed my local build tests, but then again, in two weeks of trying (off and
on), I've never reproduced the race condition .. so I can't comment if it actually fixes
it or not.

Having a the destdir be consistent for all phases makes sense though, so I see no
problem with the change as-is.

I'll suspend my nasty perf Makefile hacks to serialize parts of the build to see if this
holds as a permanent fix for the problem.

Bruce

Quoted 41 lines

[ YOCTO #9182 ]

---
 meta/recipes-kernel/perf/perf.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/perf/ renamed from meta/recipes-kernel/perf/perf.bb +0 -0

perf.bb
index c43f39c..3d6ffb3 100644

meta/recipes-kernel/perf/perf.bb +2 -1
@@ -88,6 +88,7 @@ EXTRA_OEMAKE = '\
 '
 
 EXTRA_OEMAKE += "\
+    'DESTDIR=${D}' \
     'prefix=${prefix}' \
     'bindir=${bindir}' \
     'sharedir=${datadir}' \
@@ -110,7 +111,7 @@ do_compile() {
 do_install() {
        # Linux kernel build system is expected to do the right thing
        unset CFLAGS
-       oe_runmake DESTDIR=${D} install
+       oe_runmake install
        # we are checking for this make target to be compatible with older

perf versions

        if [ "${@perf_feature_enabled('perf-scripting', 1, 0, d)}" = "1" ]
&& grep -q install-python_ext ${S}/tools/perf/Makefile*; then
                oe_runmake DESTDIR=${D} install-python_ext

--
2.8.0.rc3

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"