mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-07 01:53:34 +08:00
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 <mattmerhar@protonmail.com> (cherry picked from commit cc76e34c10e57cb1a4f7971268a77aad2f24c8ca)
This commit is contained in:
parent
d5ea756c3e
commit
0b0e97853a
@ -43,7 +43,9 @@ else
|
|||||||
rmdir $(LINUX_DIR); \
|
rmdir $(LINUX_DIR); \
|
||||||
fi
|
fi
|
||||||
ln -s $(CONFIG_EXTERNAL_KERNEL_TREE) $(LINUX_DIR)
|
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
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user