Skip to content

Commit

Permalink
added aarch64 and arm toolchain files. Provide build tasks for vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsc committed Apr 2, 2020
1 parent 5f13313 commit 8eb81c6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
30 changes: 9 additions & 21 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,36 @@
"type": "shell",
"label": "build raspi",
"command": "make",
"args": [
"raspi"
],
"problemMatcher": [
"$gcc"
],
"options": {
"cwd": "${workspaceFolder}/build-raspi"
},
"group": "build"
},
{
"type": "shell",
"label": "build raspi64",
"command": "make",
"args": [
"raspi64"
],
"problemMatcher": [
"$gcc"
],
"options": {
"cwd": "${workspaceFolder}/build-raspi64"
},
"group": "build"
},
{
"type": "shell",
"label": "build pbpro",
"command": "make",
"args": [
"pbpro"
],
"problemMatcher": [
"$gcc"
],
"group": "build"
},
{
"type": "shell",
"label": "build examples",
"command": "make",
"args": [
"examples"
],
"problemMatcher": [
"$gcc"
],
"options": {
"cwd": "${workspaceFolder}/build-pbpro"
},
"group": "build"
}
]
Expand Down
11 changes: 11 additions & 0 deletions toolchains/aarch64-elf.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR aarch64)

set(CROSS_COMPILE aarch64-linux)

set(CMAKE_C_COMPILER ${CROSS_COMPILE}-gcc)
set(CMAKE_CXX_COMPILER ${CROSS_COMPILE}-g++)
set(CMAKE_AR ${CROSS_COMPILE}-ar)
set(CMAKE_RANLIB ${CROSS_COMPILE}-ranlib)
set(CMAKE_OBJCOPY ${CROSS_COMPILE}-objcopy)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
11 changes: 11 additions & 0 deletions toolchains/arm-elf.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR arm)

set(CROSS_COMPILE arm-none-eabi)

set(CMAKE_C_COMPILER ${CROSS_COMPILE}-gcc)
set(CMAKE_CXX_COMPILER ${CROSS_COMPILE}-g++)
set(CMAKE_AR ${CROSS_COMPILE}-ar)
set(CMAKE_RANLIB ${CROSS_COMPILE}-ranlib)
set(CMAKE_OBJCOPY ${CROSS_COMPILE}-objcopy)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

0 comments on commit 8eb81c6

Please sign in to comment.