[CUWiN-Dev] patches for building on linux
David Young
dyoung at pobox.com
Sat Apr 23 16:37:56 CDT 2005
On Sat, Apr 23, 2005 at 08:50:45AM -0500, Bill Comisky wrote:
> On Fri, 22 Apr 2005, David Young wrote:
>
> >I've been working at low-intensity on cross-building CUWiN on non-NetBSD
> >systems.
> >
> >Yesterday, for the first time, I was able to build a working CUWiN
> >CompactFlash image yesterday on a RedHat Linux 8.0 box, using the patches
> >I have attached. I could use your help to test this on a couple more
> >flavors of Linux, on NetBSD 1.6.2, and on other systems (Solaris?).
> >
> >The NetBSD patch applies cleanly against NetBSD-current that is a few
> >months old.
> >
> >I have also attached a patch for the CUWiN sources that enables the
> >cross-building.
> >
> >Dave
>
> I downloaded NetBSD-current last night and the patch applied cleanly. The
> toolenv patch doesn't apply cleanly to steps.d/toolenv from the HEAD of
> trunk (I was using rev3030), so I tried making the spirit of the change
> (see attached diff).
Strange. I took the diff from HEAD.
> I had some problems with the 'tail +N' syntax, so converted to 'tail -n
> +N'. I did the same for all instances of tail/head I could find to
> eliminate warnings and make the syntax consistent.
Great. I will commit that.
> I also had to add some things to the filter-syspkg/trimlist, some new
> things in NetBSD-current I'm guessing?
Looks like it.
> With these changes (see attached patch) the build got all the way to the
> disklabel part and couldn't find nbdisklabel in my tool bin directory. I
> don't see nbfdisk there either, but I do see:
>
> i386--netbsdelf-disklabel
> i386--netbsdelf-fdisk
>
> So maybe my steps.d/toolenv need some work? That's as far as I had time
> to get as I'm headed out of town for the weekend. Looks very promising
> though! (and my linux machine builds significantly faster.. nice)
I have attached my toolenv for comparison. The environment variables
I use are TOOL_DISKLABEL and TOOL_FDISK.
Dave
--
David Young OJC Technologies
dyoung at ojctech.com Urbana, IL * (217) 278-3933
-------------- next part --------------
# $Id: toolenv 3012 2005-04-20 06:10:48Z dyoung $
#
# Copyright (c) 2003 David Young. All rights reserved.
#
# This code was written by David Young for the Champaign-Urbana
# Community Wireless Project.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. David Young's name may not be used to endorse or promote products
# derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY DAVID YOUNG ``AS IS'' AND ANY EXPRESS
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL DAVID YOUNG BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# tentative
_TOOL_PREFIX=nb
TOOLBIN_PREFIX=${TOOLDIR}/bin/${_TOOL_PREFIX}
export MAKE_ARCH=${TOOLBIN_PREFIX}make-${MACHINE}
# XXX consider cross-build
eval $($MAKE_ARCH -f - print-strip <<EOF
.include <bsd.own.mk>
print-strip:
@echo export MACHINE_GNU_PLATFORM=\"\$(MACHINE_GNU_PLATFORM)\"
@echo export PLAIN_INSTALL=\"eval \$(INSTALL)\"
@echo export STRIP=\"\$(STRIP)\"
@echo export TOOL_DISKLABEL=\"\$(TOOL_DISKLABEL)\"
@echo export TOOL_FDISK=\"\$(TOOL_FDISK)\"
@echo export TOOL_INSTALLBOOT=\"\$(TOOL_INSTALLBOOT)\"
@echo export TOOL_MAKEFS=\"\$(TOOL_MAKEFS)\"
@echo export TOOL_MKTEMP=\"\$(TOOL_MKTEMP)\"
@echo export TOOL_MTREE=\"\$(TOOL_MTREE)\"
@echo export TOOL_PAX=\"\$(TOOL_PAX)\"
@echo export TSORT=\"\$(TSORT)\"
EOF
)
export INSTALL="$PLAIN_INSTALL -U -M $DESTDIR/metalog.new -D $DESTDIR"
More information about the CU-Wireless-Dev
mailing list