Skip to content

Commit

Permalink
scripts/package: allow custom options to rpm
Browse files Browse the repository at this point in the history
Add a RPMOPTS make variable to allow arbitrary options to be passed
to rpm during 'make rpm-pkg'. For example:

 make RPMOPTS="--define '_topdir /home/jk/rpm'" rpm-pkg

Signed-off-by: Jeremy Kerr <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
jk-ozlabs authored and sravnborg committed Dec 3, 2008
1 parent 5dae9a5 commit c39dd50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/package/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ rpm-pkg rpm: $(objtree)/kernel.spec FORCE
set -e; \
mv -f $(objtree)/.tmp_version $(objtree)/.version

$(RPM) --target $(UTS_MACHINE) -ta ../$(KERNELPATH).tar.gz
$(RPM) $(RPMOPTS) --target $(UTS_MACHINE) -ta ../$(KERNELPATH).tar.gz
rm ../$(KERNELPATH).tar.gz

clean-files := $(objtree)/kernel.spec
Expand All @@ -64,7 +64,8 @@ binrpm-pkg: $(objtree)/binkernel.spec FORCE
set -e; \
mv -f $(objtree)/.tmp_version $(objtree)/.version

$(RPM) --define "_builddir $(srctree)" --target $(UTS_MACHINE) -bb $<
$(RPM) $(RPMOPTS) --define "_builddir $(srctree)" --target \
$(UTS_MACHINE) -bb $<

clean-files += $(objtree)/binkernel.spec

Expand Down

0 comments on commit c39dd50

Please sign in to comment.