Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HAP Crypto to src/crypto #243

Merged
merged 5 commits into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "0.2.0",
"configurations": [


{
"name": "QRCode Tests",
"type": "cppdbg",
Expand All @@ -24,6 +25,27 @@
"ignoreFailures": true
}
]
},

{
"name": "CHIP crypto Tests",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/x86_64-unknown-linux-gnu/src/crypto/tests/TestCrypto",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "CHIP crypto Tests",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@
"problemMatcher": [
"$gcc"
]
},

{
"label": "CHIP crypto Tests",
"type": "shell",
"command": "make -C build/x86_64-unknown-linux-gnu/src/setup_payload/ check",
"group": "none",
"problemMatcher": [
"$gcc"
]
}


]
}
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,8 @@ third_party/Makefile
third_party/lwip/Makefile
src/Makefile
src/ble/Makefile
src/crypto/Makefile
src/crypto/tests/Makefile
src/lwip/Makefile
src/lwip/tests/Makefile
src/system/Makefile
Expand Down
6 changes: 6 additions & 0 deletions docs/BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,12 @@ make[1]: Entering directory 'src/system'
ar: `u' modifier ignored since `D' is the default (see `U')
make[1]: Leaving directory 'src/system'
```
- [x] **Add new source folder**
Add the folder to `src/`
Update `src/Makefile.am` to add the folder
Update `AC_CONFIG_FILES` in `configure.ac`

And then build as needed.

- [x] **Clean out entire source tree**

Expand Down
2 changes: 2 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ DIST_SUBDIRS = \
lwip \
setup_payload \
system \
crypto \
$(PLATFORM_SUBDIRS) \
$(NULL)

Expand All @@ -72,6 +73,7 @@ SUBDIRS = \
lwip \
setup_payload \
system \
crypto \
$(MAYBE_PLATFORM_SUBDIRS) \
$(NULL)

Expand Down
Loading