Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DIOT Monitoring Module
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
DIOT Monitoring Module
Commits
5701ec04
Commit
5701ec04
authored
3 years ago
by
Christos Gentsos
Browse files
Options
Downloads
Patches
Plain Diff
Utils: update build newlib script to use the GCC assembler
This gets around the setjmp thumb2 issue during compilation.
parent
4a888e53
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/build_newlib.sh
+5
-2
5 additions, 2 deletions
utils/build_newlib.sh
with
5 additions
and
2 deletions
utils/build_newlib.sh
+
5
−
2
View file @
5701ec04
#!/
usr/
bin/bash
#!/bin/bash
# This script uses the current directory to build newlib, installs it
# in ./install/
NEWLIB_SRC_DIR
=
../newlib-3.1.0
AR_FOR_TARGET
=
arm-none-eabi-ar
AM_PROG_CCAS
=
arm-none-eabi-as
LD_FOR_TARGET
=
arm-none-eabi-ld
RANLIB_FOR_TARGET
=
arm-none-eabi-ranlib
CFLAGS_FOR_TARGET
=
"-g -Os -ffunction-sections -fdata-sections -fomit-frame-pointer -fshort-enums"
CC_FOR_TARGET
=
"clang -ffreestanding --target=arm-none-eabi -march=thumbv6m -mcpu=cortex-m0plus"
$NEWLIB_SRC_DIR
/configure
--prefix
=
$(
pwd
)
/install
--target
=
arm-none-eabi
--disable-newlib-supplied-syscalls
--enable-newlib-reent-small
--disable-newlib-fvwrite-in-streamio
--disable-newlib-fseek-optimization
--disable-newlib-wide-orient
--enable-newlib-nano-malloc
--disable-newlib-unbuf-stream-opt
--enable-lite-exit
--enable-newlib-global-atexit
--enable-newlib-nano-formatted-io
--disable-nls
make distclean
export
CCAS
=
arm-none-eabi-gcc
AR_FOR_TARGET
=
arm-none-eabi-ar
AS_FOR_TARGET
=
arm-none-eabi-as
LD_FOR_TARGET
=
arm-none-eabi-ld
RANLIB_FOR_TARGET
=
arm-none-eabi-ranlib
CFLAGS_FOR_TARGET
=
"-g -Os -ffunction-sections -fdata-sections -fomit-frame-pointer -fshort-enums"
CC_FOR_TARGET
=
"clang -ffreestanding --target=arm-none-eabi -march=thumbv6m -mthumb -mcpu=cortex-m0plus"
$NEWLIB_SRC_DIR
/configure
--prefix
=
$(
pwd
)
/install
--target
=
arm-none-eabi
--disable-newlib-supplied-syscalls
--enable-newlib-reent-small
--disable-newlib-fvwrite-in-streamio
--disable-newlib-fseek-optimization
--disable-newlib-wide-orient
--enable-newlib-nano-malloc
--disable-newlib-unbuf-stream-opt
--enable-lite-exit
--enable-newlib-global-atexit
--enable-newlib-nano-formatted-io
--disable-nls
make clean
make
-j5
all-target-newlib
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment