From: Matt Merhar Date: Fri, 26 Feb 2021 04:28:53 +0000 (-0500) Subject: kernel-defaults: fix external kernel build when user_headers is missing X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cc76e34c10e57cb1a4f7971268a77aad2f24c8ca;p=openwrt%2Fstaging%2Flinusw.git kernel-defaults: fix external kernel build when user_headers is missing Use an 'if' so the absence of $(LINUX_DIR)/user_headers doesn't make the line evaluate to false and cause the build to fail. Signed-off-by: Matt Merhar --- diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 82bc32256d..e71746f651 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -43,7 +43,9 @@ 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 + if [ -d $(LINUX_DIR)/user_headers ]; then \ + rm -rf $(LINUX_DIR)/user_headers; \ + fi endef endif