I got it. It's not quite as clean as I would like, but it seems to work:
extra script ("mystorm.py"):
# The latter half could possibly be:
# but I haven't tested it.
Once again, remove
,bitmap.o from the end of the
build_flags line in the
build_flags = -Wl,--no-warn-mismatch,bitmap.o
build_flags = -Wl,--no-warn-mismatch
And then add
extra_script = mystorm.py to the
This has a lot less moving parts than my earlier proposed mechanism.
EDIT: still uses the assembly file listed before, and you can still delete the bitmap related files in the root of the project directory.