Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile - a user extension #371

Open
0xc0170 opened this issue Mar 21, 2016 · 0 comments
Open

Makefile - a user extension #371

0xc0170 opened this issue Mar 21, 2016 · 0 comments

Comments

@0xc0170
Copy link
Member

0xc0170 commented Mar 21, 2016

Makefile template might require adding a user extensions. For instance, there might be additional commands added like merging hex files.

If you look for instance at mbed extensions for their makefiles, you find there

{% block additional_variables %}
SOFTDEVICE = mbed/TARGET_NRF51822/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_softdevice.hex
{% endblock %}

{% block additional_executables %}
SREC_CAT = srec_cat
{% endblock %}

{% block additional_targets %}
merge:
    $(SREC_CAT) $(SOFTDEVICE) -intel $(PROJECT).hex -intel -o combined.hex -intel --line-length=44
{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant