]> code.ossystems Code Review - openembedded-core.git/commitdiff
uninative: remove unneeded call to sparse copy
authorStephano Cetola <stephano.cetola@linux.intel.com>
Fri, 10 Mar 2017 15:15:52 +0000 (07:15 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Mar 2017 16:08:50 +0000 (16:08 +0000)
As of this commit:

39f5a05152aa0c3503735e18dd3b4c066b284107

patchelf no longer inflates file sizes. Since the files are no longer
inflated by patchelf, we can skip using cp with the --sparse option.
More details as to how patchelf has changed are available in that
commit log.

Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/uninative.bbclass

index 0d1063a13c0c5058992120a8c3d8b1701e6ba124..ee4ab20c175f4056ee04d23d6c1341391efa729f 100644 (file)
@@ -122,7 +122,4 @@ python uninative_changeinterp () {
                 continue
 
             subprocess.check_output(("patchelf-uninative", "--set-interpreter", d.getVar("UNINATIVE_LOADER"), f), stderr=subprocess.STDOUT)
-            subprocess.check_output(("cp", "--sparse=always", f, f + ".sparse"), stderr=subprocess.STDOUT)
-            os.unlink(f)
-            os.rename(f + ".sparse", f)
 }