Skip to contentSkip to conversation

scripts/package/Makefile: Restore the RPMOPTS variable

PATCH Superseded Jim Davis 3 participants 3 messages Oct 17, 2015 – Oct 27, 2015 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jim Davis

author
#0 lore raw

PATCH 1/1 scripts/package/Makefile: Restore the RPMOPTS variable

Restore the RPMOPTS variable to the rpm-pkg and binrpm-pkg targets that commit 21a59991ce0c ("scripts/package/Makefile: rpmbuild is needed for rpm targets") removed.

---
 scripts/package/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/package/Makefile +2 -2
index 1aca224e8597..493e226356ca 100644
@@ -52,7 +52,7 @@ rpm-pkg rpm: FORCE
 	$(call cmd,src_tar,$(KERNELPATH),kernel.spec)
 	$(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version
 	mv -f $(objtree)/.tmp_version $(objtree)/.version
-	rpmbuild --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz
+	rpmbuild $(RPMOPTS) --target $(UTS_MACHINE) -ta $(KERNELPATH).tar.gz
 	rm $(KERNELPATH).tar.gz kernel.spec
 
 # binrpm-pkg
@@ -63,7 +63,7 @@ binrpm-pkg: FORCE
 	$(CONFIG_SHELL) $(srctree)/scripts/mkversion > $(objtree)/.tmp_version
 	mv -f $(objtree)/.tmp_version $(objtree)/.version
 
-	rpmbuild --define "_builddir $(objtree)" --target \
+	rpmbuild $(RPMOPTS) --define "_builddir $(objtree)" --target \
 		$(UTS_MACHINE) -bb $(objtree)/binkernel.spec
 	rm binkernel.spec
 
Signature · 1 line
2.1.4
#1 lore raw

Dne 17.10.2015 v 02:09 Jim Davis napsal(a):

Quoted 6 lines

Restore the RPMOPTS variable to the rpm-pkg and binrpm-pkg targets that commit 21a59991ce0c ("scripts/package/Makefile: rpmbuild is needed for rpm targets") removed.

If this is a regression fix, please add a Fixes: hash ("commit message") line to the signoff area.

Out of curiosity, what options do you need to pass to rpmbuild?

Michal

#2 lore raw

hi

Quoted 5 lines · Michal Marek

Dne 17.10.2015 v 02:09 Jim Davis napsal(a):

Quoted 4 lines

Restore the RPMOPTS variable to the rpm-pkg and binrpm-pkg targets that commit 21a59991ce0c ("scripts/package/Makefile: rpmbuild is needed for rpm targets") removed.

Quoted 7 lines
Quoted 2 lines

If this is a regression fix, please add a Fixes: hash ("commit message") line to the signoff area.

Out of curiosity, what options do you need to pass to rpmbuild?

A common usage will be to change the default _topdir (RPMOPTS="--define \"_topdir /tmp/build\"").

Regards,
Alaa