Skip to content

Commit

Permalink
Updated build tools.
Browse files Browse the repository at this point in the history
  • Loading branch information
deadsy committed Apr 8, 2018
1 parent a971756 commit a226dff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ have a 32 bit (single precision) FPU. E.g. ARM Cortex M4 or better.
* STM32F4Discovery Board (MB997) http://www.st.com/en/evaluation-tools/stm32f4discovery.html
* MIDI to serial breakout board http://ubld.it/products/midi-breakout-board/

## Build tools:
* [GNU Make](https://www.gnu.org/software/make/)
* [GNU Embedded Toolchain for ARM](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads)
* [STLink Device Programming Tool](https://github.com/texane/stlink)

The path to the GNU cross compilation tools is set in ./mk/common.mk

## Source Layout
* common - common souces (target/SoC independent)
* drivers - device drivers (non SoC)
Expand Down
10 changes: 8 additions & 2 deletions mk/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
HOST_GCC = gcc

# cross compilation tools
XTOOLS_DIR = /opt/gcc-arm-none-eabi-5_4-2016q2

# set the path
XTOOLS_DIR = /opt/gcc-arm-none-eabi-7-2017-q4-major

# set the version
X_LIBGCC_DIR = $(XTOOLS_DIR)/lib/gcc/arm-none-eabi/7.2.1/armv7e-m/fpu

# should be ok
X_LIBC_DIR = $(XTOOLS_DIR)/arm-none-eabi/lib/armv7e-m/fpu
X_LIBGCC_DIR = $(XTOOLS_DIR)/lib/gcc/arm-none-eabi/5.4.1/armv7e-m/fpu
X_GCC = $(XTOOLS_DIR)/bin/arm-none-eabi-gcc
X_OBJCOPY = $(XTOOLS_DIR)/bin/arm-none-eabi-objcopy
X_AR = $(XTOOLS_DIR)/bin/arm-none-eabi-ar
Expand Down

0 comments on commit a226dff

Please sign in to comment.