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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org