diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2016-09-17 19:13:45 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2016-10-09 15:45:59 +0200 |
| commit | a299a8992cb96575db397122f9e2f82cbb96286e (patch) | |
| tree | af1d1d1a7d8c93acd16f52c0ac91416dde6def86 /gnu | |
| parent | 6c39886a808e5d35bbb8c8311de374222acb2d8b (diff) | |
gnu: Add newlib-nano-arm-none-eabi.
* gnu/packages/embedded.scm (newlib-nano-arm-none-eabi): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/embedded.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index cb4ccdf25a2..24eeef9fa7e 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm | |||
| @@ -139,3 +139,27 @@ systems. It is a conglomeration of several library parts that are easily | |||
| 139 | usable on embedded products.") | 139 | usable on embedded products.") |
| 140 | (license (license:non-copyleft | 140 | (license (license:non-copyleft |
| 141 | "https://www.sourceware.org/newlib/COPYING.NEWLIB")))) | 141 | "https://www.sourceware.org/newlib/COPYING.NEWLIB")))) |
| 142 | |||
| 143 | (define-public newlib-nano-arm-none-eabi | ||
| 144 | (package (inherit newlib-arm-none-eabi) | ||
| 145 | (name "newlib-nano") | ||
| 146 | (arguments | ||
| 147 | (substitute-keyword-arguments (package-arguments newlib-arm-none-eabi) | ||
| 148 | ;; The configure flags are identical to the flags used by the "GCC ARM | ||
| 149 | ;; embedded" project. They optimize newlib for use on small embedded | ||
| 150 | ;; systems with limited memory. | ||
| 151 | ((#:configure-flags flags) | ||
| 152 | ''("--target=arm-none-eabi" | ||
| 153 | "--enable-multilib" | ||
| 154 | "--disable-newlib-supplied-syscalls" | ||
| 155 | "--enable-newlib-reent-small" | ||
| 156 | "--disable-newlib-fvwrite-in-streamio" | ||
| 157 | "--disable-newlib-fseek-optimization" | ||
| 158 | "--disable-newlib-wide-orient" | ||
| 159 | "--enable-newlib-nano-malloc" | ||
| 160 | "--disable-newlib-unbuf-stream-opt" | ||
| 161 | "--enable-lite-exit" | ||
| 162 | "--enable-newlib-global-atexit" | ||
| 163 | "--enable-newlib-nano-formatted-io" | ||
| 164 | "--disable-nls")))) | ||
| 165 | (synopsis "Newlib variant for small systems with limited memory"))) | ||
