32 lines
1,000 B
Python
32 lines
1,000 B
Python
This project is built entirely from source code, including the toolchain!
|
|
|
|
Pre-requisites for building:
|
|
|
|
CentOS 6.x (6.4 tested, installed with minimal package set)
|
|
Fedora (v19 tested, installed with minimal package set)
|
|
|
|
yum -y install git zip gcc gcc-c++ make bison flex gperf texinfo wget \
|
|
patch libtool ncurses-devel xz zlib-devel \
|
|
glibc-static libstdc++-static expat-devel python-devel \
|
|
help2man
|
|
|
|
|
|
Debian/Ubuntu
|
|
|
|
???
|
|
|
|
Once you have all of the necessary pre-requisites installed, you can obtain
|
|
the sources and build:
|
|
|
|
git clone git://git.shaftnet.org/mcu_base.git
|
|
cd mcu_base
|
|
echo "MCU=stm32f10x" >> Makefile.opts
|
|
echo "MCU_SUBTYPE=stm32f10x_hd" >> Makefile.opts
|
|
make
|
|
|
|
Alternatively, instead of relying on the toolchain bundled with this repo,
|
|
the ARM embedded bare-metal GCC port works great. Download and install it
|
|
somewhere appropriate, and run:
|
|
|
|
echo "CROSS_COMPILE = /some/path/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-" >> Makefile.opts
|