commit | d74c461e6dffab200ea5e14f532822976a91a6b0 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Sep 06 20:27:08 2022 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Sep 29 16:09:56 2022 -0400 |
tree | 2665b1f5aaf1519c9600694ff0be67da23e9de58 | |
parent | 8ae9f96ee9ca10e72ba40209109e04600a0d6615 [diff] |
sandbox: Add a function to load a relative file path At present this implementation is specific to loading the test FDT. We plan to load others, so create a generic function to handle this. The path is now limited to 256 characters, to simplify the code. When there is an empty argv[0] (which should not happen), the function now just uses the path as is, with no prefix. Signed-off-by: Simon Glass <sjg@chromium.org>