Skip to content

sys/riotboot: extend Makefile.include include to riotboot feature#11203

Closed
kaspar030 wants to merge 1 commit intoRIOT-OS:masterfrom
kaspar030:fix_riotboot_makefile_include
Closed

sys/riotboot: extend Makefile.include include to riotboot feature#11203
kaspar030 wants to merge 1 commit intoRIOT-OS:masterfrom
kaspar030:fix_riotboot_makefile_include

Conversation

@kaspar030
Copy link
Copy Markdown
Contributor

Contribution description

#11181 broke riotboot compiles that don't use any of its modules (See this comment).

The reason was a move of some riotboot variables (SLOTx_OFFSET) into the module's Makefile.include, as it was needed there. Defining it in makefiles/boot/riotboot.inc.mk was too late.
riotboot's Makefile.include was only included based on whether any riotboot module was compiled in.

This PR extends that to also include the file if the riotboot feature is used.

Testing procedure

Try FEATURES_REQUIRED+=riotboot BOARD=samr21-xpro make -C examples/hello-world/ riotboot/flash on master. It fails.

Try with this PR, it should succeed.

Issues/PRs references

#11181

@kaspar030 kaspar030 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Area: OTA Area: Over-the-air updates labels Mar 18, 2019
@kaspar030 kaspar030 requested a review from cladmi March 18, 2019 20:36
@cladmi
Copy link
Copy Markdown
Contributor

cladmi commented Mar 19, 2019

This still does not restore the previous behavior. Doing FEATURES_REQUIRED+=riotboot BOARD=samr21-xpro make -C examples/hello-world/ riotboot/flash defines additional global undocumented/unnamespaced macros. They were kept private for a reason.

@stale
Copy link
Copy Markdown

stale bot commented Sep 20, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

@stale stale bot added the State: stale State: The issue / PR has no activity for >185 days label Sep 20, 2019
@stale stale bot closed this Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OTA Area: Over-the-air updates CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR State: stale State: The issue / PR has no activity for >185 days Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants