Commit 42ef6370 authored by Ben Hutchings's avatar Ben Hutchings

linux-headers: Change per-flavour Makefile to match upstream out-of-tree builds

Ideally we would run mkmakefile here, but that embeds its own
absolute filename, which we want to avoid for reproducibility.

However, all that's needed now is a single "include".  The top-level
Makefile uses $(CURDIR) and its own filename from $(MAKEFILE_LIST)
to work out the rest.
parent 76687b21
......@@ -6,6 +6,8 @@ linux (5.3~rc2-1~exp1) UNRELEASED; urgency=medium
* aufs: Update support patchset to aufs5.x-rcN 20190805
* [rt] Disable until it is updated for 5.3 or later
* [powerpcspe] Remove all support for powerpcspe, which is dead upstream
* linux-headers: Change per-flavour Makefile to match upstream out-of-tree
builds
-- Ben Hutchings <ben@decadent.org.uk> Mon, 05 Aug 2019 12:40:36 +0100
......
......@@ -339,21 +339,7 @@ install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR): $(STAMPS_DIR)/build_$(ARCH)_$(
cp -a $(SOURCE_DIR)/arch/$(KERNEL_ARCH)/lib/crtsavres.o $(DIR)/arch/$(KERNEL_ARCH)/lib; \
fi
@echo 'VERSION = 2' > $(DIR)/Makefile
@echo 'PATCHLEVEL = 6' >> $(DIR)/Makefile
@echo 'MAKEARGS := -C $(BASE_DIR_COMMON) O=$(BASE_DIR)' >> $(DIR)/Makefile
@echo 'MAKEFLAGS += --no-print-directory' >> $(DIR)/Makefile
@echo '.PHONY: all $$(MAKECMDGOALS)' >> $(DIR)/Makefile
@echo 'cmd := $$(filter-out all Makefile,$$(MAKECMDGOALS))' >> $(DIR)/Makefile
@echo 'all:' >> $(DIR)/Makefile
@echo ' @$$(MAKE) $$(MAKEARGS) $$(cmd)' >> $(DIR)/Makefile
@echo 'Makefile:;' >> $(DIR)/Makefile
@echo '$$(cmd): all' >> $(DIR)/Makefile
@echo ' @:' >> $(DIR)/Makefile
@echo '%/: all' >> $(DIR)/Makefile
@echo ' @:' >> $(DIR)/Makefile
@echo 'include $(BASE_DIR_COMMON)/Makefile' >> $(DIR)/Makefile
dh_link /usr/lib/$(PACKAGE_NAME_KBUILD)/scripts $(BASE_DIR)/scripts
dh_link /usr/lib/$(PACKAGE_NAME_KBUILD)/tools $(BASE_DIR)/tools
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment