Use ccache.tar file with --pkg-ccache option 38/254738/6
authorHyunggi Lee <hyunggi.lee@samsung.com>
Tue, 9 Mar 2021 05:29:17 +0000 (14:29 +0900)
committerHyunggi Lee <hyunggi.lee@samsung.com>
Mon, 5 Jul 2021 07:24:18 +0000 (16:24 +0900)
commit83d660afee1b2f5b331cea7be632baf9cec25149
tree75ad61df361ca3c4d0f940a88332fb3931db3bcd
parent1cf9b6b4612246afd28d5e92065c1e6af0604456
Use ccache.tar file with --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 --ccache --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

related upstream patch
https://github.com/openSUSE/obs-build/pull/580
https://github.com/openSUSE/obs-build/pull/578
https://github.com/openSUSE/obs-build/pull/577
https://github.com/openSUSE/obs-build/pull/576
https://github.com/openSUSE/obs-build/pull/571
https://github.com/openSUSE/obs-build/pull/560
https://github.com/openSUSE/obs-build/pull/559

Change-Id: Ib5e6f60eddcca6f4ba67e209f9068f11a125d86e
Signed-off-by: Hyunggi Lee <hyunggi.lee@samsung.com>
build [changed mode: 0755->0644]