Hi, I think this is a general 3rd-party package management issue, anyone who uses nuttx will encounter a similar situation.
>> 1. if we decide to contribute it, is there a chance to be accepted by NuttX? Neglect the license issues, I think any excellent open source library will be accepted by nuttx, which is not only for nuttx kernel, also for all developer using nuttx >> 2. if yes, which repository is appropriate? apps? >> 3. if apps, in which directory? netutils? crypto? >> 4. how do you think about adding tls support to netutils/webclient? From the experience of XiaoMi, "apps/external" is a good choice. "external/" is not included in the git repository of apps, just only a dummy symbol link: archer@c :~/code/m1/apps$ ls -l external lrwxrwxrwx 1 archer archer 11 Mar 2 10:17 external -> ../external This repository have the same directory level as nuttx and apps. It's a real git repository but not completely repository, "external/" only stores "kconfig/Makefile/Make.defs": archer@c :~/code/m1/external$ tree -L 2 . ├── Make.defs // Wildcard subdirectories ├── Makefile // include $(APPDIR)/ Directory.mk , traversing subdirectories ├── ... ├── bluetooth ├── btstack ├── curl ├── ffmpeg ├── iperf3 ├── libcoap ├── mbed-crypto │ ├── Kconfig // all 3rd-party projects only contain "kconfig, Make.defs and Makefile" │ ├── Make.defs │ └── Makefile // the package will be downloaded dynamically from Makefile ├── mbedtls │ ├── Kconfig │ ├── Make.defs │ └── Makefile ├── mosquitto ├── nghttp2 ├── protobuf-c ├── tinycrypt ├── unqlite ├── zlib ├── ... In the external directory, we need to create the directory named as project, and then complete the Makefile/Make.defs/Kconfig porting and configuration, all of the 3rd-party projects in nuttx can follow this way. This will greatly reduce the repeated porting work of different developers. Assuredly, it is necessary to create a new "external" project if we really need this strategy? apache/incubator-external apache/incubator-nuttx apache/incubator-apps BRs, ________________________________________ 发件人: Takashi Yamamoto <yamam...@midokura.com.INVALID> 发送时间: 2020年5月22日 15:41 收件人: dev@nuttx.apache.org 主题: [External Mail]mbedtls hi, i'm working on mbedtls Makefile/Kconfig glue for NuttX. right now, it downloads and uses the mbedtls source code from the upstream as it is. (similarly to what netutils/cjson does) questions: 1. if we decide to contribute it, is there a chance to be accepted by NuttX? 2. if yes, which repository is appropriate? apps? 3. if apps, in which directory? netutils? crypto? 4. how do you think about adding tls support to netutils/webclient? #/******本邮件及其附件含有小米公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! This e-mail and its attachments contain confidential information from XIAOMI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!******/#