Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

automatically load conffiles #725

Closed
barbieri opened this issue Sep 15, 2015 · 1 comment
Closed

automatically load conffiles #725

barbieri opened this issue Sep 15, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@barbieri
Copy link

We should have a standard lookup paths to load configuration files from, such as the name of the current application (binary or the FBP name if using sol-fbp-runner or sol-fbp-generator), as well as use the board name as in sol_platform_get_board_name().

An idea is the following (from highest to lowest priority):

  • envvar $SOL_FLOW_MODULE_RESOLVER_CONFFILE
  • ./sol-flow-$APPNAME-$BOARD_NAME.json
  • $PKGSYSCONFDIR/sol-flow-$APPNAME-$BOARD_NAME.json
  • ./sol-flow-$APPNAME.json
  • $PKGSYSCONFDIR/sol-flow-$APPNAME.json
  • ./sol-flow.json
  • $PKGSYSCONFDIR/sol-flow.json

Please add proper SOL_DBG() before trying to load each component so it's easy to debug which file is being used and those that failed (didn't exist or failed to load).

@barbieri barbieri added the task label Sep 15, 2015
@barbieri barbieri added this to the v1 milestone Sep 15, 2015
@dorileo
Copy link
Contributor

dorileo commented Sep 25, 2015

implemented on 6ffdd6b

@dorileo dorileo closed this as completed Sep 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants