-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
embedded-linux: fix paths in VS code files
- Using ${env:HOME} to refer to the home directory - Making the difference between the normal and -bbb variants of the labs Note that this is probably temporary. Instructions will be more generic when we detail how to create these files. Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
- Loading branch information
1 parent
94f36bb
commit 440cc0c
Showing
8 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
lab-data/embedded-linux-bbb/appdev/.vscode/c_cpp_properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${env:HOME}/embedded-linux-bbb-labs/integration/buildroot/output/staging/**" | ||
], | ||
"defines": [], | ||
"compilerPath": "${env:HOME}/embedded-linux-bbb-labs/integration/buildroot/output/host/bin/arm-linux-gcc", | ||
"cStandard": "gnu17", | ||
"cppStandard": "gnu++17", | ||
"intelliSenseMode": "linux-gcc-arm" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/nunchuk-mpd-client", | ||
"args": [], | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
], | ||
"miDebuggerPath": "${env:HOME}/embedded-linux-bbb-labs/integration/buildroot/output/host/bin/arm-linux-gdb", | ||
"miDebuggerServerAddress": "192.168.0.100:2345" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../embedded-linux/appdev/.vscode/tasks.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../embedded-linux/appdev/nunchuk-mpd-client.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
# Definitions | ||
TARGETIP=192.168.0.100 | ||
PATH=$HOME/embedded-linux-bbb-labs/integration/buildroot/output/host/bin:$PATH | ||
EXEC=nunchuk-mpd-client | ||
CROSS_COMPILE=arm-linux- | ||
|
||
# Rebuild executable | ||
${CROSS_COMPILE}gcc -g -o $EXEC $EXEC.c $(pkg-config --libs --cflags libmpdclient) | ||
|
||
# Kill gdbserver on the target | ||
ssh root@$TARGETIP killall gdbserver | ||
|
||
# Copy over new executable | ||
scp $EXEC root@$TARGETIP:/root/ | ||
|
||
# Start gdbserver on the target | ||
ssh -n -f root@$TARGETIP "sh -c 'nohup gdbserver localhost:2345 /root/nunchuk-mpd-client > /dev/null 2>&1 &'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters