Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2012 14:05:12 -0800
From:      Devin Teske <devin.teske@fisglobal.com>
To:        =?koi8-r?B?J+vPztjLz9cg5dfHxc7Jyic=?= <kes-kes@yandex.ru>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Re[2]: how to force 'device' sources to not compile?
Message-ID:  <070301ccccbf$43f87d00$cbe97700$@fisglobal.com>
In-Reply-To: <219337455.20120106234609@yandex.ru>
References:  <364237998.20120106233952@yandex.ru> <06fc01ccccbc$264e10b0$72ea3210$@fisglobal.com> <219337455.20120106234609@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA [mailto:kes-kes@yandex.=
ru]
> Sent: Friday, January 06, 2012 1:46 PM
> To: Devin Teske
> Cc: freebsd-questions@freebsd.org
> Subject: Re[2]: how to force 'device' sources to not compile?
>=20
> =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5, Devin.
>=20
> =F7=D9 =D0=C9=D3=C1=CC=C9 6 =D1=CE=D7=C1=D2=D1 2012 =C7., 23:42:54:
>=20
>=20
>=20
> >> -----Original Message-----
> >> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> >> questions@freebsd.org] On Behalf Of ??????? ???????
> >> Sent: Friday, January 06, 2012 1:40 PM
> >> To: freebsd-questions@freebsd.org
> >> Subject: how to force 'device' sources to not compile?
> >>
> >> I have errors while compile kernel
> >>
> >> =3D=3D=3D> et (all)
> >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nost=
dinc
> -
> >> DHAVE_KERNEL_OPTION_HEADERS -include
> >> /usr/obj/usr/src/sys/KES_KERN_v9/opt_global.h -I. -I@
> >> -I@/contrib/altq
> DT> -finline-
> >> limit=3D8000 --param inline-unit-growth=3D100 --param
> >> large-function-growth=3D1000 - fno-common -g
> >> -I/usr/obj/usr/src/sys/KES_KERN_v9  -mno-align-long-strings -
> >> mpreferred-stack-boundary=3D2 -mno-sse -mno-mmx -msoft-float
> >> -ffreestanding - fstack-protector -std=3Diso9899:1999 -fstack-protector
> >> -Wall -Wredundant-decls - Wnested-externs -Wstrict-prototypes
> >> -Wmissing-prototypes -Wpointer-arith - Winline -Wcast-qual  -Wundef -W=
no-
> pointer-sign -fformat-extensions  -
> >> Wmissing-include-dirs -fdiagnostics-show-option   -c
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c: In function 'et_dma_allo=
c':
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: 'ET_RING_ALIG=
N'
> >> undeclared (first use in this function)
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: (Each
> >> undeclared identifier is reported only once
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: for each
> >> function it appears in.)
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:790: error: 'ET_STATUS_AL=
IGN'
> >> undeclared (first use in this function)
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:845: error: 'struct
> >> et_softc' has
> DT> no
> >> member named 'sc_rx_mini_tag'
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:854: error: 'struct
> >> et_softc' has
> DT> no
> >> member named 'sc_rx_tag'
> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:864: error: 'struct
> >> et_softc' has
> DT> no
> >> member named 'sc_tx_tag'
> >>
> >> how to disable 'et' from compiling?
>=20
> DT> Try adding:
>=20
> DT>         nodevice et
>=20
> DT> To a custom kernel config.
>=20
> I have tryed to remove 'device et', 'nodevice et', 'device et' same resul=
ts =3D(
>=20

Apologies, let me clarify...

I would create a custom kernel config by executing (assumptions: your kernel
source is stored at /usr/src/sys):

	cd /usr/src/sys/i386/conf

NOTE: Replace "i386" with another architecture (such as "amd64") depending =
on
your needs.

	touch MYGENERIC

NOTE: Followint steps will overwrite "MYGENERIC" in the current working
directory if it already exists. If this file exists already, move it aside
before proceeding.

	echo "include GENERIC" > MYGENERIC
	echo "ident MYGENERIC" >> MYGENERIC
	echo "machine i386" >> MYGENERIC

NOTE: Again, replace "i386" with your desired architecture if not "i386".

	echo "nodevice et" >> MYGENERIC

Now, configure and compile your kernel by executing:

	config -g MYGENERIC
	cd ../compile/MYGENERIC
	make cleandepend && make depend && make

Your new kernel is named "kernel" in the current working directory.
--=20
Devin

_____________
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?070301ccccbf$43f87d00$cbe97700$>