Skip to content

Commit 269acda

Browse files
committed
Merge branch 'cleanup/use_cjson_from_registry' into 'master'
cleanup: move cJSON to component manager See merge request espressif/esp-idf!42379
2 parents 6424b52 + 439b1d6 commit 269acda

File tree

21 files changed

+112
-279
lines changed

21 files changed

+112
-279
lines changed

.gitlab/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
/components/http_parser/ @esp-idf-codeowners/app-utilities
137137
/components/idf_test/ @esp-idf-codeowners/peripherals @esp-idf-codeowners/system
138138
/components/ieee802154/ @esp-idf-codeowners/ieee802154
139-
/components/json/ @esp-idf-codeowners/app-utilities
140139
/components/linux/ @esp-idf-codeowners/system
141140
/components/log/ @esp-idf-codeowners/system
142141
/components/lwip/ @esp-idf-codeowners/lwip

.gitlab/ci/rules.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@
147147
- "components/esp_phy/lib"
148148
- "components/esp_wifi/lib"
149149
- "components/esp_coex/lib"
150-
- "components/json/cJSON"
151150
- "components/lwip/lwip"
152151
- "components/mbedtls/mbedtls"
153152
- "components/mqtt/esp-mqtt"

.gitmodules

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@
4646
sbom-description = Wear-leveled SPI flash file system for embedded devices
4747
sbom-hash = 0dbb3f71c5f6fae3747a9d935372773762baf852
4848

49-
[submodule "components/json/cJSON"]
50-
path = components/json/cJSON
51-
url = ../../DaveGamble/cJSON.git
52-
sbom-version = 1.7.19
53-
sbom-cpe = cpe:2.3:a:cjson_project:cjson:{}:*:*:*:*:*:*:*
54-
sbom-cpe = cpe:2.3:a:davegamble:cjson:{}:*:*:*:*:*:*:*
55-
sbom-supplier = Person: Dave Gamble
56-
sbom-url = https://github.com/DaveGamble/cJSON
57-
sbom-description = Ultralightweight JSON parser in ANSI C
58-
sbom-hash = c859b25da02955fef659d658b8f324b5cde87be3
59-
6049
[submodule "components/mbedtls/mbedtls"]
6150
path = components/mbedtls/mbedtls
6251
url = ../../espressif/mbedtls.git

components/esp_tee/test_apps/tee_test_fw/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ idf_build_get_property(idf_path IDF_PATH)
22

33
set(priv_requires bootloader_support esp_driver_gptimer esp_tee esp_timer mbedtls spi_flash)
44
# Test FW related
5-
list(APPEND priv_requires json nvs_flash test_utils unity)
5+
list(APPEND priv_requires nvs_flash test_utils unity)
66
# TEE related
77
list(APPEND priv_requires tee_sec_storage tee_attestation tee_ota_ops test_sec_srv)
88

components/esp_tee/test_apps/tee_test_fw/main/idf_component.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
dependencies:
22
ccomp_timer: "^1.0.0"
3+
espressif/cjson: "^1.7.19"
34
tee_attestation:
45
path: ${IDF_PATH}/components/esp_tee/subproject/components/tee_attestation
56
tee_ota_ops:

components/json/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

components/json/README

Lines changed: 0 additions & 247 deletions
This file was deleted.

components/json/cJSON

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/en/COPYRIGHT.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ These third party libraries can be included into the application (firmware) prod
4545

4646
* `FatFS`_ library, Copyright (C) 2017 ChaN, is licensed under :component_file:`a BSD-style license <fatfs/src/ff.h#L1-L18>`.
4747

48-
* `cJSON`_ library, Copyright (C) 2009-2017 Dave Gamble and cJSON contributors, is licensed under MIT License as described in :component_file:`LICENSE file <json/cJSON/LICENSE>`.
49-
5048
* `micro-ecc`_ library, Copyright (C) 2014 Kenneth MacKay, is licensed under 2-clause BSD License.
5149

5250
* `Mbed TLS`_ library, Copyright (C) 2006-2018 ARM Limited, is licensed under Apache License 2.0 as described in :component_file:`LICENSE file <mbedtls/mbedtls/LICENSE>`.
@@ -155,7 +153,6 @@ Copyright (C) 2011 ChaN, all right reserved.
155153
.. _argtable3: https://github.com/argtable/argtable3
156154
.. _linenoise: https://github.com/antirez/linenoise
157155
.. _fatfs: http://elm-chan.org/fsw/ff/00index_e.html
158-
.. _cJSON: https://github.com/DaveGamble/cJSON
159156
.. _micro-ecc: https://github.com/kmackay/micro-ecc
160157
.. _OpenBSD SD/MMC driver: https://github.com/openbsd/src/blob/f303646/sys/dev/sdmmc/sdmmc.c
161158
.. _Mbed TLS: https://github.com/Mbed-TLS/mbedtls

docs/en/api-guides/build-system.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ Here is an example minimal "pure CMake" component CMakeLists file for a componen
11551155

11561156
target_include_directories(json PUBLIC cJSON)
11571157

1158-
- This is actually an equivalent declaration to the IDF ``json`` component :idf_file:`/components/json/CMakeLists.txt`.
1158+
- This is actually an equivalent declaration to the `espressif/cjson <https://github.com/espressif/idf-extra-components/tree/master/cjson>`_ managed component.
11591159
- This file is quite simple as there are not a lot of source files. For components with a large number of files, the globbing behavior of ESP-IDF's component logic can make the component CMakeLists style simpler.)
11601160
- Any time a component adds a library target with the component name, the ESP-IDF build system will automatically add this to the build, expose public include directories, etc. If a component wants to add a library target with a different name, dependencies will need to be added manually via CMake commands.
11611161

0 commit comments

Comments
 (0)