After a bit more digging here's a quick update.
According to this thread:
We can get a list of the available examples using:
./waf list | grep examples/
which (leaving out most of the list) reveals:
Smashing, and so following the instructions on thread 4931
./waf --targets examples/UART_Test --upload
Waf: Entering directory
Waf: Leaving directory
Could not find a task generator for the name 'examples/UART_Test'
Next I tried another example:
./waf --targets examples/AHRS_Test --upload
This built and loaded OK ending with:
Build directory: /home/martin/ardupilot/build/px4-v2
Target Text Data BSS Total
examples/AHRS_Test 551664 2764 49112 603540
The ELF files are pointed by the path in the "Target" column. The .px4 files are in
the same directory of their corresponding ELF files.
Binary Text Data BSS Total
px4-extra-files/px4io 41800 584 3018 45402
Build commands will be stored in build/px4-v2/compile_commands.json
'build' finished successfully (22.999s)
So I'm off to figure out how to build the missing script.
Hope this is useful to someone.
Keep up the good work.