Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.h linguist-language=C
53 changes: 14 additions & 39 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
{
"env": {
"loaderDefaultIncludePaths": [
"${workspaceFolder}/include",
"${workspaceFolder}/scripts/opt/cross/lib/gcc/arm-none-eabi/8.2.0/include",
"${workspaceFolder}/scripts/opt/cross/lib/gcc/aarch64-none-elf/8.2.0/include"
],
"loaderDefaultBrowsePaths": [
"${workspaceFolder}/src",
"${workspaceFolder}/include",
"${workspaceFolder}/scripts/opt/cross/lib/gcc/arm-none-eabi/8.2.0/include",
"${workspaceFolder}/scripts/opt/cross/lib/gcc/aarch64-none-elf/8.2.0/include"
]
},
"configurations": [
{
"name": "Mac",
"includePath": [
"${loaderDefaultIncludePaths}"
"${workspaceFolder}/include",
"${env:HOME}/.bolthur/cross/lib/gcc/arm-none-eabi/9.1.0/include",
"${env:HOME}/.bolthur/cross/lib/gcc/aarch64-none-elf/9.1.0/include"
],
"defines": [],
"intelliSenseMode": "${default}",
"browse": {
"path": [
"${loaderDefaultBrowsePaths}"
"${workspaceFolder}/src",
"${workspaceFolder}/include",
"${env:HOME}/.bolthur/cross/lib/gcc/arm-none-eabi/9.1.0/include",
"${env:HOME}/.bolthur/cross/lib/gcc/aarch64-none-elf/9.1.0/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
Expand All @@ -36,35 +28,18 @@
{
"name": "Linux",
"includePath": [
"${loaderDefaultIncludePaths}"
"${workspaceFolder}/include",
"${env:HOME}/.bolthur/cross/lib/gcc/arm-none-eabi/9.1.0/include",
"${env:HOME}/.bolthur/cross/lib/gcc/aarch64-none-elf/9.1.0/include"
],
"defines": [],
"intelliSenseMode": "${default}",
"browse": {
"path": [
"${loaderDefaultBrowsePaths}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"forcedInclude": [
"${workspaceFolder}/build/include/config.h"
],
"cStandard": "c11"
},
{
"name": "Win32",
"includePath": [
"${loaderDefaultIncludePaths}"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "${default}",
"browse": {
"path": [
"${loaderDefaultBrowsePaths}"
"${workspaceFolder}/src",
"${workspaceFolder}/include",
"${env:HOME}/.bolthur/cross/lib/gcc/arm-none-eabi/9.1.0/include",
"${env:HOME}/.bolthur/cross/lib/gcc/aarch64-none-elf/9.1.0/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
Expand Down
36 changes: 36 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "aarch32-rpi-qemu-debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/src/platform/rpi/loader7.sym",
"miDebuggerPath": "${env:HOME}/.bolthur/cross/bin/arm-none-eabi-gdb",
"miDebuggerArgs": "-q",
"MIMode": "gdb",
"cwd": "${workspaceFolder}/build/src/platform/rpi/",
"setupCommands": [
{
"text": "-enable-pretty-printing",
"description": "Enable GDB pretty printing"
},
{
"text": "set architecture armv7",
"description": "Set architecture"
},
{
"text": "file ${workspaceFolder}/build/src/platform/rpi/loader7.sym",
"description": "Loading symbol file"
},
{
"text": "target remote | qemu-system-arm -M raspi2 -cpu cortex-a7 -no-reboot -serial pty -kernel ${workspaceFolder}/build/src/platform/rpi/loader.elf -gdb stdio -S",
"description": "Set target to remote with qemu"
}
],
"externalConsole": false,
"launchCompleteCommand": "None",
"preLaunchTask": "compile"
}
]
}
44 changes: 44 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "clean",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/build"
},
"args": [
"clean"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
}
},
{
"label": "compile",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/build"
},
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
}
}
]
}
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Authors of bolthur-serial-loader

Christian Freitag cfreitag.cf@googlemail.com
Loading