kconfig: split out useful helpers in confdata.c
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 20 Jul 2018 07:46:27 +0000 (16:46 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 25 Jul 2018 14:25:29 +0000 (23:25 +0900)
commit0608182ad54293f6f617c1cc9fb34467db5515c7
treea8283bd6d7c410f7940b23e52dbc47e8eb08456e
parenta2ff4040151ace5be20e4de34220468b9e842e4d
kconfig: split out useful helpers in confdata.c

Split out helpers:
 is_present() - check if the given path exists
 is_dir() - check if the given path exists and it is a directory
 make_parent_dir() - create the parent directories of the given path

These helpers will be reused in later commits.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/confdata.c