Skip to content

gnrc/pktbuf : Expose Configurations to Kconfig#14056

Merged
leandrolanzieri merged 4 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_pktbuf
Jun 11, 2020
Merged

gnrc/pktbuf : Expose Configurations to Kconfig#14056
leandrolanzieri merged 4 commits intoRIOT-OS:masterfrom
akshaim:Kconfig_pktbuf

Conversation

@akshaim
Copy link
Copy Markdown
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
Copy Markdown
Contributor

This needs rebasing

@akshaim
Copy link
Copy Markdown
Member Author

akshaim commented May 28, 2020

This needs rebasing

Done

@leandrolanzieri
Copy link
Copy Markdown
Contributor

It seems you are missing one macro rename

CFLAGS += -DGNRC_PKTBUF_SIZE=4096

@akshaim
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Looks good. Please squash

Copy link
Copy Markdown
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
Copy Markdown
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 <leandro.lanzieri@haw-hamburg.de>
@akshaim
Copy link
Copy Markdown
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