You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/10/08 02:35:50 UTC

[GitHub] [incubator-nuttx] cederom opened a new issue #4648: NuttX and FreeBSD / BSD

cederom opened a new issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648


   Hello world :-)
   
   My first steps with NuttX on FreeBSD. I will ask some questions here for support and make it working on FreeBSD / BSD Unix :-)
   
   I have also asked that question on mailing list but I prefer to work here closer to the source code and better public reach.
   
   My Target hardware is `ESP32-C3` (using `RISC-V` CPU) `ESP32-C3-MINI-1 / ESP32-C3-DevKitM-1` and/or `ESP32-C3-WROOM-02 / ESP32-C3-DevKitC-02`.
   
   First problem is with `kconfig` package:
   ```
   % ./tools/configure.sh esp32c3-devkit:ble
   Copy files /home/cd/cederom/work/CeDeROM/lab/embedded/nuttx/nuttx.git/nuttx/tools/../tools/sethost.sh:
   line 129: kconfig-tweak: command not found
   ```
   
   There is no such package kconfig on FreeBSD. But I was working with Zephyr KConfig somehow.
   
   All I have is:
   ```
   pkg search -x kconfig
   kf5-kconfig-5.86.0 KF5 widgets for configuration dialogs
   kf5-kconfigwidgets-5.86.0 KF5 widgets for configuration dialogs
   ```
   Both are installed.
   
   Any hints welcome :-)
   Tomek


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-938297153


   **Problem 2: GNU Make vs BSD Make:**
   ```
   (venv38zephyr) make menuconfig
   make: "/(...)/nuttx.git/nuttx/Makefile" line 23: Need an operator
   make: "/(...)/nuttx.git/nuttx/Makefile" line 24: warning: Extra target ignored
   make: "/(...)/nuttx.git/nuttx/Makefile" line 30: Need an operator
   make: "/(...)/nuttx.git/nuttx/Makefile" line 42: Need an operator
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 24: Could not find \Make.defs
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 46: Need an operator
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 48: Need an operator
   (...)
   ```
   
   It works with GNU Make:
   ```
   gmake menuconfig
   LN: include/arch/board to /(...)/nuttx.git/nuttx/boards/risc-v/esp32c3/esp32c3-devkit/include
   gmake[1]: Entering directory '/(...)/nuttx.git/nuttx/boards'
   gmake[1]: Nothing to be done for 'dirlinks'.
   gmake[1]: Leaving directory '/(...)/nuttx.git/nuttx/boards'
   gmake[1]: Entering directory '/(...)/nuttx.git/apps'
   gmake[2]: Entering directory '/(...)/nuttx.git/apps/platform'
   LN: platform/board to /(...)/nuttx.git/apps/platform/dummy
   gmake[2]: Leaving directory '/(...)/nuttx.git/apps/platform'
   gmake[1]: Leaving directory '/(...)/nuttx.git/apps'
   gmake[1]: Entering directory '/(...)/nuttx.git/apps'
   gmake[1]: Nothing to be done for 'preconfig'.
   gmake[1]: Leaving directory '/(...)/nuttx.git/apps'
   /bin/sh: kconfig-mconf: not found
   gmake: *** [tools/Makefile.unix:512: menuconfig] Error 127
   ```
   
   Again `kconfig-mconf` is the blocker. It looks that NuttX is more GNU than Unix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-947063713


   I have provided:
   * `esptools` port update 2.5.1 to 3.1 (adds risc-v support): https://drive.google.com/drive/u/1/folders/1aYs0jERBWCFH9fnEmbKkbbdhM4WvSmPd
   * `kconfig-frontends` port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259256
   * `genromfs` port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259242
   
   Soon NuttX RTOS development should be possible out-of-the box on FreeBSD :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-945220020


   I have managed to build and flash `esp32c3-devkit:ble` on FreeBSD :-) It gets a boot loop problem but the build seem to have worked just the same as on Linux Debian, probably needs some more setup with bootloader :-)
   
   I have tried `./tools/configure.sh -B sim:nsh` but that needs porting `genromfs` to FreeBSD.
   
   `genromfs` was easy peasy :-) I am using upstream version 0.5.7 from https://github.com/chexum/genromfs. Simple patch sent to upstream https://github.com/chexum/genromfs/pull/3 :-)
   
   ```
   0xCFMX4% uname -a
   FreeBSD 0xCFMX4 13.0-STABLE FreeBSD 13.0-STABLE #0 stable/13-n247642-39a1ff43ad7: Tue Oct 12 12:31:41 CEST 2021     root@0xCFMX4:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
   
   0xCFMX4% ls -al nuttx
   -rwxr-xr-x  1 XXX  XXX  1516992 Oct 18 01:41 nuttx
   
   0xCFMX4% ./nuttx
   login: admin
   password:
   User Logged-in!
   
   NuttShell (NSH) NuttX-10.1.0
   MOTD: username=admin password=Administrator
   nsh> uname -a
   NuttX 10.1.0 9cb35d79cc-dirty Oct 18 2021 01:40:26 sim sim
   nsh> ls
   /:
    bin/
    dev/
    etc/
    proc/
    tmp/
   nsh>
   ```
   
   :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-945220020


   I have managed to build and flash `esp32c3-devkit:ble` on FreeBSD :-) It gets a boot loop problem but the build seem to have worked just the same as on Linux Debian, probably needs some more setup with bootloader :-)
   
   I have tried `./tools/configure.sh -B sim:nsh` but that needs porting `genromfs` to FreeBSD.
   
   `genromfs` was easy peasy :-)
   
   I am using upstream version 0.5.7 from https://github.com/chexum/genromfs
   
   ```
   0xCFMX4% uname -a
   FreeBSD 0xCFMX4 13.0-STABLE FreeBSD 13.0-STABLE #0 stable/13-n247642-39a1ff43ad7: Tue Oct 12 12:31:41 CEST 2021     root@0xCFMX4:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
   
   0xCFMX4% ls -al nuttx
   -rwxr-xr-x  1 XXX  XXX  1516992 Oct 18 01:41 nuttx
   
   0xCFMX4% ./nuttx
   login: admin
   password:
   User Logged-in!
   
   NuttShell (NSH) NuttX-10.1.0
   MOTD: username=admin password=Administrator
   nsh> uname -a
   NuttX 10.1.0 9cb35d79cc-dirty Oct 18 2021 01:40:26 sim sim
   nsh> ls
   /:
    bin/
    dev/
    etc/
    proc/
    tmp/
   nsh>
   ```
   
   :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-938297153


   **Problem 2: GNU Make vs BSD Make**
   ```
   (venv38zephyr) make menuconfig
   make: "/(...)/nuttx.git/nuttx/Makefile" line 23: Need an operator
   make: "/(...)/nuttx.git/nuttx/Makefile" line 24: warning: Extra target ignored
   make: "/(...)/nuttx.git/nuttx/Makefile" line 30: Need an operator
   make: "/(...)/nuttx.git/nuttx/Makefile" line 42: Need an operator
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 24: Could not find \Make.defs
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 46: Need an operator
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 48: Need an operator
   (...)
   ```
   
   It works with GNU Make:
   ```
   gmake menuconfig
   LN: include/arch/board to /(...)/nuttx.git/nuttx/boards/risc-v/esp32c3/esp32c3-devkit/include
   gmake[1]: Entering directory '/(...)/nuttx.git/nuttx/boards'
   gmake[1]: Nothing to be done for 'dirlinks'.
   gmake[1]: Leaving directory '/(...)/nuttx.git/nuttx/boards'
   gmake[1]: Entering directory '/(...)/nuttx.git/apps'
   gmake[2]: Entering directory '/(...)/nuttx.git/apps/platform'
   LN: platform/board to /(...)/nuttx.git/apps/platform/dummy
   gmake[2]: Leaving directory '/(...)/nuttx.git/apps/platform'
   gmake[1]: Leaving directory '/(...)/nuttx.git/apps'
   gmake[1]: Entering directory '/(...)/nuttx.git/apps'
   gmake[1]: Nothing to be done for 'preconfig'.
   gmake[1]: Leaving directory '/(...)/nuttx.git/apps'
   /bin/sh: kconfig-mconf: not found
   gmake: *** [tools/Makefile.unix:512: menuconfig] Error 127
   ```
   
   Again `kconfig-mconf` is the blocker. It looks that NuttX is more GNU than Unix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-938300748


   So Zephyr and ESP-IDF uses python library https://github.com/ulfalizer/Kconfiglib. But that does not solve hard references to Linux package in makefiles.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-981618366


   Sure! Thank you! I hope it lands into a release soon :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom closed issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom closed issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-945220020


   I have managed to build and flash `esp32c3-devkit:ble` on FreeBSD :-) It gets a boot loop problem but the build seem to have worked just the same as on Linux Debian, probably needs some more setup with bootloader :-)
   
   I have tried `./tools/configure.sh -B sim:nsh` but that needs porting `genromfs` to FreeBSD.
   
   `genromfs` was easy peasy (simple patch sent to upstream https://github.com/chexum/genromfs/pull/3) :-)
   
   I am using upstream version 0.5.7 from https://github.com/chexum/genromfs
   
   ```
   0xCFMX4% uname -a
   FreeBSD 0xCFMX4 13.0-STABLE FreeBSD 13.0-STABLE #0 stable/13-n247642-39a1ff43ad7: Tue Oct 12 12:31:41 CEST 2021     root@0xCFMX4:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
   
   0xCFMX4% ls -al nuttx
   -rwxr-xr-x  1 XXX  XXX  1516992 Oct 18 01:41 nuttx
   
   0xCFMX4% ./nuttx
   login: admin
   password:
   User Logged-in!
   
   NuttShell (NSH) NuttX-10.1.0
   MOTD: username=admin password=Administrator
   nsh> uname -a
   NuttX 10.1.0 9cb35d79cc-dirty Oct 18 2021 01:40:26 sim sim
   nsh> ls
   /:
    bin/
    dev/
    etc/
    proc/
    tmp/
   nsh>
   ```
   
   :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-938300748


   So Zephyr and ESP-IDF uses python library https://github.com/ulfalizer/Kconfiglib. But that does not solve hard references to Linux package in makefiles.
   
   Can anyone point me to the official `kconfig-frontends` website and source code repository?
   
   I can find 28 repositories on GitHub all seems to be outdated forks: https://github.com/search?q=kconfig-frontends


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-938300748


   So Zephyr and ESP-IDF uses python library https://github.com/ulfalizer/Kconfiglib. But that does not solve hard references to Linux package in makefiles.
   
   Can anyone point me to the official `kconfig-frontends` website and source code repository?
   
   I can find 28 repositories on GitHub all seems to be outdated forks: https://github.com/search?q=kconfig-frontends
   
   Update: I got a hint on mailinglist from @hartmannathan to use `kconfig-frontends` from https://bitbucket.org/nuttx/tools/downloads/ but `kconfig-frontends-4.11.0.1` does not build on FreeBSD:
   
   ```
     CC       libs/parser/libs_parser_libkconfig_parser_la-yconf.lo
   In file included from libs/parser/yconf.c:252:
   libs/parser/hconf.gperf:153:1: error: conflicting types for 'kconf_id_lookup'
   kconf_id_lookup (register const char *str, register unsigned int len)
   ^
   libs/parser/hconf.gperf:12:31: note: previous declaration is here
   static const struct kconf_id *kconf_id_lookup(register const char
   *str, register GPERF_LEN_TYPE len);
                                 ^
   libs/parser/hconf.gperf:40:44: warning: static variable
   'kconf_id_strings_contents' is used in an inline function with
   external linkage [-Wstatic-in-inline]
                 register const char *s = o + kconf_id_strings;
                                              ^
   libs/parser/hconf.gperf:145:43: note: expanded from macro 'kconf_id_strings'
   #define kconf_id_strings ((const char *) &kconf_id_strings_contents)
                                             ^
   libs/parser/hconf.gperf:147:1: note: use 'static' to give inline
   function 'kconf_id_lookup' internal linkage
   ```
   
   I found a modified fork from Expressif at https://github.com/espressif/kconfig-frontends at least it uses CMake but that does not build either:
   ```
   % cmake CMakeLists.txt
   -- The C compiler identification is Clang 11.0.1
   -- The CXX compiler identification is Clang 11.0.1
   -- Detecting C compiler ABI info
   -- Detecting C compiler ABI info - done
   -- Check for working C compiler: /usr/bin/cc - skipped
   -- Detecting C compile features
   -- Detecting C compile features - done
   -- Detecting CXX compiler ABI info
   -- Detecting CXX compiler ABI info - done
   -- Check for working CXX compiler: /usr/bin/c++ - skipped
   -- Detecting CXX compile features
   -- Detecting CXX compile features - done
   CMake Deprecation Warning at cmake/FindGPERF.cmake:74 (cmake_minimum_required):
     Compatibility with CMake < 2.8.12 will be removed from a future version of
     CMake.
   
     Update the VERSION argument <min> value or use a ...<max> suffix to tell
     CMake that the project does not need compatibility with older versions.
   Call Stack (most recent call first):
     libs/parser/CMakeLists.txt:1 (find_package)
   
   
   -- Found GPERF: /usr/local/bin/gperf (found version "3.1")
   -- Found FLEX: /usr/bin/flex (found version "2.6.4")
   -- Found BISON: /usr/local/bin/bison (found version "3.7.6")
   -- Found Intl: /usr/local/lib/libintl.so (found version "0.21.0")
   -- Found libregex: /usr/include
   -- Found Curses: /usr/lib/libcurses.so
   -- Configuring done
   -- Generating done
   -- Build files have been written to: /(...)/nuttx/dependencies/espressif-kconfig-frontends.git
   0xCFMX4% make
   [  6%] Building C object libs/expand_env/CMakeFiles/expand-env.dir/expand_env.c.o
   [ 12%] Linking C static library libexpand-env.a
   [ 12%] Built target expand-env
   [ 18%] [GPERF][hconf] Building hash with gperf 3.1
   [ 18%] Built target hconftarget
   [ 25%] [FLEX][lconf] Building scanner with flex 2.6.4
   [ 25%] Built target lconftarget
   [ 31%] [BISON][yconf] Building parser with bison 3.7.6
   /(...)/nuttx/dependencies/espressif-kconfig-frontends.git/libs/parser/yconf.y:34.1-7: warning: POSIX Yacc does not support %expect [%
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-975207995


   @cederom look like all flaw are fixed, can we close this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-947063713


   I have provided:
   * `esptools` port update 2.5.1 to 3.1: https://drive.google.com/drive/u/1/folders/1aYs0jERBWCFH9fnEmbKkbbdhM4WvSmPd
   * `kconfig-frontends` port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259256
   * `genromfs` port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259242
   
   Soon NuttX RTOS development should be possible out-of-the box on FreeBSD :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-947063713


   I have provided:
   * `esptools` port update 2.5.1 to 3.1 (adds risc-v support on esp32-c3): https://drive.google.com/drive/u/1/folders/1aYs0jERBWCFH9fnEmbKkbbdhM4WvSmPd
   * `kconfig-frontends` port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259256
   * `genromfs` port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259242
   
   Soon NuttX RTOS development should be possible out-of-the box on FreeBSD :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom edited a comment on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom edited a comment on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-938297153


   **Problem 2: GNU Make vs BSD Make**
   ```
   (venv38zephyr) make menuconfig
   make: "/(...)/nuttx.git/nuttx/Makefile" line 23: Need an operator
   make: "/(...)/nuttx.git/nuttx/Makefile" line 24: warning: Extra target ignored
   make: "/(...)/nuttx.git/nuttx/Makefile" line 30: Need an operator
   make: "/(...)/nuttx.git/nuttx/Makefile" line 42: Need an operator
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 24: Could not find \Make.defs
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 46: Need an operator
   make: "/(...)/nuttx.git/nuttx/tools/Makefile.win" line 48: Need an operator
   (...)
   ```
   
   It works with GNU Make:
   ```
   gmake menuconfig
   LN: include/arch/board to /(...)/nuttx.git/nuttx/boards/risc-v/esp32c3/esp32c3-devkit/include
   gmake[1]: Entering directory '/(...)/nuttx.git/nuttx/boards'
   gmake[1]: Nothing to be done for 'dirlinks'.
   gmake[1]: Leaving directory '/(...)/nuttx.git/nuttx/boards'
   gmake[1]: Entering directory '/(...)/nuttx.git/apps'
   gmake[2]: Entering directory '/(...)/nuttx.git/apps/platform'
   LN: platform/board to /(...)/nuttx.git/apps/platform/dummy
   gmake[2]: Leaving directory '/(...)/nuttx.git/apps/platform'
   gmake[1]: Leaving directory '/(...)/nuttx.git/apps'
   gmake[1]: Entering directory '/(...)/nuttx.git/apps'
   gmake[1]: Nothing to be done for 'preconfig'.
   gmake[1]: Leaving directory '/(...)/nuttx.git/apps'
   /bin/sh: kconfig-mconf: not found
   gmake: *** [tools/Makefile.unix:512: menuconfig] Error 127
   ```
   
   Again `kconfig` is the blocker. It looks that NuttX is more GNU than Unix. I was lured by previous BSD license, but it seems it was developed on Linux.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] cederom commented on issue #4648: NuttX and FreeBSD / BSD

Posted by GitBox <gi...@apache.org>.
cederom commented on issue #4648:
URL: https://github.com/apache/incubator-nuttx/issues/4648#issuecomment-945007681


   Quick progress summary:
   * `kconfig-frontends` seem abandoned. There are two forks being used by Debian (based on version 4.11.0.1) [1] and Espressif (based on version 4.6) [2]. Both have some patches applied and diverged: debian branch is 53 commits ahead, 274 commits behind espressif:4.6.x-idf. Debian version seems closer to the original, I have made it build and work on FreeBSD (local testing so far). Espressif version has some more updated created towards ESP32 devices, use CMake for build, build only part of the original package. This project is a critical dependency for NuttX and needs a new repository and maintenance. Debian? Apache? Espressif?
   * Project configuration needed updates in order to work on *BSD, patches are here: https://github.com/apache/incubator-nuttx/pull/4673.
   * RISC-V toolchain is hardcoded in `CROSSDEV` to `riscv64-unknown-elf-`. Some sort of auto-detection of the available Toolchain needs to be implemented. Issue report is here: https://github.com/apache/incubator-nuttx/issues/4674.
   
   So far so good, moving closer to build and run :-)
   
   [1] https://salsa.debian.org/philou/kconfig-frontends
   [2] https://github.com/espressif/kconfig-frontends


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org