Makefile.package (de80193308f43d3ae52cd3561e8ba77cd1437311) | Makefile.package (ffa46bbc5892ebba8a95c839dc302cad7f22c209) |
---|---|
1# SPDX-License-Identifier: GPL-2.0-only 2# Makefile for the different targets used to generate full packages of a kernel 3 4include $(srctree)/scripts/Kbuild.include 5include $(srctree)/scripts/Makefile.lib 6 7KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE)) 8# Include only those top-level files that are needed by make, plus the GPL copy --- 55 unchanged lines hidden (view full) --- 64$(linux-tarballs): archive-args = --prefix=linux/ $$(cat $<) 65$(linux-tarballs): .tmp_HEAD FORCE 66 $(call if_changed,archive) 67 68# rpm-pkg srcrpm-pkg binrpm-pkg 69# --------------------------------------------------------------------------- 70 71quiet_cmd_mkspec = GEN $@ | 1# SPDX-License-Identifier: GPL-2.0-only 2# Makefile for the different targets used to generate full packages of a kernel 3 4include $(srctree)/scripts/Kbuild.include 5include $(srctree)/scripts/Makefile.lib 6 7KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE)) 8# Include only those top-level files that are needed by make, plus the GPL copy --- 55 unchanged lines hidden (view full) --- 64$(linux-tarballs): archive-args = --prefix=linux/ $$(cat $<) 65$(linux-tarballs): .tmp_HEAD FORCE 66 $(call if_changed,archive) 67 68# rpm-pkg srcrpm-pkg binrpm-pkg 69# --------------------------------------------------------------------------- 70 71quiet_cmd_mkspec = GEN $@ |
72 cmd_mkspec = $(srctree)/scripts/package/mkspec > $@ | 72 cmd_mkspec = $(srctree)/scripts/package/mkspec $@ |
73 | 73 |
74kernel.spec: FORCE | 74rpmbuild/SPECS/kernel.spec: FORCE |
75 $(call cmd,mkspec) 76 77PHONY += rpm-sources 78rpm-sources: linux.tar.gz 79 $(Q)mkdir -p rpmbuild/SOURCES 80 $(Q)ln -f linux.tar.gz rpmbuild/SOURCES/linux.tar.gz 81 $(Q)cp $(KCONFIG_CONFIG) rpmbuild/SOURCES/config 82 $(Q)$(srctree)/scripts/package/gen-diff-patch rpmbuild/SOURCES/diff.patch 83 84PHONY += rpm-pkg srcrpm-pkg binrpm-pkg 85 86rpm-pkg: private build-type := a 87srcrpm-pkg: private build-type := s 88binrpm-pkg: private build-type := b 89 90rpm-pkg srcrpm-pkg: rpm-sources | 75 $(call cmd,mkspec) 76 77PHONY += rpm-sources 78rpm-sources: linux.tar.gz 79 $(Q)mkdir -p rpmbuild/SOURCES 80 $(Q)ln -f linux.tar.gz rpmbuild/SOURCES/linux.tar.gz 81 $(Q)cp $(KCONFIG_CONFIG) rpmbuild/SOURCES/config 82 $(Q)$(srctree)/scripts/package/gen-diff-patch rpmbuild/SOURCES/diff.patch 83 84PHONY += rpm-pkg srcrpm-pkg binrpm-pkg 85 86rpm-pkg: private build-type := a 87srcrpm-pkg: private build-type := s 88binrpm-pkg: private build-type := b 89 90rpm-pkg srcrpm-pkg: rpm-sources |
91rpm-pkg srcrpm-pkg binrpm-pkg: kernel.spec 92 +$(strip rpmbuild -b$(build-type) kernel.spec \ | 91rpm-pkg srcrpm-pkg binrpm-pkg: rpmbuild/SPECS/kernel.spec 92 +$(strip rpmbuild -b$(build-type) rpmbuild/SPECS/kernel.spec \ |
93 --define='_topdir $(abspath rpmbuild)' \ 94 $(if $(filter a b, $(build-type)), \ 95 --target $(UTS_MACHINE)-linux --build-in-place --noprep --define='_smp_mflags %{nil}' \ 96 $$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps)) \ 97 $(if $(filter b, $(build-type)), \ 98 --without devel) \ 99 $(RPMOPTS)) 100 --- 174 unchanged lines hidden --- | 93 --define='_topdir $(abspath rpmbuild)' \ 94 $(if $(filter a b, $(build-type)), \ 95 --target $(UTS_MACHINE)-linux --build-in-place --noprep --define='_smp_mflags %{nil}' \ 96 $$(rpm -q rpm >/dev/null 2>&1 || echo --nodeps)) \ 97 $(if $(filter b, $(build-type)), \ 98 --without devel) \ 99 $(RPMOPTS)) 100 --- 174 unchanged lines hidden --- |