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

gnrc/pktbuf : Expose Configurations to Kconfig #14056

Merged
merged 4 commits into from
Jun 11, 2020

Conversation

akshaim
Copy link
Member

@akshaim akshaim commented May 11, 2020

Contribution description

This PR exposes compile configurations in PKTBUF GNRC to Kconfig.

Testing procedure

  1. New documentation was built using doxygen

The build works fine.

  1. Test folder and files were introduced to show the macro on Native environment.

Test Files

Default State:

Firmware Output

Default
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.07-devel-507-g579f7-Kconfig_tests)
CONF_GNRC_PKTBUF_SIZE=(6144)

Usage with CFLAGS

/tests/gnrc_pktbuf/Makefile

CFLAGS += -DCONFIG_GNRC_PKTBUF_SIZE=5000

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.07-devel-507-g579f7-Kconfig_tests)
CONF_GNRC_PKTBUF_SIZE=5000

Usage with Kconfig

/tests/gnrc_pktbuf

make menuconfig

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.07-devel-507-g579f7-Kconfig_tests)
CONF_GNRC_PKTBUF_SIZE=8000

Issues/PRs references

#12888
@leandrolanzieri

@leandrolanzieri leandrolanzieri added Area: Kconfig Area: Kconfig integration Area: network Area: Networking Type: new feature The issue requests / The PR implemements a new feature for RIOT labels May 12, 2020
@leandrolanzieri leandrolanzieri added this to the Release 2020.07 milestone May 12, 2020
@leandrolanzieri
Copy link
Contributor

This needs rebasing

sys/net/gnrc/pktbuf/Kconfig Outdated Show resolved Hide resolved
tests/driver_netdev_common/Makefile Outdated Show resolved Hide resolved
sys/net/gnrc/pktbuf/Kconfig Outdated Show resolved Hide resolved
@akshaim
Copy link
Member Author

akshaim commented May 28, 2020

This needs rebasing

Done

@leandrolanzieri
Copy link
Contributor

It seems you are missing one macro rename

CFLAGS += -DGNRC_PKTBUF_SIZE=4096

@akshaim
Copy link
Member Author

akshaim commented Jun 3, 2020

It seems you are missing one macro rename

CFLAGS += -DGNRC_PKTBUF_SIZE=4096

Done. Added guards as well.
Unittests build on native works fine as well.

@leandrolanzieri
Copy link
Contributor

Looks good. Please squash

@akshaim akshaim force-pushed the Kconfig_pktbuf branch 2 times, most recently from f9b0362 to f4af1f2 Compare June 5, 2020 05:30
Copy link
Member

@miri64 miri64 left a comment

Choose a reason for hiding this comment

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

Changes look good to me. Let's move ahead with it.

@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jun 8, 2020
@leandrolanzieri leandrolanzieri dismissed their stale review June 11, 2020 09:05

Comments addressed

@leandrolanzieri
Copy link
Contributor

This needs rebasing

akshaim and others added 4 commits June 11, 2020 14:46
Add compile configuration 'GNRC_PKTBUF_SIZE' to 'net_gnrc_conf'
group
Expose CONF_GNRC_PKTBUF_SIZE to Kconfig
Set Kconfig defaults for CPU and conditions to avoid
conflict with CFLAGS

Co-authored-by: Leandro Lanzieri <[email protected]>
@akshaim
Copy link
Member Author

akshaim commented Jun 11, 2020

This needs rebasing

Done.

@leandrolanzieri leandrolanzieri merged commit 499ffd6 into RIOT-OS:master Jun 11, 2020
@akshaim akshaim deleted the Kconfig_pktbuf branch June 11, 2020 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Kconfig Area: Kconfig integration Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants