commit | 73c5cb9dacbcf2e988fffa66750c4206fccc8cbc | [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 | 2b90e0d54efe6e83c9313c863184b71eb811853e [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>