Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT Monitoring Module
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
DIOT Monitoring Module
Commits
5701ec04
Commit
5701ec04
authored
Dec 17, 2021
by
Christos Gentsos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utils: update build newlib script to use the GCC assembler
This gets around the setjmp thumb2 issue during compilation.
parent
4a888e53
Pipeline
#2986
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
build_newlib.sh
utils/build_newlib.sh
+5
-2
No files found.
utils/build_newlib.sh
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment