diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-09-12 17:09:53 -0700 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2021-01-09 14:49:48 -0800 |
commit | 09760cbb3b9d79472c1c6803a32128b7fbb161c4 (patch) | |
tree | 5443275911199ad3865c28491de5a350a0ed6be3 /include | |
parent | 2e590a63645a5c89ad752abfe36458dc0f49c739 (diff) | |
download | upstream-09760cbb3b9d79472c1c6803a32128b7fbb161c4.tar.gz upstream-09760cbb3b9d79472c1c6803a32128b7fbb161c4.tar.bz2 upstream-09760cbb3b9d79472c1c6803a32128b7fbb161c4.zip |
kernel-defaults: Delete external source tree user_headers
When we use an external kernel tree which may not have been fully
cleaned, there may be user_headers left which do not match the target
architecture, leading to build failures for packages that do an explicit
inclusion of user_headers (such as iproute2 or iptables). Make sure we
delete them while preparing the directory.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel-defaults.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 863c180e48..6be4cff1f2 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -46,6 +46,7 @@ else rmdir $(LINUX_DIR); \ fi ln -s $(CONFIG_EXTERNAL_KERNEL_TREE) $(LINUX_DIR) + $(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] && rm -rf $(LINUX_DIR)/user_headers endef endif |