That would be much more elegant



On Sun, Oct 6, 2013 at 10:42 AM, Tim Kientzle <notifications@github.com>wrote:

> In board/Soekris/setup.sh:
>
> > +# copy the build config
> > +soekris_copy_buildconfig ( ) {
> > +        if [ "$MAJOR_OS_VERSION" -eq "8" ]
> > +        then
> > +            KERNEL_CONFIG_FILE="SOEKRIS8"
> > +        fi
> > +        if [ "$MAJOR_OS_VERSION" -eq "9" ]
> > +        then
> > +            KERNEL_CONFIG_FILE="SOEKRIS9"
> > +        fi
> > +        if [ "$MAJOR_OS_VERSION" -eq "10" ]
> > +        then
> > +            KERNEL_CONFIG_FILE="SOEKRIS10"
> > +        fi
> > +	echo "Copying build config ${KERNEL_CONFIG_FILE} to source tree"
> > +        cp ${BOARDDIR}/conf/${KERNEL_CONFIG_FILE} ${FREEBSD_SRC}/sys/i386/conf/${KERNCONF}
>
> Someday, I would like to figure out how to have custom kernel configs in
> Crochet and use them without copying them into the FreeBSD source tree.
>
> There seems to be precedent for KERNCONF being an absolute path to a
> configuration file though I haven't experimented with this.
>
> It might require running 'config' and building the kernel rather than
> using 'buildkernel'
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/kientzle/crochet-freebsd/pull/14/files#r6787257>
> .
>



-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur