initial configuration problem after moving local files
- Dominant language
- C
- Stars
- 4k
- Forks
- 1.7k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 237
Description
Hello world :-)
I found a problem with initial configuration after some git remote renames and top `nuttxworkspace.git` directory. No clue why exactly :-)
```
% git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
octagon% git pull --all
Fetching origin
Fetching cederom
Already up to date.
% ./tools/configure.sh -E -B sim:nsh
gmake: Entering directory '/XXX/nuttxworkspace.git/nuttx'
tools/Unix.mk:33: /XXX/nuttxworkspace.git/nuttx/Make.defs: No such file or directory
gmake: *** No rule to make target '/XXX/nuttxworkspace.git/nuttx/Make.defs'. Stop.
gmake: Leaving directory '/XXX/nuttxworkspace.git/nuttx'
% gmake distclean
tools/Unix.mk:33: /XXX/nuttxworkspace.git/nuttx/Make.defs: No such file or directory
gmake: *** No rule to make target '/XXX/nuttxworkspace.git/nuttx/Make.defs'. Stop.
% gmake clean
tools/Unix.mk:33: /XXX/nuttxworkspace.git/nuttx/Make.defs: No such file or directory
gmake: *** No rule to make target '/XXX/nuttxworkspace.git/nuttx/Make.defs'. Stop.
% gmake
tools/Unix.mk:33: /XXX/nuttxworkspace.git/nuttx/Make.defs: No such file or directory
gmake: *** No rule to make target '/XXX/nuttxworkspace.git/nuttx/Make.defs'. Stop.
```
* Okay, so the `Make.defs` seems missing:
```
% ls -al Make.defs
lrwxr-xr-x 1 cederom cederom 115 18 lut 23:18 Make.defs -> /XXX/nuttx.git/nuttx/tools/../boards/sim/sim/sim/scripts/Make.defs
```
* Yup, thats the old directory location that does not exist.
* So I have removed the `Make.defs` file.
* `tools/configure.sh` script still complains file is missing.
```
% ./tools/configure.sh -E -B sim:nsh
gmake: Entering directory '/XXX/nuttxworkspace.git/nuttx'
tools/Unix.mk:33: /XXX/nuttxworkspace.git/nuttx/Make.defs: No such file or directory
```
Silly question: How to recreate this file? Isn't that the job of the `tools/configure.sh` script? :-)
I am using `gmake` because on BSD `make` is the BSD make, while `gmake` is the GNU make that NuttX requires. Will try to fix that one day :-)
Contributor guide
Assessment
This issue has not been assessed yet.