Kernel sources/module building


 
Thread Tools Search this Thread
Operating Systems Linux Kernel sources/module building
# 1  
Old 08-26-2008
Kernel sources/module building

Hi All,

I've seen people build modules against a certain kernel source (eg in /usr/src/kernels/my_source/) and some people build against the sources in /lib/modules/my_source/build/

What is the difference and are there any benefits to using the /lib/modules source?

Regards,
Brendan
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Unload kernel module at boot time (Debian Wheezy 7.2, 3.2.0-4-686-pae kernel)

Hi everyone, I am trying to prevent the ehci_hcd kernel module to load at boot time. Here's what I've tried so far: 1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here): 2) Blacklisted the module by adding the following string to 3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies

2. Solaris

Building OpenSolaris from sources

Everyone knows the project LFS (Linux from scratch), it is a book-assembly instructions GNU / Linux from source code. I managed to gather, then my knowledge of GNU / Linux grew, learned many new commands, edit config-files, base packages, kernel, etc. .. Now I would like also to explore... (0 Replies)
Discussion started by: Geekon
0 Replies

3. Linux

kernel module parameters

Hi, if I install a module with specific parameter, will this parameters applied next time system boots? for exampe, I want to disable InterruptThrottleRate modprobe e1000e InterruptThrottleRate=0 Is this parameter apllied only for this run, or this module will always use this parameter when... (2 Replies)
Discussion started by: Shedon
2 Replies

4. UNIX for Advanced & Expert Users

building a kernel (with a twist)

Hey all, I am working on a static analysis tool and I wan't to see if it can find bugs in the linux kernel, it uses LLVM framework to analyse the instructions. Long story short I need to build the kernel with a custom compiler. The compiler will create byte code files where binaries usually... (2 Replies)
Discussion started by: zigga15
2 Replies

5. IP Networking

kernel module

Hi All, I need to develop a kernel module which changes the IP address of a package according to its mac address. It would be a sort of L2 Nat. Somebody know if I can do this using netfilter?? Thanks. (2 Replies)
Discussion started by: lagigliaivan
2 Replies

6. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

7. SuSE

FAILED during patching kernel sources

Hi all. I have an issue with kernel patching. My system: OpenSuse 10.2, kernel version: 2.6.18.2. I've downloaded the patch from kernel.org - 2.6.26. I've invoked the following command: "patch -p1 -f < patch-2.6.26" (-f - because some files are not exist. to automatically skip this issues).... (2 Replies)
Discussion started by: Vourhey
2 Replies

8. UNIX for Advanced & Expert Users

building and running a software in different linux kernel versions

my Querry is if i build a software on a specific linux kernel and then try to run it on another linux kernel ....what can be the possible problems or what errors can most probably appear while running the binary in an updated version of linux. (1 Reply)
Discussion started by: mobydick
1 Replies

9. SuSE

max number of slabs per kernel module (kernel 2.6.17, suse)

Hi All, Is there a max number of slabs that can be used per kernel module? I'm having a tough time finding out that kind of information, but the array 'node_zonelists' (mmzone.h) has a size of 5. I just want to avoid buffer overruns and other bad stuff. Cheers, Brendan (4 Replies)
Discussion started by: Brendan Kennedy
4 Replies

10. Linux

Kernel sources

I"m installing my ATI card in FC4. I'm going off of instructions that i've found. The firs step says that i need my kernel sources which i've got then it says that i've gotta unpack them so i can make links to the file later. My kernel sources that i've got are .src.rpm I've installed them but... (1 Reply)
Discussion started by: byblyk
1 Replies
Login or Register to Ask a Question
build::Wx::build::MakeMaker(3)				User Contributed Perl Documentation			    build::Wx::build::MakeMaker(3)

NAME
Wx::build::MakeMaker - ExtUtils::MakeMaker specialisation for wxPerl modules SYNOPSIS
use Wx::build::MakeMaker; wxWriteMakefile( NAME => 'My::Module', VERSION_FROM => 'Module.pm' ); FUNCTIONS
wxWriteMakefile wxWriteMakefile( arameter => value, ... ); This functions is meant to be used exactly as ExtUtils::MakeMaker::WriteMakefile (see). It accepts all WriteMakefile's parameters, plus: o WX_CORE_LIB WX_CORE_LIB => 'xrc core base' link libraries from wxWidgets' core or contrib directory. If not spedified, defaults to 'adv html core net base' for compatibility. o WX_LIB WX_LIB => '-lxrc' Link additional libraries from wxWidgets' contrib directory. o REQUIRE_WX REQUIRE_WX => 2.003002 # wxWidgets 2.3.2 Do not build this module if wxWidgets' version is lower than the version specified. o NO_WX_PLATFORMS NO_WX_PLATFORMS => [ 'x11', 'msw' ] Do not build this module on the specified platform(s). o ON_WX_PLATFORMs ON_WX_PLATFORMS => [ 'gtk' ] only build this module on the specified platform(s). PRIVATE FUNCTIONS
These functions are here for reference, do not use them. is_core if( is_core ) { ... } True if it is building the wxPerl core (Wx.dll), false otherwise. is_wxPerl_tree if( is_wxPerl_tree ) { ... } True if it is building any part of wxPerl, false otherwise. set_hook_package Wx::build::MakeMaker::set_hook_package( 'package_name' ); Package to be hooked into the MakeMaker inheritance chain. METHODS
get_api_directory my $dir = $cfg->get_api_directory; get_arch_directory my $dir = $cfg->get_arch_directory; perl v5.10.0 2008-08-05 build::Wx::build::MakeMaker(3)