Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1#!/usr/bin/make -f
2# SPDX-License-Identifier: GPL-2.0-only
3
4include debian/rules.vars
5
6srctree ?= .
7
8ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS))))
9 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
10 MAKEFLAGS += -j$(NUMJOBS)
11endif
12
13.PHONY: binary binary-indep binary-arch
14binary: binary-arch binary-indep
15binary-indep: build-indep
16binary-arch: build-arch
17 $(MAKE) -f $(srctree)/Makefile ARCH=$(ARCH) \
18 KERNELRELEASE=$(KERNELRELEASE) \
19 run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb
20
21.PHONY: build build-indep build-arch
22build: build-arch build-indep
23build-indep:
24build-arch:
25 $(MAKE) -f $(srctree)/Makefile ARCH=$(ARCH) \
26 KERNELRELEASE=$(KERNELRELEASE) \
27 $(shell $(srctree)/scripts/package/deb-build-option) \
28 olddefconfig all
29
30.PHONY: clean
31clean:
32 rm -rf debian/files debian/linux-*
33 $(MAKE) -f $(srctree)/Makefile ARCH=$(ARCH) clean