PeakSat / minimal-dev-setup

2 stars 0 forks source link

Add option to customize startup file and linker script #5

Closed lightspot21 closed 2 months ago

lightspot21 commented 5 months ago

The Harmony framework (specifically the DFP) includes default linker scripts and startup files for each of the major compilers. However, downstream project may need customization (e.g. if MPU is enabled, regions must be specified).

When writing the CMake integration for Harmony, allow (maybe with a find_package option) users to specify custom linker script or startup file, overriding the default one.

lightspot21 commented 2 months ago

DFP default linker scripts/startup files are exposed as CMake components, allowing easy opt-in. Users can explicitly pull the linker script required via linking against the relevant targets (see README) of the CMakeLists.txt file.