Skip to content

Instantly share code, notes, and snippets.

@pfeerick
Last active January 10, 2021 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfeerick/3b5da0ff2f3cf9d69d1997e7aaab1af6 to your computer and use it in GitHub Desktop.
Save pfeerick/3b5da0ff2f3cf9d69d1997e7aaab1af6 to your computer and use it in GitHub Desktop.
Steps to build joaquimorg pinetime fork on a debian system
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