mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-20 17:22:53 +00:00
fix headers_install so that it does not corrupt the linux build tree #304
This commit is contained in:
parent
ef677fc3f2
commit
6b8dc76ae8
@ -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) \
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user