fix headers_install so that it does not corrupt the linux build tree #304

This commit is contained in:
Trammell hudson 2018-02-06 15:56:06 -05:00
parent ef677fc3f2
commit 6b8dc76ae8
Failed to extract signature
2 changed files with 4 additions and 3 deletions

View File

@ -15,10 +15,10 @@ linux_kconfig := $(or $(CONFIG_LINUX_CONFIG),config/linux.config)
# Output directory for the Linux kernel build is based on the
# configuration file name, not the board name
linux_board_dir := $(build)/$(linux_dir)/$(basename $(linux_kconfig))
linux_board_dir := $(build)/$(linux_dir)/$(notdir $(basename $(linux_kconfig)))
# temp file in the build dir to show that we have run make oldconfig
linux_config_file := $(basename $(linux_kconfig))/.config-$(BOARD)
linux_config_file := $(notdir $(basename $(linux_kconfig))/.config-$(BOARD))
linux_configure := \
$(MAKE) \

View File

@ -37,10 +37,11 @@ musl_depends := musl-cross
# Fake a target so that musl will force a header install by the
# Linux kernel sources.
musl.intermediate: $(INSTALL)/include/linux/limits.h
$(INSTALL)/include/linux/limits.h: $(build)/$(linux_dir)/.canary
$(MAKE) \
-C "$(build)/$(linux_dir)" \
INSTALL_HDR_PATH="$(INSTALL)" \
O="$(linux_board_dir)" \
KCONFIG_CONFIG="$(pwd)/$(linux_kconfig)" \
headers_install