summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/uninative.bbclass
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-08-11 21:58:05 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-14 08:11:14 +0100
commit728775c87a7e35a03408675ce1c7a8cd061b2fda (patch)
treeb1b44e463f94fd8e217d8734d37bb91b9713f37c /meta/classes-global/uninative.bbclass
parent0b2f8da3ff9cbbb6fc2ab75fbe09ad1fe745c53b (diff)
downloadopenembedded-core-contrib-728775c87a7e35a03408675ce1c7a8cd061b2fda.tar.gz
patchelf: replace a rejected patch with an equivalent uninative.bbclass tweak
This was the original reason to add the patch: https://git.openembedded.org/openembedded-core/commit/?id=18efcbcb896239c64fedd009ce57f3f0c668cbc0 and this is the upstream discussion which suggests handling read-only files explicitly outside of patchelf: https://github.com/NixOS/patchelf/pull/89 Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/uninative.bbclass')
-rw-r--r--meta/classes-global/uninative.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-global/uninative.bbclass b/meta/classes-global/uninative.bbclass
index 4b7fb36449..42c5f8fdf2 100644
--- a/meta/classes-global/uninative.bbclass
+++ b/meta/classes-global/uninative.bbclass
@@ -173,5 +173,7 @@ python uninative_changeinterp () {
if not elf.isDynamic():
continue
+ os.chmod(f, s[stat.ST_MODE] | stat.S_IWUSR)
subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT)
+ os.chmod(f, s[stat.ST_MODE])
}