scripts/config: support includes relative to the currently processed file
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 12 Dec 2014 12:29:58 +0000 (12:29 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 12 Dec 2014 12:29:58 +0000 (12:29 +0000)
commit2f39014a4843f801e6fdc2ebd77b5523cb38f4b3
treeb90945e205d34d3edfb7fe47995b43b8b83aa2a0
parentf34dfaf2495d9585210303265af572576553e954
scripts/config: support includes relative to the currently processed file

When the initial glob() attempt on a path specified with "source" statement
yields no result, then retry the globbing on the same path with the directory
part of the currently processed file prepended.

This allows us to reference Config.in files relative to their parent instead
of relative to the top dir.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 43652
scripts/config/zconf.l
scripts/config/zconf.lex.c_shipped