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

drivers/mtd_flashpage: Should fail on compilation if slot_aux is used while feature is not present #20557

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FlapKap
Copy link
Contributor

@FlapKap FlapKap commented Apr 8, 2024

Contribution description

since CONFIG_SLOT_AUX_LEN is only supported on platforms where MODULE_PERIPH_FLASHPAGE_AUX is provided, it should also only successfuly compile on those platforms. Thats not the case right now, as there only is a check if CONFIG_SLOT_AUX_LEN is defined. This PR makes sure we fail the compilation if we have CONFIG_SLOT_AUX_LEN without MODULE_PERIPH_FLASHPAGE_AUX

Testing procedure

Compile the tests/drivers/mtd_flashpage without the #ifdef MODULE_PERIPH_FLASHPAGE_AUXs and check that it fails

Issues/PRs references

@github-actions github-actions bot added the Area: drivers Area: Device drivers label Apr 8, 2024
@kfessel kfessel added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants