Skip to content

Commit

Permalink
Update submodule, use new config system
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed May 25, 2022
1 parent 8d53a02 commit 3cdae58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/build_infinitime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ COMMON_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DARM_NONE_EABI_TOOLCHAIN_PATH=/usr -
if [ "$TARGET" = "pinetime" ]; then
cmake -DDRIVER_TOUCH=DYNAMIC -DTARGET_DEVICE=PINETIME -DLF_CLK=XTAL -DDRIVER_ACC=BMA421 $COMMON_OPTIONS ..
elif [ "$TARGET" = "p8" ] || [ "$TARGET" = "p8b" ]; then
cmake -DDRIVER_TOUCH=REPORT -DTARGET_DEVICE=P8 -DLF_CLK=RC -DDRIVER_ACC=SC7A20 $COMMON_OPTIONS ..
cmake -DTARGET_DEVICE=P8B $COMMON_OPTIONS ..
elif [ "$TARGET" = "p8a" ]; then
cmake -DDRIVER_TOUCH=GESTURE -DTARGET_DEVICE=P8 -DLF_CLK=XTAL -DDRIVER_ACC=BMA421 $COMMON_OPTIONS ..
cmake -DTARGET_DEVICE=P8A $COMMON_OPTIONS ..
fi

make -j$(nproc) pinetime-mcuboot-app pinetime-mcuboot-recovery-loader
6 changes: 3 additions & 3 deletions scripts/build_infinitime_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ cd build

COMMON_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DARM_NONE_EABI_TOOLCHAIN_PATH=/usr -DNRF5_SDK_PATH=/opt/nrf5-sdk -DUSE_JLINK=1 -DNRFJPROG=/usr/bin/nrfjprog -DBUILD_DFU=1"
if [ "$TARGET" = "pinetime" ]; then
cmake -DDRIVER_TOUCH=DYNAMIC -DTARGET_DEVICE=PINETIME -DLF_CLK=XTAL -DDRIVER_ACC=BMA421 $COMMON_OPTIONS ..
cmake -DTARGET_DEVICE=PINETIME $COMMON_OPTIONS ..
elif [ "$TARGET" = "p8" ] || [ "$TARGET" = "p8b" ]; then
cmake -DDRIVER_TOUCH=REPORT -DTARGET_DEVICE=P8 -DLF_CLK=RC -DDRIVER_ACC=SC7A20 $COMMON_OPTIONS ..
cmake -DTARGET_DEVICE=P8B $COMMON_OPTIONS ..
elif [ "$TARGET" = "p8a" ]; then
cmake -DDRIVER_TOUCH=GESTURE -DTARGET_DEVICE=P8 -DLF_CLK=XTAL -DDRIVER_ACC=BMA421 $COMMON_OPTIONS ..
cmake -DTARGET_DEVICE=P8A $COMMON_OPTIONS ..
fi

make -j$(nproc) pinetime-app

0 comments on commit 3cdae58

Please sign in to comment.