From bd263e367dde4585da506ec278dd775243e9f70f Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Fri, 14 Apr 2023 14:06:38 -0400 Subject: [PATCH] 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 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot Reviewed-by: Michael Meffie --- Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 89418b03bd..21cc642c81 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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: