avoid recompile in %install by setting the VERSION variable
This commit is contained in:
parent
0ac808965b
commit
5348abca49
@ -62,10 +62,10 @@ services to the OS (Linux) on IBM Power and OpenPower systems.
|
||||
|
||||
%build
|
||||
OPAL_PRD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" ASFLAGS="-m64 -Wa,--generate-missing-build-notes=yes" -C external/opal-prd
|
||||
GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard
|
||||
PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash
|
||||
XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils
|
||||
FFSPART_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/ffspart
|
||||
GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard
|
||||
PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash
|
||||
XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils
|
||||
FFSPART_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/ffspart
|
||||
|
||||
# build skiboot with a cross-compiler on Fedora and with system compiler otherwise
|
||||
# and always use upstream compiler flags for the firmware (no CFLAGS override)
|
||||
@ -77,11 +77,11 @@ SKIBOOT_VERSION=%{version} make V=1 CROSS=
|
||||
|
||||
|
||||
%install
|
||||
make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
|
||||
make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
|
||||
make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
|
||||
make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
|
||||
make -C external/ffspart install DESTDIR=%{buildroot} prefix=/usr
|
||||
OPAL_PRD_VERSION=%{version} make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
|
||||
GARD_VERSION=%{version} make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
|
||||
PFLASH_VERSION=%{version} make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
|
||||
XSCOM_VERSION=%{version} make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
|
||||
FFSPART_VERSION=%{version} make -C external/ffspart install DESTDIR=%{buildroot} prefix=/usr
|
||||
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
install -m 644 -p external/opal-prd/opal-prd.service %{buildroot}%{_unitdir}/opal-prd.service
|
||||
|
Loading…
Reference in New Issue
Block a user