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)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 10 Feb 2019 21:15:40 +0000 (22:15 +0100)
commitbee1f6ef5c608d96bee9504492815982ba616ef7
tree09de1ea99d726d2e219bf3f4df01b2d0c20d6c4f
parent0a4078c88712401b4ce8fbbe964ea6a70216d597
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>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
config/confdata.c