Enhanced RPM build process to make rpm for any given platform
- Currently default rpm.spec only look for "install-vpp-native" Change-Id: Iaa78c46ae62d2747bda6ffc1189cb8ac6d578bd8 Signed-off-by: Sachin <sachin.saxena@nxp.com>
This commit is contained in:
@ -72,6 +72,7 @@ install-rpm: $(patsubst %,%-find-source,$(ROOT_PACKAGES))
|
|||||||
$(ROOT_PACKAGES)) || exit 1; \
|
$(ROOT_PACKAGES)) || exit 1; \
|
||||||
\
|
\
|
||||||
cd rpm ; \
|
cd rpm ; \
|
||||||
rpmbuild -bb --define "_topdir $$PWD" vpp.spec ; \
|
rpmbuild -bb --define "_topdir $$PWD" --define \
|
||||||
|
"_install_dir $(INSTALL_PREFIX)$(ARCH)" vpp.spec ; \
|
||||||
mv $$(find RPMS -name \*.rpm -type f) ..
|
mv $$(find RPMS -name \*.rpm -type f) ..
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
%define _vpp_install_dir ../install-vpp-native
|
%define _vpp_install_dir ../%{_install_dir}
|
||||||
%define _vpp_build_dir ../build-tool-native
|
%define _vpp_build_dir ../build-tool-native
|
||||||
%define _unitdir /lib/systemd/system
|
%define _unitdir /lib/systemd/system
|
||||||
%define _topdir %(pwd)
|
%define _topdir %(pwd)
|
||||||
|
Reference in New Issue
Block a user