spec: support gbs(1) incremental builds
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 4 Jan 2021 13:41:58 +0000 (14:41 +0100)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 23 Nov 2022 02:23:53 +0000 (11:23 +0900)
commit1c567ccc3d3536cbb63c911759d1af40feee63cc
tree59cd30eaa0d3be5b90532676013ce4aa07630e96
parent8c3524637000576a9089b2726147177008921d30
spec: support gbs(1) incremental builds

gbs(1) enable incremental builds that are significantly faster, hoewever,
spec files need some adjustments.

+ You can't use -n <name> with %setup
+ There is no point in making mrproper
+ use rsync(1) instead of cp(1)+find(1) to copy devel files

Other changes are:
+ use make headers_install to install headers in the buildroot
+ add _smp_mflags to make(1) things faster

Change-Id: Ia14fbe7acab8b83683f9e07757b4f62a7657b2a5
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
packaging/linux-rpi4.spec