[Toybox] [PATCH] Pass cflags and hostcc in mkroot.

Denys Nykula nykula at ukr.net
Mon Oct 28 10:13:55 PDT 2019


On Mon, Oct 28, 2019 at 01:37:57AM -0500, Rob Landley wrote:
> On 10/27/19 10:08 AM, Denys Nykula wrote:
> > Script master is acme.js.org/world, comment at the beginning is example
> > how to run.
> 
> This is usually the kind of thing people have a repo for somewhere. :)

Comment mentions github. I like short links, so my domain root points to
files in my repository master.

>   sed -i "s/<(.*)/:/" s*/*
> 
> The script you're running this on can't handle bash syntax? Except why are you
> doing that _after_ running defconfig?

Yes mksh doesn't do <(). Needed for scripts/make.sh of the later mkroot.
Kconfig uses more gmake than shell iirc.

> Why do you do:
> 
>   mv root/*/*/usr/src/distfiles/* ../pkgsrc/distfiles
> 
> _before_ running "make root"?

Backs up my distfiles before removing the root when I rebuild offline.

> And what context does:
> 
>   cd ../../../../*x-*
> 
> run in? (It looks like you're in the toybox source dir? From the start of the
> script you cloned some repos off of github and cd'd into toybox, and now you're
> cd-ing three levels above that?)

toybox/root/*/*-fs/usr

> I haz a confused.

My attention is more broken than my esc key, and I often write with one
hand in public transit standing with touchpad disabled because it catches
interference, or in bed on painkillers trying not to move or look at
things moving. Need least scrolling possible.

> My build systems have all run as a normal user (NOT requiring root on the host)
> since about 2004. (Point of pride. :)

Pkgsrc and other parts can all run as user. I have no idea how to
glue them without chroot, dev mount, proc mount, su - and so on.

> > Both make and gmake in your path have to point at gmake, mkroot-specific.
> 
> This is what "alias" is for. :)

Alias makes way into nested scripts and makefiles? Have to try. I've
used its escape power for eval generation in argument altering shims,
and unaliased all convenience that distros hoard there.



More information about the Toybox mailing list