Makefile.package (a64c0440dda1fff1fb5723140828983d0ca821d4) | Makefile.package (af7db99a1caf29b05a81bfee596b9d2778eb7e39) |
---|---|
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 5 6# RPM target 7# --------------------------------------------------------------------------- 8# The rpm target generates two rpm files: --- 89 unchanged lines hidden (view full) --- 98 s@SRCTREE@$(shell realpath $(KERNELPATH).tar.gz)@" \ 99 $(srctree)/scripts/package/snapcraft.template > \ 100 $(objtree)/snap/snapcraft.yaml 101 cd $(objtree)/snap && \ 102 snapcraft --target-arch=$(UTS_MACHINE) 103 104# tarball targets 105# --------------------------------------------------------------------------- | 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 5 6# RPM target 7# --------------------------------------------------------------------------- 8# The rpm target generates two rpm files: --- 89 unchanged lines hidden (view full) --- 98 s@SRCTREE@$(shell realpath $(KERNELPATH).tar.gz)@" \ 99 $(srctree)/scripts/package/snapcraft.template > \ 100 $(objtree)/snap/snapcraft.yaml 101 cd $(objtree)/snap && \ 102 snapcraft --target-arch=$(UTS_MACHINE) 103 104# tarball targets 105# --------------------------------------------------------------------------- |
106tar-pkgs := tar-pkg targz-pkg tarbz2-pkg tarxz-pkg | 106tar-pkgs := dir-pkg tar-pkg targz-pkg tarbz2-pkg tarxz-pkg |
107PHONY += $(tar-pkgs) 108$(tar-pkgs): 109 $(MAKE) -f $(srctree)/Makefile 110 +$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ 111 112# perf-pkg - generate a source tarball with perf source 113# --------------------------------------------------------------------------- 114 --- 28 unchanged lines hidden (view full) --- 143PHONY += help 144help: 145 @echo ' rpm-pkg - Build both source and binary RPM kernel packages' 146 @echo ' binrpm-pkg - Build only the binary kernel RPM package' 147 @echo ' deb-pkg - Build both source and binary deb kernel packages' 148 @echo ' bindeb-pkg - Build only the binary kernel deb package' 149 @echo ' snap-pkg - Build only the binary kernel snap package' 150 @echo ' (will connect to external hosts)' | 107PHONY += $(tar-pkgs) 108$(tar-pkgs): 109 $(MAKE) -f $(srctree)/Makefile 110 +$(CONFIG_SHELL) $(srctree)/scripts/package/buildtar $@ 111 112# perf-pkg - generate a source tarball with perf source 113# --------------------------------------------------------------------------- 114 --- 28 unchanged lines hidden (view full) --- 143PHONY += help 144help: 145 @echo ' rpm-pkg - Build both source and binary RPM kernel packages' 146 @echo ' binrpm-pkg - Build only the binary kernel RPM package' 147 @echo ' deb-pkg - Build both source and binary deb kernel packages' 148 @echo ' bindeb-pkg - Build only the binary kernel deb package' 149 @echo ' snap-pkg - Build only the binary kernel snap package' 150 @echo ' (will connect to external hosts)' |
151 @echo ' dir-pkg - Build the kernel as a plain directory structure' |
|
151 @echo ' tar-pkg - Build the kernel as an uncompressed tarball' 152 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball' 153 @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball' 154 @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball' 155 @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball' 156 @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball' 157 @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball' 158 @echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball' 159 160.PHONY: $(PHONY) | 152 @echo ' tar-pkg - Build the kernel as an uncompressed tarball' 153 @echo ' targz-pkg - Build the kernel as a gzip compressed tarball' 154 @echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball' 155 @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball' 156 @echo ' perf-tar-src-pkg - Build $(perf-tar).tar source tarball' 157 @echo ' perf-targz-src-pkg - Build $(perf-tar).tar.gz source tarball' 158 @echo ' perf-tarbz2-src-pkg - Build $(perf-tar).tar.bz2 source tarball' 159 @echo ' perf-tarxz-src-pkg - Build $(perf-tar).tar.xz source tarball' 160 161.PHONY: $(PHONY) |