RedHat: Add RPM_BUILD_MODULES and RPM_BUILD_USERSPACE

Add makefile variables to specify if we are to build the userspace
and/or kernel module (kmod) packages.  Continue to build both by
default.

Change-Id: Idc20d5140fcb60cbe84a500b2a7580866008e3e0
Reviewed-on: https://gerrit.openafs.org/15407
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Michael Meffie 2023-04-14 14:06:38 -04:00
parent 86d9e3368d
commit bd263e367d

View File

@ -773,8 +773,14 @@ srpm: dist
"$(RPM_CHANGELOG)" \
"$(RPM_CELLSERVDB)"
RPM_BUILD_USERSPACE = 1
RPM_BUILD_MODULES = 1
rpm: srpm
rpmbuild --rebuild --define "_topdir @TOP_OBJDIR@/packages/rpmbuild" \
rpmbuild \
--rebuild \
--define "_topdir @TOP_OBJDIR@/packages/rpmbuild" \
--define "build_userspace $(RPM_BUILD_USERSPACE)" \
--define "build_modules $(RPM_BUILD_MODULES)" \
packages/openafs-*.src.rpm
dox: