diff options
author | FreeArtMan <dos21h@gmail.com> | 2015-12-21 20:50:21 +0000 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2015-12-21 20:50:21 +0000 |
commit | 45d3c1d6287f8e2272436ed99109ff5dd1774254 (patch) | |
tree | b1630a7375e397a5fe4f29e480c04144cb52c032 /md/writeup/kconf2h.md | |
parent | 45f9bdfb904149e0048bcbd4de208232d0a81da8 (diff) | |
download | md-content-45d3c1d6287f8e2272436ed99109ff5dd1774254.tar.gz md-content-45d3c1d6287f8e2272436ed99109ff5dd1774254.zip |
Added project pages
Diffstat (limited to 'md/writeup/kconf2h.md')
-rw-r--r-- | md/writeup/kconf2h.md | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/md/writeup/kconf2h.md b/md/writeup/kconf2h.md new file mode 100644 index 0000000..41f573d --- /dev/null +++ b/md/writeup/kconf2h.md @@ -0,0 +1,69 @@ +# kconf2h - kernel config transltion to C headers + +Kernel menuconfig is cool way how to configure files and enable/disable some +flag/constants inside source here is small tool that converts files like + +```text +CONFIG_CORE=y +CONFIG_OS_LINUX=y +# CONFIG_OS_NETBSD is not set +# CONFIG_FUTURE is not set +CONFIG_DRAW=y +CONFIG_GL=y +CONFIG_SDL2=y +CONFIG_TUI=y +CONFIG_HW=y +CONFIG_HW_LIB_ORIG=y +# CONFIG_HW_LIB_R820T is not set +CONFIG_HW_ALSA=y +# CONFIG_HW_NO_AUDIO is not set +CONFIG_MOD=y +CONFIG_MOD_FM_DEMOD=y +# CONFIG_PROTO is not set +``` + +to just c headers + +```text +#define CONFIG_CORE +#define CONFIG_OS_LINUX +#define CONFIG_DRAW +#define CONFIG_GL +#define CONFIG_SDL2 +#define CONFIG_TUI +#define CONFIG_HW +#define CONFIG_HW_LIB_ORIG +#define CONFIG_HW_ALSA +#define CONFIG_MOD +#define CONFIG_MOD_FM_DEMOD +``` + +doesnt support anything else except yes/no + +## Tested + +| OS | Arch | +|---|---| +| Linux | 32/64bit intel | + +## Source + +``` +git clone http://git.main.lv/cgit.cgi/kconfig2h.git +``` + +or + +``` +git clone https://github.com/FreeArtMan/kconfig2h.git +``` + +## Compile + +just + +``` +make +``` + +should be enought
\ No newline at end of file |