cederom commented on PR #3474:
URL: https://github.com/apache/nuttx-apps/pull/3474#issuecomment-4421261053
* Thank you @aviralgarg05 this is very nice and demanded feature!
* We should start from documentation to know what is the concept,
architecture, and then implementation flow in the first place! :-)
* I would suggest FreeBSD following `pkg` [1] organization which is similar
in name and functionality (also smaller and simpler than `apt`, `pacman`, etc).
We may use `nxpkg` in place of `pkg` below:
* Configuration is plaintext at `/etc/pkg/` and then `nuttx.conf`.
* Package database is in `/var/db/pkg/local.sqlite`.
* Package cache is in `/var/cache/pkg`.
* BSD systems are divided into BASE and USERLAND. This may come handy for
NuttX too because BASE could be the static firmware images built for specific
platform, and then USEDLAND would provide packages for that platform. This
clear separation assures clean and elegant implementations.
* BASE is located in `/`.
* USERLAND is mounted at `/usr/local` when BASE is ready.
* BASE can work without USERLAND.
* BASE is common to all releases and platforms providing minimal common
feature set.
* This allows to have static BASE at `/` with USERLAND mounted from
anywhere (i.e. network or separate partition) at `/usr/local`.
* Breaking USERLAND never breaks BASE, so you can easily fix stuff when
in pinch.
* This BSD is different approach from Linux where is base and packages
are intermixed, and I would love this approach in NuttX distribution :-)
I will start a thread on the dev@ mailing list for this purpose. I think
there should be a draft documentation that is easy to edit, maybe asf
confluence wiki? :-)
[1] https://man.freebsd.org/cgi/man.cgi?query=pkg
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]