Makefile.package (6eabebb1b66c48d830549dbca5952f72307fbd0b) Makefile.package (b44aa8c96e9eea54a42c074c278a8e05e1c231d5)
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
6KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE))
7KBUILD_PKG_ROOTCMD ?="fakeroot -u"
8# Include only those top-level files that are needed by make, plus the GPL copy

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

91debian: FORCE
92 $(call cmd,debianize)
93
94PHONY += debian-orig
95debian-orig: private source = $(shell dpkg-parsechangelog -S Source)
96debian-orig: private version = $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*$$//')
97debian-orig: private orig-name = $(source)_$(version).orig.tar.gz
98debian-orig: linux.tar.gz debian
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
6KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE))
7KBUILD_PKG_ROOTCMD ?="fakeroot -u"
8# Include only those top-level files that are needed by make, plus the GPL copy

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

91debian: FORCE
92 $(call cmd,debianize)
93
94PHONY += debian-orig
95debian-orig: private source = $(shell dpkg-parsechangelog -S Source)
96debian-orig: private version = $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*$$//')
97debian-orig: private orig-name = $(source)_$(version).orig.tar.gz
98debian-orig: linux.tar.gz debian
99 $(Q)cp $< ../$(orig-name)
99 $(Q)if [ "$(df --output=target .. 2>/dev/null)" = "$(df --output=target $< 2>/dev/null)" ]; then \
100 ln -f $< ../$(orig-name); \
101 else \
102 cp $< ../$(orig-name); \
103 fi
100
101PHONY += deb-pkg
102deb-pkg: debian-orig
103 +dpkg-buildpackage -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch) $(DPKG_FLAGS) \
104 --build=source,binary --source-option=-sP -nc -us -uc
105
106PHONY += bindeb-pkg
107bindeb-pkg: debian

--- 87 unchanged lines hidden ---
104
105PHONY += deb-pkg
106deb-pkg: debian-orig
107 +dpkg-buildpackage -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch) $(DPKG_FLAGS) \
108 --build=source,binary --source-option=-sP -nc -us -uc
109
110PHONY += bindeb-pkg
111bindeb-pkg: debian

--- 87 unchanged lines hidden ---