Issue 0090

Summary
Can't use override-func in board file
Owner
Tim
Reporter
Tim
Status
open
Priority
high
Version
1.5.10
Subsystem
ftc and core
Tags
overlay, ovgen

Description [edit section]

ftc query-board can parse an override-func from a board file, but ovgen.py cannot.

You get the following:

Add the following to bbb.board:

override_func ov_rootfs_sync() {
    cmd "sync" || abort_job "Unable to flush buffers on target"
    cmd "date $(date +%m%d%H%M%Y.%S)"
}

And ovgen generates the following error: (adjust OF_DEBUG_ARGS in scripts/overlay.sh)

Notes [edit section]

The implementation of ovgen.py is needlessly complicated. Maybe an ovgen2.py could be written which does the same thing, using code from ftc (that was written for query-board).

See ftc functions: get_board_vars() and parse_shell_file()

Note that these function don't do test variables, just board variables with overrides.

backlink

Fuego Issues List