Makefile.package (3daee2e4b3568f0ed88b0598df96547fcf21cb9b) Makefile.package (5b000f3cbb38c23992ee95fcd3e983ca66164eff)
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
7# Git
8# ---------------------------------------------------------------------------

--- 127 unchanged lines hidden (view full) ---

136 $(MAKE) clean
137 sed "s@KERNELRELEASE@$(KERNELRELEASE)@; \
138 s@SRCTREE@$(realpath $(srctree))@" \
139 $(srctree)/scripts/package/snapcraft.template > \
140 $(objtree)/snap/snapcraft.yaml
141 cd $(objtree)/snap && \
142 snapcraft --target-arch=$(UTS_MACHINE)
143
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
7# Git
8# ---------------------------------------------------------------------------

--- 127 unchanged lines hidden (view full) ---

136 $(MAKE) clean
137 sed "s@KERNELRELEASE@$(KERNELRELEASE)@; \
138 s@SRCTREE@$(realpath $(srctree))@" \
139 $(srctree)/scripts/package/snapcraft.template > \
140 $(objtree)/snap/snapcraft.yaml
141 cd $(objtree)/snap && \
142 snapcraft --target-arch=$(UTS_MACHINE)
143
144# pacman-pkg
145# ---------------------------------------------------------------------------
146
147PHONY += pacman-pkg
148pacman-pkg:
149 @ln -srf $(srctree)/scripts/package/PKGBUILD $(objtree)/PKGBUILD
150 +BUILDDIR="$(realpath $(objtree))/pacman" \
151 CARCH="$(UTS_MACHINE)" \
152 KBUILD_MAKEFLAGS="$(MAKEFLAGS)" \
153 KBUILD_REVISION="$(shell $(srctree)/scripts/build-version)" \
154 makepkg $(MAKEPKGOPTS)
155
144# dir-pkg tar*-pkg - tarball targets
145# ---------------------------------------------------------------------------
146
147tar-install: FORCE
148 $(Q)$(MAKE) -f $(srctree)/Makefile
149 +$(Q)$(srctree)/scripts/package/buildtar $@
150
151compress-tar.gz = -I "$(KGZIP)"

--- 64 unchanged lines hidden (view full) ---

216 @echo ' rpm-pkg - Build both source and binary RPM kernel packages'
217 @echo ' srcrpm-pkg - Build only the source kernel RPM package'
218 @echo ' binrpm-pkg - Build only the binary kernel RPM package'
219 @echo ' deb-pkg - Build both source and binary deb kernel packages'
220 @echo ' srcdeb-pkg - Build only the source kernel deb package'
221 @echo ' bindeb-pkg - Build only the binary kernel deb package'
222 @echo ' snap-pkg - Build only the binary kernel snap package'
223 @echo ' (will connect to external hosts)'
156# dir-pkg tar*-pkg - tarball targets
157# ---------------------------------------------------------------------------
158
159tar-install: FORCE
160 $(Q)$(MAKE) -f $(srctree)/Makefile
161 +$(Q)$(srctree)/scripts/package/buildtar $@
162
163compress-tar.gz = -I "$(KGZIP)"

--- 64 unchanged lines hidden (view full) ---

228 @echo ' rpm-pkg - Build both source and binary RPM kernel packages'
229 @echo ' srcrpm-pkg - Build only the source kernel RPM package'
230 @echo ' binrpm-pkg - Build only the binary kernel RPM package'
231 @echo ' deb-pkg - Build both source and binary deb kernel packages'
232 @echo ' srcdeb-pkg - Build only the source kernel deb package'
233 @echo ' bindeb-pkg - Build only the binary kernel deb package'
234 @echo ' snap-pkg - Build only the binary kernel snap package'
235 @echo ' (will connect to external hosts)'
236 @echo ' pacman-pkg - Build only the binary kernel pacman package'
224 @echo ' dir-pkg - Build the kernel as a plain directory structure'
225 @echo ' tar-pkg - Build the kernel as an uncompressed tarball'
226 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball'
227 @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball'
228 @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball'
229 @echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball'
230 @echo ' perf-tar-src-pkg - Build the perf source tarball with no compression'
231 @echo ' perf-targz-src-pkg - Build the perf source tarball with gzip compression'

--- 17 unchanged lines hidden ---
237 @echo ' dir-pkg - Build the kernel as a plain directory structure'
238 @echo ' tar-pkg - Build the kernel as an uncompressed tarball'
239 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball'
240 @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball'
241 @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball'
242 @echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball'
243 @echo ' perf-tar-src-pkg - Build the perf source tarball with no compression'
244 @echo ' perf-targz-src-pkg - Build the perf source tarball with gzip compression'

--- 17 unchanged lines hidden ---