You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2022/04/09 23:28:33 UTC

[incubator-nuttx] branch master updated: Make top Make.defs symlink to board Make.defs instead

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c4e2d88e6b Make top Make.defs symlink to board Make.defs instead
c4e2d88e6b is described below

commit c4e2d88e6b2deaa76ac50f2aff6f69bb725e8bb9
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Wed Jul 28 16:42:41 2021 +0800

    Make top Make.defs symlink to board Make.defs instead
    
    Symlink to board Make.defs for top Make.defs, so top Make.defs
    syncs in realtime.
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 tools/configure.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/configure.sh b/tools/configure.sh
index 793c0c95af..e0dd40b7aa 100755
--- a/tools/configure.sh
+++ b/tools/configure.sh
@@ -268,8 +268,8 @@ fi
 # Okay... Everything looks good.  Setup the configuration
 
 echo "  Copy files"
-install -m 644 ${src_makedefs} "${dest_makedefs}" || \
-  { echo "Failed to copy ${src_makedefs}" ; exit 8 ; }
+ln -sf ${src_makedefs} ${dest_makedefs} || \
+  { echo "Failed to symlink ${src_makedefs}" ; exit 8 ; }
 install -m 644 ${src_config} "${dest_config}" || \
   { echo "Failed to copy ${src_config}" ; exit 9 ; }
 install -m 644 ${src_config} "${backup_config}" || \