Re: buildworld: specifying an alternate make.conf
- Reply: Ede Wolf : "Re: buildworld: specifying an alternate make.conf"
- In reply to: Ede Wolf : "buildworld: specifying an alternate make.conf"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Oct 2023 14:08:36 UTC
On Tue, Oct 3, 2023 at 10:05 AM Ede Wolf <listac@nebelschwaden.de> wrote: > Hello, > > to my understanding of man make and make.conf, which admittedly is very > limited, I should be able to specify an alternate make.conf with this > syntax: > > # make -D __MAKE_CONF=<PATH>/make.conf buildworld > > Now, since this looks somewhat strage - nowhere else I have found make > variables with double underscores - and before wasting hours of > compiling, I am wondering, is above correct? Or did I miss[understand] > anything? > > Thanks > > Ede > > That syntax is the correct syntax. Here's a partial shell script I use for compiling stripped FBSD images which uses other variables besides __MAKE_CONF should you need examples of them too: SRC=/usr/src POOL=tank DESTDIR=/jails/templates/13.1-RELEASE THRDS=`sysctl -n hw.ncpu` SRCCONF=`pwd`/src.conf SRC_ENV_CONF=`pwd`/src-env.conf __MAKE_CONF=`pwd`/make.conf zfs create -o compression=gzip-9 -o dedup=on -o mountpoint=${DESTDIR} ${POOL}${DESTDIR} env SRCCONF=$SRCCONF SRC_ENV_CONF=$SRC_ENV_CONF __MAKE_CONF=$__MAKE_CONF make -C $SRC -j$THRDS world DESTDIR=$DESTDIR env SRCCONF=$SRCCONF SRC_ENV_CONF=$SRC_ENV_CONF __MAKE_CONF=$__MAKE_CONF make -C $SRC distribution DESTDIR=$DESTDIR cp /etc/resolv.conf $DESTDIR/etc/ zfs snapshot ${POOL}${DESTDIR}@initial ~Paul -- __________________ :(){ :|:& };: