Skip to content

emb6: allow for warnings to be disabled#8571

Merged
miri64 merged 3 commits intoRIOT-OS:masterfrom
miri64:emb6/fix/disable-warnings
Feb 16, 2018
Merged

emb6: allow for warnings to be disabled#8571
miri64 merged 3 commits intoRIOT-OS:masterfrom
miri64:emb6/fix/disable-warnings

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Feb 15, 2018

Contribution description

Currently, due to the way emb6 is compiled in our build system, it is
not possible to deactivate certain warnings. This fix provides a
solution for that, by building the submodules in the package build step
instead of on their own, similar to how JerryScript is build.

Additionally, I piggy-backed to commits concerning warnings:

  1. emb6: ignore implicit fallthrough errors by GCC 7 (see make: ignore fallthroughs errors with GCC 7.x #8430)
  2. emb6: remove patch to fix warnings and ignore them instead, to make the package easier to maintain in the future (less patches lead to less conflicts when applying those patches)

Issues/PRs references

See https://github.com/RIOT-OS/RIOT/pull/8430/files#r168480449

Currently, due to the way emb6 is compiled in our build system, it is
not possible to deactivate certain warnings. This fix provides a
solution for that, by building the submodules in the package build step
instead of on their own, similar to how JerryScript is build.
This allows for easier maintainance of the package, since smaller
patches lead to less conflicts when applying these patches.
@miri64 miri64 force-pushed the emb6/fix/disable-warnings branch from 5531eb4 to 388d8ab Compare February 15, 2018 18:07
@miri64 miri64 added Area: network Area: Networking GNRC Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: pkg Area: External package ports and removed GNRC labels Feb 15, 2018
@smlng
Copy link
Copy Markdown
Member

smlng commented Feb 15, 2018

nice!

@smlng smlng 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 Feb 15, 2018
@miri64
Copy link
Copy Markdown
Member Author

miri64 commented Feb 15, 2018

Build error looks unrelated...


INCLUDES += -I$(PKG_BUILDDIR)/target
INCLUDES += -I$(RIOTBASE)/pkg/emb6/include
INCLUDES += -I$(EMB6_DIR)/emb6
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are these globally needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, either the application or auto_init (if we ever do that for emb6) need the emb6 headers to bootstrap the stack.

@smlng
Copy link
Copy Markdown
Member

smlng commented Feb 16, 2018

Build error looks unrelated...

yes it is, I was testing some new CI workers (with new packages versions) - didn't work out (yet), removed them again. I'll retrigger murdock ...

@smlng smlng added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Feb 16, 2018
@miri64 miri64 force-pushed the emb6/fix/disable-warnings branch from f39601a to 388d8ab Compare February 16, 2018 10:41
Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

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

looks good to me, tested with GCC 7.2 for arm-none-eabi and GCC 7.3 for AVR both with success.

@miri64 miri64 merged commit 9173447 into RIOT-OS:master Feb 16, 2018
@miri64 miri64 deleted the emb6/fix/disable-warnings branch February 16, 2018 13:45
@jnohlgard jnohlgard mentioned this pull request Feb 19, 2018
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR 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