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