Re: Cross compiling user applications for armv7

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 20 Sep 2025 01:58:15 UTC

On Sep 14, 2025, at 07:54, Michał Kruszewski <mkru@protonmail.com> wrote:


> Ok, I am slowly starting to see the bigger picutre.
> I have to start from scratch and understand more details, because the amount of knowledge I had to gain this weekend blows my mind.
> 
> There is still one thing I don't see.
> I have a custom C application with Python builtin as interpreter.
> I will try to compile python using poudriere.
> However, I don't want to deploy my program as a package.
> In my case, it only makes things harder and there are no benefits.
> I rather prefer to build my application using buildenv.
> This means, that I have to install python libraries and headers (prepared by poudriere) for buildenv.
> How do I do that?
> Do I manually copy them to the subdirectories within the world and kernel installation directory?
> Where will I find poudriere compilation output products?

Not that I'm familiar with the details, but I'll note
nanobsd as a possible source of some ideas for builds
and installs for embedded applications, not necessarily
tied to the specifics above:

https://man.freebsd.org/cgi/man.cgi?nanobsd

Some quotes:

"nanobsd.sh  --  utility used to create a FreeBSD system image suitable for embedded applications"
. . . .
"The mass storage medium is divided into three parts by  default (which are normally mounted read-only)"
. . .
"The /etc and /var directories are md(4) (malloc backed) disks".


I've no clue if it would be an actual help but it sounded
like it might have potential. If not, sorry for the noise.


===
Mark Millard
marklmi at yahoo.com