Tagged Questions
53
votes
12answers
4k views
What is the benefit of compiling your own linux kernel?
What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?
17
votes
6answers
3k views
Force directory to always be in cache
I've been testing out different methods to improve the time it takes to compile my entire c++ project. Currently it takes ~5 minutes. I experimented with distcc, ccache, and others. Recently, I ...
10
votes
6answers
744 views
Looking for tools to build minimal linux desktop
Increasingly I am dissatisfied by the fact, that configuring my linux desktop usually means removing bloat instead of adding and tweaking features. I have come to the conclusion that I would rather ...
9
votes
5answers
3k views
Compiling GNU/Linux with -O3 optimization
It's said that compiling GNU tools and Linux kernel with -O3 gcc optimization option will produce weird and funky bugs. Is it true? Has anyone tried it or is it just a hoax?
8
votes
4answers
287 views
What could be causing make to hang when compiling on multiple cores?
Yesterday I was trying to compile the ROOT package from source. Since I was compiling it on a 6 core monster machine, I decided to go ahead and build using multiple cores using make -j 6. The ...
7
votes
5answers
1k views
Benefit of kernel module compiled inside kernel?
What's the benefit of compiling kernel modules into the kernel (instead of as loadable modules)?
6
votes
2answers
368 views
How to develop a small linux distro?
Since Linux uses open-source packages, I was wondering if I could develop my own Linux distro by compiling these packages.
I tried to read the Linux From Scratch book but it's quite big and uses lots ...
5
votes
3answers
369 views
How to speed up my build
I am doing a build on a Linux machine with ubuntu 10.04 on it. I want to know how can I really speed up my build. I have 4 CPUs and lots of RAM. I already reniced the process group to -20. Is there ...
5
votes
2answers
570 views
Do I need to cross-compile my program when my target is 64 bit arch. and host is 32 bit arch from x86 family?
I have scenario in which
my host is : x86 32 bit processor
my target is : x86 64 bit processor
I have a couple of questions :
I want to know if i can simply
compile a program in my host using
...
5
votes
2answers
205 views
What package could “linux-headers-3.7.5-1-ARCH” mean?
I'm debugging a closed-source software installer that seems to have some pre-conceived notions about my distribution. The installation aborts after not finding apt-get. The command it attempts to run ...
5
votes
2answers
2k views
How to include local header files in linux kernel module
Say I have a module mymod with source files as follows:
src/mod/mymod.c
src/inc/mymod.h
I try to include mymod.h as follows
#include <mymod.h>
My makefile contains EXTRA_CFLAGS= ...
4
votes
4answers
229 views
Looking for small distro (to be installed automatically, with g++ and javac)
I'm looking for linux distro only with comand line and i need in it only g++,javac,python. I found Damn Small Linux but it dont have g++ and javac. It should have it out of the box because linux will ...
4
votes
2answers
4k views
How to create an initrd image on OpenSuSE linux?
/usr/src/linux-3.2.1 # make install
scripts/kconfig/conf --silentoldconfig Kconfig
sh /usr/src/linux-3.2.1/arch/x86/boot/install.sh 3.2.1-12-desktop arch/x86/boot/bzImage \
System.map ...
4
votes
1answer
534 views
How can I specify OS-conditional build requirements in an RPM spec file?
I am trying to work my way around with the BuildPrereq flag in the spec files.
I want a few pre-requisites to be included if the OS is of a particular version. something like
if os == fedora 4
...
4
votes
1answer
147 views
How do I know which files will be included in a linux kernel before I build it?
I am working on a project that includes building an old kernel version of linux. This is fine, but I still need to patch the kernel of all previously found security vulnerabilities based on CVEs. I ...