NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: building a "shrinked" NetBSD-System via build.sh (optional: on Linux-host)



On Sun, 21 May 2017 16:39:57 +0200
Marcus Osdoba <marcus.osdoba%googlemail.com@localhost> wrote:

> Hello list,
> 
> recently, I tried to build a "minimal" NetBSD-System for an old 
> thin-client with x86 hardware and a 128MiB flash card.
> 
> As nearly everything is buildable from source, I started with 
> crosscompiling [0] for the i386-like target on one of my Linux boxes 
> (Debian Wheezy amd64) and a userdefined mk.conf [1]. When building on
> a NetBSD/x64 vm I wasn't able to convince the builder to use more
> than one make-process even when calling explicitly with "-j 4".
> That's why I finally stayed with the Wheezy-host.

I've never noticed any issues with parallel builds. I use the following
build script (NetBSD sources are kept under /opt/src and /opt/xsrc) to
build either sets or complete release:

MACHINE_ARCH=amd64
WORK_DIR=/opt

# Build sets
#cd $WORK_DIR/src && /bin/sh ./build.sh -j 4 -u -m $MACHINE_ARCH \
#       -X $WORK_DIR/xsrc \
#       -O $WORK_DIR/obj.$MACHINE_ARCH -T $WORK_DIR/tools.$MACHINE_ARCH \
#       distribution sets 2>&1 | tee /scripts/log.$MACHINE_ARCH

# Build complete release
cd $WORK_DIR/src && /bin/sh ./build.sh -j 4 -u -m $MACHINE_ARCH \
        -X $WORK_DIR/xsrc \
        -O $WORK_DIR/obj.$MACHINE_ARCH -T $WORK_DIR/tools.$MACHINE_ARCH \
        release 2>&1 | tee /scripts/log.$MACHINE_ARCH



Home | Main Index | Thread Index | Old Index