summaryrefslogtreecommitdiff
path: root/tools/make-cmake-config
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-02-25 21:35:50 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-02-25 21:35:50 -0500
commit84830c81c9e0188c840d13b99e077d557f210c21 (patch)
treeecc1c17b0dfec4a3fc4fdc657a4ee4291fddc22b /tools/make-cmake-config
parent76b511c7fecac26e305600f3a2274d1039e62b67 (diff)
feat: Support for menuconfig & genconfig
Support for menuconfig and genconfg as targets in cmake.
Diffstat (limited to 'tools/make-cmake-config')
-rwxr-xr-xtools/make-cmake-config3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/make-cmake-config b/tools/make-cmake-config
new file mode 100755
index 0000000..6fa7ba4
--- /dev/null
+++ b/tools/make-cmake-config
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+cat $1 | awk '{print gensub(/(.*)=(.*)/, "set(\\1 \\2)", 1)}' > "$(dirname $1)/$(basename -s .make $1).cmake"