[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Feeding gcc flags to make-kpkg



Hi

I found some flags to feed to gcc 

---------------------------------------
 7450, aka G4 second generation (PowerPC)

CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7450 -O2 -pipe
	-maltivec -mabi=altivec -mpowerpc-gfxopt"
CXXFLAGS="-mcpu=7450 -O2 -pipe
	-maltivec -mabi=altivec -mpowerpc-gfxopt"

Note: do not use -march=
Note: -O3 is unstable on G4
---------------------------------------
from that page:
<http://www.freehackers.org/gentoo/gccflags/flag_gcc3.html>


For a compile of a 2.6 kernel:
Any ideas on how to feed the stuff above to gcc/make-kpkg?

I read one could change the kernel Makefile. But this can become
cumbersome, as for every new compile one needs to edit this file
again.

Or it  might be  possible to  feed it either  system-wide or  via some
config file in $HOME. The problem seems that make-kpkg does not even
seem to understand these settings:
E.g. sometimes it seems being impossible to feed variables to make-kpkg
via, for instance, /etc/kernel-kpkg.conf:
<http://lists.debian.org/debian-devel/2003/06/msg00621.html>

And it's not even clear how sane this is: Some say it might be "disastrous"
to set global MAKEFLAGS into one's environment:

"If you do put MAKEFLAGS in your environment, you should be sure not
to include any options that will drastically affect the actions of
make and undermine the purpose of makefiles and of make itself. For
instance, the `-t', `-n', and `-q' options, if put in one of these
variables, could have disastrous consequences and would certainly have
at least surprising and probably annoying effects."
<http://www.gnu.org/software/make/manual/html_node/make_57.html>

Hints?

-- 
Wolfgang Pfeiffer
http://profiles.yahoo.com/wolfgangpfeiffer



Reply to: