]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toolchain-shar-relocate.sh: make it faster rbt/sdk_time
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Sep 2015 06:58:37 +0000 (23:58 -0700)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Sep 2015 07:45:40 +0000 (00:45 -0700)
commitffd3e4add72c85548bae7d7c15df3a7804e8c25a
tree2bc8ee538e43ad01a324570317cf0d9bcb390550
parentd5cf21179d9f8d3c053316b0864d72fc609f5423
toolchain-shar-relocate.sh: make it faster

Make the extrating faster by:
* Merge the two heavy "for .. find" loops into one
* Move the commands out of for loop rather than inside, this can reduce the
  forking amount.

As a result, when install:
* buildtools-nativesdk-standalone: 14s -> 7s (50% saved)
* core-image-minimal-core2-64-toolchain: 56s -> 47s (17% saved)

[YOCTO #8404]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/files/toolchain-shar-relocate.sh