Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. From 1282efe390e43a208e33ad83faefde2e58ce0ed7 Mon Sep 17 00:00:00 2001
  2. From: Major Hayden <major@redhat.com>
  3. Date: Tue, 19 Mar 2019 09:27:29 -0500
  4. Subject: [PATCH] Add source RPM package build
  5.  
  6. Some developers use build systems, such as Koji, that accept source RPMs
  7. and compile those packages. This patch adds a quick way for a developer
  8. to generate a basic source RPM from a kernel tree.
  9.  
  10. Signed-off-by: Major Hayden <major@redhat.com>
  11. ---
  12. scripts/package/Makefile | 9 +++++++++
  13. 1 file changed, 9 insertions(+)
  14.  
  15. diff --git a/scripts/package/Makefile b/scripts/package/Makefile
  16. index 2c6de21e5152..8329d6dfe3d8 100644
  17. --- a/scripts/package/Makefile
  18. +++ b/scripts/package/Makefile
  19. @@ -47,6 +47,14 @@ tar -cz $(RCS_TAR_IGNORE) -f $(2).tar.gz \
  20. --transform 's:^:$(2)/:S' $(TAR_CONTENT) $(3); \
  21. rm -f $(objtree)/.scmversion
  22.  
  23. +# srpm-pkg
  24. +# ---------------------------------------------------------------------------
  25. +srpm-pkg: FORCE
  26. + $(MAKE) clean
  27. + $(CONFIG_SHELL) $(MKSPEC) >$(objtree)/kernel.spec
  28. + $(call cmd,src_tar,$(KERNELPATH),kernel.spec)
  29. + +rpmbuild $(RPMOPTS) -ts $(KERNELPATH).tar.gz
  30. +
  31. # rpm-pkg
  32. # ---------------------------------------------------------------------------
  33. rpm-pkg: FORCE
  34. @@ -140,6 +148,7 @@ perf-%pkg: FORCE
  35. help: FORCE
  36. @echo ' rpm-pkg - Build both source and binary RPM kernel packages'
  37. @echo ' binrpm-pkg - Build only the binary kernel RPM package'
  38. + @echo ' srpm-pkg - Build only the source kernel RPM package'
  39. @echo ' deb-pkg - Build both source and binary deb kernel packages'
  40. @echo ' bindeb-pkg - Build only the binary kernel deb package'
  41. @echo ' snap-pkg - Build only the binary kernel snap package (will connect to external hosts)'
  42. --
  43. 2.20.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement