Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Oct 2006 10:50:23 -0700
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Cannot make depend without USB?
Message-ID:  <452545DF.3080103@u.washington.edu>
In-Reply-To: <Pine.BSF.4.44.0610051200200.7439-100000@richard2.pil.net>
References:  <Pine.BSF.4.44.0610051200200.7439-100000@richard2.pil.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

up@3.am wrote:
> Hi:
> 
> I'm trying to recompile a 6.2-PRERELEASE kernel without USB support.
> After commenting out the USB devices in the kernel config file, and doing
> a "make cleandepend" in the kernel source directory, I get this when
> trying to do a "make depend":
> 
> (excerpt):
> 
> rm -f .newdep
> make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  MKDEP_CPP="cc -E" CC="cc"
> xargs mkdep -a -f .newdep -O -pipe  -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
> -Winline -Wcast-qual  -fformat-extensions -std=c99 -g -nostdinc -I-  -I.
> -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter
> -I../../../contrib/pf -I../../../contrib/dev/ath
> -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm
> -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
> opt_global.h -fno-common -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
> -mno-sse -mno-sse2 -ffreestanding
> ../../../dev/usb/umass.c:119:21: usbdevs.h: No such file or directory
> ../../../dev/usb/ums.c:70:21: usbdevs.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
> 
> Stop in /usr/src/sys/i386/compile/NEW_NS1.SMP.
> 
> I tried doing a "make clean", but that didn't help either...what am I
> forgetting?  Please respond directly, as I am not subscribed.
> 
> TIA!
> 
> James Smallacombe		      PlantageNet, Inc. CEO and Janitor
> up@3.am							    http://3.am
> =========================================================================

Try using NO_USB=yes in /etc/make.conf--it's a much better way to go
about removing USB support.

Also, do man make.conf to find out the rest of the support you can
disable on your machine; you really shouldn't go manually editing
makefiles in FreeBSD :(..

- -Garrett

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFJUXf6CkrZkzMC68RAibFAJ401+KljNDHxmQLDrY/h3OEd0mcJwCdG6aI
s3jTCCkTQlU5fjl/Dgj4s1I=
=7Lpd
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?452545DF.3080103>