add --pkg-ccache option 41/254741/1
authorHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 9 Mar 2021 05:53:30 +0000 (14:53 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 9 Mar 2021 05:53:30 +0000 (14:53 +0900)
commit5a02afc85143d1c104a7287c820e9877911a3366
treee96ac1e563b91137a7b6fada791cb0329d42762a
parent6b5ab5db5739c1d68390f432cbeae7eb7b2bfb05
add --pkg-ccache option

1. first build. create _ccache.tar
$ gbs build -A armv7l --ccache

after build is done
_ccache.tar file will be created
BUILD-ROOTS/scratch.armv7l.0/home/abuild/rpmbuild/OTHER/_ccache.tar
backup _ccache.tar file to your storage

2. rebuild with _ccache.tar
$ gbs build -A armv7l --pkg-ccache /path/to/_ccache.tar

test
build chromium-efl
build env: laptop NT371B5M
  - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
  - SAMSUNG MZNLN256 256G SSD

first clean build
gbs build -A armv7l --ccache
build time: 29806s

rebuild
 gbs build -A armv7l --ccache --overwrite --pkg-ccache ~/_ccache.tar
build time: 3294s

rebuild (with qemu-accel (ccache, ninja)
gbs build -A armv7l --ccache --overwrite --pkg-ccache ~/_ccache.tar
build time: 2209s

Change-Id: I5df049e15eaa16a9859c8193a2b922f52406cd44
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
gitbuildsys/cmd_build.py
tools/gbs