core: Abstract search_config() into search_dirs()
authorMatt Fleming <matt.fleming@intel.com>
Tue, 13 Mar 2012 12:23:56 +0000 (12:23 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 23 Mar 2012 16:56:16 +0000 (16:56 +0000)
commitcb05ff3e5a6aef2d1da2e4397b08e7eedde8c077
treea6ccab00e2cc9e5838ca325164a873fcb52c633c
parent0105cae269ed2488a2a99f1548740ca99326cc4a
core: Abstract search_config() into search_dirs()

The core currently abuses search_config() in order to locate
ldlinux.c32. The problem with this is that search_config() updates
ConfigName with the realpath of the file on every invocation. If we've
previously set ConfigName search_config() will overwrite this value.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/elflink/load_env32.c
core/fs/iso9660/iso9660.c
core/fs/lib/loadconfig.c
core/fs/lib/searchconfig.c
core/include/fs.h