1 |
The CFLAGs used when building the kernel are set in the Makefile; |
2 |
# grep HOSTCFLAGS /usr/src/linux/Makefile |
3 |
HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 |
4 |
-fomit-frame-pointer |
5 |
|
6 |
To build with other flags you set CFLAGS_KERNEL, so i've added a suitable |
7 |
-march to the standard ones for my system; |
8 |
export CFLAGS_KERNEL=" -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 |
9 |
-fomit-frame-pointer -pipe -march=amdfam10" |
10 |
|
11 |
then make, install, reboot. In my case the riced kernel is the same size as |
12 |
the regular one, but the md5 is different. Its been up for an hour with no |
13 |
obvious issues, and does seem snappier, but of course my brain is full of |
14 |
cognitive bias. Has anyone else played with this? Any good or bad outcomes? |