This is the menuconfig functionality from linux kernel 4.18 and tests from kbuild tree (kernel/git/mmarek/kbuild.git) extracted into a separate application for POSIX and Windows by cross compiling. It may be built, from the sources provided, using the command sequence:
$ ./configure [--options...] && make
For a list of available configuration options, run:
$ ./configure --help
Fire up your terminal and run the following:
$ export TARGETMACH=x86_64-w64-mingw32
$ export BUILDMACH=x86_64-linux-gnu
$ export CROSS=x86_64-w64-mingw32
$ export CC=${CROSS}-gcc
$ export LD=${CROSS}-ld
$ export AS=${CROSS}-as
$ export PYTHON3=python3
$ wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz
$ tar -pxzf ncurses-6.1.tar.gz
$ cd ./ncurses-6.1
$ ./configure --host=$TARGETMACH --prefix=/usr/x86_64-w64-mingw32 --without-debug --without-ada --enable-overwrite --with-cxx --without-ada --enable-warnings --enable-assertions --disable-home-terminfo --enable-database --enable-sp-funcs --enable-term-driver --enable-interop --disable-termcap --with-progs --enable-pc-files
$ make
$ make install
$ wget https://codeload.github.com/TimothyGu/libgnurx/tar.gz/libgnurx-2.6.1
$ tar -pxzf libgnurx-2.6.1
$ cd libgnurx-libgnurx-2.6.1
$ ./configure --host=$TARGETMACH --prefix=/usr/x86_64-w64-mingw32/
$ make
$ make install
$ wget https://github.com/pechenkin/menuconfig/releases/download/v0.4.18/menuconfig-0.4.18-src.tar.gz
$ tar -pxzf menuconfig-0.4.18.tar.gz
$ cd ./menuconfig-0.4.18
$ ./configure --host=$TARGETMACH
$ make
$ make check
$ wget https://github.com/pechenkin/menuconfig/releases/download/v0.4.18/menuconfig-0.4.18-src.tar.gz
$ tar -pxzf menuconfig-0.4.18.tar.gz
$ cd ./menuconfig-0.4.18
$ ./configure
$ make
$ make check
$ make install