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

Clean up lwIP build file #7790

Merged
merged 1 commit into from
Jun 21, 2021

Conversation

mspang
Copy link
Contributor

@mspang mspang commented Jun 21, 2021

Problem

The lwIP build file is specifying some configuration options on the
compiler command line. This seemed like a decent way to validate the list
of source files compiled matched the preprocessor configuration, however
this isn't actually necessary - turning off most options like IPV4 just
empties out all of the IPV4 specific files.

Change overview

  • Use lwipopts.h exclusively for #defines
  • Match the defaults to those from lwip/opt.h
  • Remove examples as they are not needed

Testing

  • Check defines via gn gen --root-target=//examples/lighting-app/efr32 --args='import("//examples/lighting-app/efr32/args.gni") target_os="freertos" target_cpu="arm" efr32_board="BRD4161A"' out/efr32_lighting_app && gn desc out/efr32_lighting_app //src/lib defines

- Use lwipopts.h exclusively for #defines
- Match the defaults to those from lwip/opt.h
- Remove examples as they are not needed
@andy31415 andy31415 merged commit e1c64e3 into project-chip:master Jun 21, 2021
nikita-s-wrk pushed a commit to nikita-s-wrk/connectedhomeip that referenced this pull request Sep 23, 2021
- Use lwipopts.h exclusively for #defines
- Match the defaults to those from lwip/opt.h
- Remove examples as they are not needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants