Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what is the path of kernel build directory?

3 views
Skip to first unread message

saeedeh motlagh

unread,
Apr 5, 2012, 3:21:18 AM4/5/12
to
hello guys
i want to install the openvswitch 1.4.0 from a linux package. the below
command should be executed:
./configure --with-linux=/lib/modules/'uname -r '/build
this is a linux command and i should execute the FreeBSD equivalent but i
don't know how to do that. the manual says:

To build the Linux kernel module, so that you can run the
kernel-based switch, pass the location of the kernel build
directory on --with-linux.

what is kernel build directory in FreeBSD9 amd64? or how i should execute
this command?

yours,
_______________________________________________
freeb...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net...@freebsd.org"

Jason Hellenthal

unread,
Apr 5, 2012, 12:32:22 PM4/5/12
to

/usr/obj/usr/src/sys/<KERNELNAMEHERE>/

The handbook has a very clear section on this.

Good luck.
--
;s =;

Robert Bonomi

unread,
Apr 5, 2012, 12:39:15 PM4/5/12
to

saeedeh motlagh <saeedeh...@gmail.com> wrote:
>
> hello guys
> i want to install the openvswitch 1.4.0 from a linux package. the below
> command should be executed:
> ./configure --with-linux=/lib/modules/'uname -r '/build
> this is a linux command and i should execute the FreeBSD equivalent but i
> don't know how to do that. the manual says:
>
> To build the Linux kernel module, so that you can run the
> kernel-based switch, pass the location of the kernel build
> directory on --with-linux.
>
> what is kernel build directory in FreeBSD9 amd64? or how i should execute
> this command?

If you have to ask, you should *NOT* attempt to build this kernel module
on FreeBSD.

The kernel, kernel interfaes, etc. are *DIFFERENT* between Linux and FreeBSD.
signficicant sourte-code changes will VERY PROBABLY be require to get
the module to (a) compile, and (b) run, in a FreeBSD environment.

To do _that_ -- modifying the sources -- 'where the build directory is' is
a very _minor_ incidental piece of knowlege. If you don't have that
incidental knowledge, is is virtually certain, you don't have the skill set
to do the required source modifications.

Executive summary -- this is a DDT issue.


DDT ==> <D>on't <D>o <T>hat!!
0 new messages