Last active
January 10, 2021 09:29
-
-
Save pfeerick/3b5da0ff2f3cf9d69d1997e7aaab1af6 to your computer and use it in GitHub Desktop.
Steps to build joaquimorg pinetime fork on a debian system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update -qq && sudo apt-get install -y wget unzip cmake make build-essential git python3 python3-pip | |
wget "https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip" -O /tmp/nRF5_SDK_15.3.0_59ac345.zip && unzip -q /tmp/nRF5_SDK_15.3.0_59ac345.zip -d /opt/ && rm nRF5_SDK_15.3.0_59ac345.zip | |
wget "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz" -O - | tar -xj -C /opt/ | |
git clone https://github.com/JuulLabs-OSS/mcuboot.git /opt/mcuboot && pip3 install -r /opt/mcuboot/scripts/requirements.txt | |
pip3 install adafruit-nrfutil | |
git clone https://github.com/joaquimorg/Pinetime joaq-pinetime | |
cd joaq-pinetime | |
git submodule update --init --recursive | |
cd src/libs/hrs3300 | |
curl -LO https://github.com/atc1441/HRS3300-Arduino-Library/raw/master/src/cortex-m4/libheart.a | |
cd ../../.. | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DARM_NONE_EABI_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-9-2020-q2-update -DNRF5_SDK_PATH=/opt/nRF5_SDK_15.3.0_59ac345 -DUSE_OPENOCD=1 ../ | |
make -j pinetime-app pinetime-mcuboot-app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment