]> granicus.if.org Git - esp-idf/commit
mconf-idf: Use same 'simple expand' logic, same as kconfig-frontends
authorAngus Gratton <angus@espressif.com>
Fri, 28 Jun 2019 03:35:55 +0000 (13:35 +1000)
committerbot <bot@espressif.com>
Mon, 1 Jul 2019 00:38:55 +0000 (00:38 +0000)
commitbd699985169ecf44cd957e3832077c79b180760e
tree721a883b987d7c62908fbe0b4632833a132f4c72
parent70474ae844b60aa8b29e5d596308b6e65850d62e
mconf-idf: Use same 'simple expand' logic, same as kconfig-frontends

Previously, wordexp() was used. However for providing Windows builds
of mconf-idf we can't use wordexp() so we use this simplified
environment variable expansion code instead.

The reasoning here is to make the behaviour consistent across Windows
(CMake vs GNU Make), Linux & macOS mconf.
tools/kconfig/Makefile
tools/kconfig/expand_env.c [new file with mode: 0644]
tools/kconfig/expand_env.h [new file with mode: 0644]
tools/kconfig/zconf.l