Skip to content

net/credman : Expose configurations to Kconfig#14513

Merged
leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_credman
Jul 15, 2020
Merged

net/credman : Expose configurations to Kconfig#14513
leandrolanzieri merged 3 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_credman

Conversation

@akshaim
Copy link
Copy Markdown
Member

@akshaim akshaim commented Jul 14, 2020

Contribution description

This PR exposes compile configurations in net/credman to Kconfig.

Testing procedure

  1. New documentation was built using Doxygen

    The build works fine.

  2. Test files were added to tests/credman/

    The test file can be found here

Compiled binaries for native

Default State:

Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-29-gd4596-Kconfig_credman_tests)
CONFIG_CREDMAN_MAX_CREDENTIALS=(2)

Usage with CFLAGS :

CFLAGS += -DCONFIG_CREDMAN_MAX_CREDENTIALS=3
Firmware Output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-29-gd4596-Kconfig_credman_tests)
CONFIG_CREDMAN_MAX_CREDENTIALS=3

Usage with menuconfig :

make menuconfig

Default values

RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-29-gd4596-Kconfig_credman_tests)
CONFIG_CREDMAN_MAX_CREDENTIALS=2
Macros Configured output
RIOT native interrupts/signals initialized.
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.

main(): This is RIOT! (Version: 2020.10-devel-29-gd4596-Kconfig_credman_tests)
CONFIG_CREDMAN_MAX_CREDENTIALS=4

MACROS were successfully configured.

Issues/PRs references

#12888

@miri64 miri64 added Area: Kconfig Area: Kconfig integration Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation labels Jul 14, 2020
@leandrolanzieri leandrolanzieri added this to the Release 2020.10 milestone Jul 15, 2020
@leandrolanzieri leandrolanzieri added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines labels Jul 15, 2020
Copy link
Copy Markdown
Contributor

@leandrolanzieri leandrolanzieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The macro is generated correctly and the documentation displays fine. ACK.

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

Labels

Area: Kconfig Area: Kconfig integration CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants