diff options
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r-- | nuttx/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile index 73a6f0a31..e41e9cbb1 100644 --- a/nuttx/Makefile +++ b/nuttx/Makefile @@ -58,7 +58,15 @@ include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig tools/mkconfig $(TOPDIR) > include/nuttx/config.h include/arch: include/nuttx/config.h - ln -sf $(TOPDIR)/$(ARCH_DIR)/include include/arch + @if [ -e include/arch ]; then \ + if [ -h include/arch ]; then \ + rm -f include/arch ; \ + else \ + echo "include/arch exists but is not a symbolic link" ; \ + exit 1 ; \ + fi ; \ + fi + @ln -s $(TOPDIR)/$(ARCH_DIR)/include include/arch context: check_context include/nuttx/config.h include/arch |