mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
kbuild: deb-pkg: factor out common Make options in debian/rules
This avoids code duplication between binary-arch and built-arch. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <n.schier@avm.de>
This commit is contained in:
parent
b88365b6d7
commit
466e6fc43f
@ -10,20 +10,20 @@ ifneq (,$(filter-out parallel=1,$(filter parallel=%,$(DEB_BUILD_OPTIONS))))
|
||||
MAKEFLAGS += -j$(NUMJOBS)
|
||||
endif
|
||||
|
||||
make-opts = ARCH=$(ARCH) KERNELRELEASE=$(KERNELRELEASE)
|
||||
|
||||
.PHONY: binary binary-indep binary-arch
|
||||
binary: binary-arch binary-indep
|
||||
binary-indep: build-indep
|
||||
binary-arch: build-arch
|
||||
$(MAKE) -f $(srctree)/Makefile ARCH=$(ARCH) \
|
||||
KERNELRELEASE=$(KERNELRELEASE) \
|
||||
$(MAKE) -f $(srctree)/Makefile $(make-opts) \
|
||||
run-command KBUILD_RUN_COMMAND=+$(srctree)/scripts/package/builddeb
|
||||
|
||||
.PHONY: build build-indep build-arch
|
||||
build: build-arch build-indep
|
||||
build-indep:
|
||||
build-arch:
|
||||
$(MAKE) -f $(srctree)/Makefile ARCH=$(ARCH) \
|
||||
KERNELRELEASE=$(KERNELRELEASE) \
|
||||
$(MAKE) -f $(srctree)/Makefile $(make-opts) \
|
||||
$(shell $(srctree)/scripts/package/deb-build-option) \
|
||||
olddefconfig all
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user