On Fri, 25 Apr 2025 at 13:13, Bertho Stultiens <l...@vagrearg.org> wrote:

> And it isn't even used consistently throughout the code base.

From a parallel conversation:

"I was thinking about this more and I probably can kind of guess what
was going on.

There is usage of lsmod and modprobe and those are "root" binaries. I
suspect they were trying to ensure the right path to the root binaries
could be found. This was then copied for other utilities like grep.

Modern distros should have PATH set correctly for users to be able to
find binaries. This was an issue on weird non-linux platforms but Linux
should have been ok even then, certainly now.

I'd think it could all be simplified."

I suspect that lsmod and modprobe are only relevant to RTAI builds,
and I doubt that the Yocto build would ever use RTAI.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to