Skip to content

Commit

Permalink
switch to buildroot toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner authored and bkleiner committed Jan 18, 2023
1 parent 678d157 commit e51aa02
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "${workspaceFolder}/toolchain/bin/arm-openwrt-linux-gcc",
"compilerPath": "${workspaceFolder}/toolchain/bin/arm-buildroot-linux-musleabihf-gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-arm",
Expand Down
7 changes: 5 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
set -e

TOOLCHAIN_URL="https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--musl--stable-2018.02-2.tar.bz2"

if [ ! -d toolchain ]; then
echo "Extracting toolchain..."
tar xzvf toolchain.tar.gz
mkdir toolchain
wget -qO- "$TOOLCHAIN_URL" | tar xj --strip-components=1 -C toolchain
fi

rm -rf build && mkdir build
cmake . -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake -Bbuild
cmake . -DCMAKE_TOOLCHAIN_FILE=toolchain/share/buildroot/toolchainfile.cmake -Bbuild
13 changes: 0 additions & 13 deletions toolchain.cmake

This file was deleted.

Binary file removed toolchain.tar.gz
Binary file not shown.

0 comments on commit e51aa02

Please sign in to comment.