Skip to content

Question - How to remove default shared-modules from build #2035

@chaintuts

Description

@chaintuts

Hi all,

I'm trying to add a custom module that generates Bitcoin addresses to a CircuitPython build. I am building off of the 4.1.x branch.

However, I'm overflowing the available FLASH space by about 44KB

/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: build-circuitplayground_express/firmware.elf section `.text' will not fit in region `FLASH'
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 44412 bytes
collect2: error: ld returned 1 exit status
Makefile:326: recipe for target 'build-circuitplayground_express/firmware.elf' failed
make: *** [build-circuitplayground_express/firmware.elf] Error 1

I'm trying to trim down my code as much as possible, but even removing some unused functions didn't change the amount I'm going over.

I'd like to know how to remove some of the builtins I won't use from the build. I'm having trouble finding anywhere in the atmel-samd makefile or config files that would allow me to remove modules I don't want.

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