Skip to content

Ensure options are passed to packbeam when calling esp32_flash #65

@pguyot

Description

@pguyot

La Machine requires -p and -e with atomvmlib.avm.

The following sequence works:

rebar3 atomvm packbeam -p -e /Users/paul/Projets/AtomVM/AtomVM/build/libs/atomvmlib.avm
rebar3 atomvm esp32_flash -o 0x130000 -p /dev/cu.usbmodem12345

But if rebar3 atomvm esp32_flash -o 0x130000 -p /dev/cu.usbmodem12345 is called and dependency resolution will yield a new compilation, packbeam will be invoked without -e and -p and the resulting avm file will lack important modules.

We should instead be able to do something like:

rebar3 atomvm esp32_flash -o 0x130000 -p /dev/cu.usbmodem12345 --prune -e /Users/paul/Projets/AtomVM/AtomVM/build/libs/atomvmlib.avm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions