mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
examples: Copy ca_cert.pem into both example project dirs
Keeps projects all-in-one under a single directory.
This commit is contained in:
parent
b38a6da74b
commit
c15d3c1ffc
@ -55,10 +55,10 @@ openssl req -x509 -newkey rsa:2048 -keyout ca_key.pem -out ca_cert.pem -days 365
|
||||
|
||||
```
|
||||
|
||||
Copy the certificate to OTA example directory:
|
||||
Copy the certificate to `server_certs` directory inside OTA example directory:
|
||||
|
||||
```
|
||||
cp ca_cert.pem $IDF_PATH/examples/system/ota/server_certs/ca_cert.pem
|
||||
cp ca_cert.pem /path/to/ota/example/server_certs/
|
||||
```
|
||||
|
||||
|
||||
|
@ -2,8 +2,6 @@ set(COMPONENT_SRCS "native_ota_example.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
#
|
||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||
set(COMPONENT_EMBED_TXTFILES ${IDF_PATH}/examples/system/ota/server_certs/ca_cert.pem)
|
||||
set(COMPONENT_EMBED_TXTFILES ${PROJECT_PATH}/server_certs/ca_cert.pem)
|
||||
|
||||
register_component()
|
||||
|
@ -3,4 +3,4 @@
|
||||
#
|
||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||
|
||||
COMPONENT_EMBED_TXTFILES := ${IDF_PATH}/examples/system/ota/server_certs/ca_cert.pem
|
||||
COMPONENT_EMBED_TXTFILES := ${PROJECT_PATH}/server_certs/ca_cert.pem
|
||||
|
@ -3,8 +3,6 @@ set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
|
||||
# Embed the server root certificate into the final binary
|
||||
#
|
||||
# (If this was a component, we would set COMPONENT_EMBED_TXTFILES here.)
|
||||
set(COMPONENT_EMBED_TXTFILES ${IDF_PATH}/examples/system/ota/server_certs/ca_cert.pem)
|
||||
set(COMPONENT_EMBED_TXTFILES ${PROJECT_PATH}/server_certs/ca_cert.pem)
|
||||
|
||||
register_component()
|
||||
|
@ -3,4 +3,4 @@
|
||||
#
|
||||
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
|
||||
|
||||
COMPONENT_EMBED_TXTFILES := ${IDF_PATH}/examples/system/ota/server_certs/ca_cert.pem
|
||||
COMPONENT_EMBED_TXTFILES := ${PROJECT_PATH}/server_certs/ca_cert.pem
|
||||
|
Loading…
x
Reference in New Issue
Block a user