From 8a4bac43a1c8d22c94bb65520a5445cb8d8d9661 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 15 Jun 2017 09:59:32 -0600 Subject: [PATCH] tool/configure will now copy Eclipse project files if they are present in the board directory file --- .gitignore | 4 +++- Makefile.unix | 3 +++ Makefile.win | 3 +++ tools/configure.c | 4 +++- tools/configure.sh | 4 +++- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fd06298905..4095c1a294 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ Make.dep .swp .*.swp core -.gdbinit +/.gdbinit /cscope.* /.config /.config.old @@ -24,5 +24,7 @@ core /*.bin /*.ihx /*.hex +/.cproject +/.project /pcode /tags diff --git a/Makefile.unix b/Makefile.unix index bfdc3c5a8d..cca3c1cd6c 100644 --- a/Makefile.unix +++ b/Makefile.unix @@ -556,6 +556,9 @@ clean: subdir_clean $(call DELFILE, _SAVED_APPS_config) $(call DELFILE, nuttx-export*) $(call DELFILE, nuttx_user*) + $(call DELFILE, .gdbinit) + $(call DELFILE, .cproject) + $(call DELFILE, .project) $(call CLEAN) subdir_distclean: diff --git a/Makefile.win b/Makefile.win index a023c6e013..91a6e66f91 100644 --- a/Makefile.win +++ b/Makefile.win @@ -538,6 +538,9 @@ clean: subdir_clean $(call DELFILE, _SAVED_APPS_config) $(call DELFILE, nuttx-export*) $(call DELFILE, nuttx_user*) + $(call DELFILE, .gdbinit) + $(call DELFILE, .cproject) + $(call DELFILE, .project) $(call CLEAN) subdir_distclean: diff --git a/tools/configure.c b/tools/configure.c index bb3cd9a67d..80c3b3d5cf 100644 --- a/tools/configure.c +++ b/tools/configure.c @@ -100,7 +100,9 @@ static struct variable_s *g_versionvars = NULL; static const char *g_optfiles[] = { - ".gdbinit" + ".gdbinit", + ".cproject", + ".project" }; #define N_OPTFILES (sizeof(g_optfiles) / sizeof(const char *)) diff --git a/tools/configure.sh b/tools/configure.sh index 87af192271..1cae32ae73 100755 --- a/tools/configure.sh +++ b/tools/configure.sh @@ -48,7 +48,9 @@ Where: # A list of optional files that may be installed OPTFILES="\ - .gdbinit + .gdbinit\ + .cproject\ + .project\ " # Parse command arguments