Lines Matching +full:parallel +full:- +full:out
1 #!/usr/bin/make -f
2 # SPDX-License-Identifier: GPL-2.0-only
9 ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS))))
10 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
11 MAKEFLAGS += -j$(NUMJOBS)
24 revision = $(lastword $(subst -, ,$(shell dpkg-parsechangelog -S Version)))
25 CROSS_COMPILE ?= $(filter-out $(DEB_BUILD_GNU_TYPE)-, $(DEB_HOST_GNU_TYPE)-)
26 make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE) KBUILD_BUILD_VERSION=$(revision) $(addprefi…
28 binary-targets := $(addprefix binary-, image image-dbg headers libc-dev)
30 all-packages = $(shell dh_listpackages)
31 image-package = $(filter linux-image-% user-%, $(filter-out %-dbg, $(all-packages)))
32 image-dbg-package = $(filter %-dbg, $(all-packages))
33 libc-dev-package = $(filter linux-libc-dev, $(all-packages))
34 headers-package = $(filter linux-headers-%, $(all-packages))
36 mk-files = $(patsubst binary-%,debian/%.files,$1)
37 package = $($(@:binary-%=%-package))
42 DH_OPTIONS = -p$(package)
48 …$(Q)+$(MAKE) $(make-opts) run-command KBUILD_RUN_COMMAND='+$$(srctree)/scripts/package/builddeb $(…
53 $(Q)dh_gencontrol $(DH_OPTIONS) -- -f$(call mk-files,$@)
55 $(Q)dh_builddeb $(DH_OPTIONS) -- $(addprefix -Z,$(KDEB_COMPRESS))
58 .PHONY: $(binary-targets)
59 $(binary-targets): build-arch
60 $(Q)truncate -s0 $(call mk-files,$@)
63 .PHONY: binary binary-indep binary-arch
64 binary: binary-arch binary-indep
65 binary-indep: build-indep
66 binary-arch: $(binary-targets)
67 $(Q)cat $(call mk-files,$^) > debian/files
69 .PHONY: build build-indep build-arch
70 build: build-arch build-indep
71 build-indep:
72 build-arch:
73 $(Q)$(MAKE) $(make-opts) olddefconfig
74 $(Q)$(MAKE) $(make-opts) $(if $(filter um,$(ARCH)),,headers) all
79 $(Q)rm -rf debian/deb-env.vars* debian/*.files
83 # directly. Run 'dpkg-architecture --print-set --print-format=make' to
86 include debian/deb-env.vars
88 debian/deb-env.vars:
89 $(Q)dpkg-architecture -a$$(cat debian/arch) --print-set --print-format=make > $@.tmp