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

Fix OpenAMP building with newlib #14203

Merged
merged 2 commits into from
Mar 11, 2019
Merged

Conversation

galak
Copy link
Collaborator

@galak galak commented Mar 8, 2019

There are 2 different issues we run into when trying to build with newlib. One was with C11 Atomic's and was a bug in libmetal, we got that fixed in upstream libmetal and updated to the fixed version. The second issue is with fcntl which we just need to not enable WITH_PROXY support to fix.

@galak
Copy link
Collaborator Author

galak commented Mar 8, 2019

This should fix the issue in #8104

@galak galak added the bug The issue is a bug, or the PR is fixing a bug label Mar 8, 2019
@galak galak added this to the v1.14.0 milestone Mar 8, 2019
@zephyrbot
Copy link
Collaborator

zephyrbot commented Mar 8, 2019

Found the following issues, please fix and resubmit:

License issues

In most cases you do not need to do anything here, especially if the files
reported below are going into ext/ and if license was approved for inclusion
into ext/ already. Fix any missing license/copyright issues. The license
exception if a JFYI for the maintainers and can be overriden when merging the
pull request.

  • ext/hal/libmetal/libmetal/lib/irq.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/irq_controller.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/softirq.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/softirq.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/processor/ceva/cpu.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/processor/csky/cpu.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/processor/riscv/cpu.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/freertos/xlnx_common/irq.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/freertos/xlnx_common/sys.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/generic/xlnx_common/irq.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/generic/xlnx_common/sys.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/alloc.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/assert.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/cache.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/condition.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/condition.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/device.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/init.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/io.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/io.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/irq.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/irq.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/log.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/mutex.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/shmem.c is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/sleep.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/sys.h is not apache-2.0 licensed: bsd-new
  • ext/hal/libmetal/libmetal/lib/system/nuttx/time.c is not apache-2.0 licensed: bsd-new

galak added 2 commits March 8, 2019 11:21
Pull in libmetal SHA 59a10acbb0bb684c1a75488f11878cb984170c81 to get
some build fixes related to newlib.

Signed-off-by: Kumar Gala <[email protected]>
If we enable newlib we run into an issue with fcntl.h and the openamp
proxy support.  We don't utilize the proxy support so just disable it by
default.

Signed-off-by: Kumar Gala <[email protected]>
@codecov-io
Copy link

Codecov Report

Merging #14203 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14203   +/-   ##
=======================================
  Coverage   52.68%   52.68%           
=======================================
  Files         307      307           
  Lines       45473    45473           
  Branches    10530    10530           
=======================================
  Hits        23956    23956           
  Misses      16640    16640           
  Partials     4877     4877

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10bdc2a...46a8e8e. Read the comment docs.

@galak galak merged commit 72af04b into zephyrproject-rtos:master Mar 11, 2019
@galak galak deleted the openamp-fix branch March 11, 2019 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants