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

Re: pentium4 kernel



On Sun, 2003-08-03 at 08:19, Dennis Gilmore wrote:
> Once upon a time at band camp Sun, 3 Aug 2003 01:32 am, Chris Chabot wrote:
> > Just look in /usr/lib/rpm and copy&paste every 'athlon' target line for
> > a pentium4 target.. also don't forget to adjust the x86 macro to include
> > pentium4.. even then some packages will give some problems since they
> > hard coded the targets (i386,i686,athlon) but most would be compilable
> > for p4 then (also don't forget to make the dir
> > /usr/src/redhat/RPMS/pentium4)
> 
> Thanks for the tip.  but no cigar.  i still get 
> rpm -ivh kernel-2.4.21-20.1.2024.2.1.nptl.pentium4.rpm
> Preparing...                ########################################### [100%]
>         package kernel-2.4.21-20.1.2024.2.1.nptl is intended for a pentium4 
> architecture
> 
> i found every file that had athlon in it and added an option for pentium4.  am 
> i just wasting my time?
> Dennis

You really should not mess around with /usr/lib/rpm, its not very clean,
and all your changes will be lost when you upgrade rpm.

The correct place to make changes is in ~/.rpmrc

Also, to my knowledge, you can't install a package of type pentium4. You
can, however, edit ~/.rpmrc to change the RPM_OPT_FLAGS for an existing
arch.

for instance add:

optflags: i686 -O2 -g -march=i686 -mcpu=pentium4 -mmmx -msse2 -m3dnow



Phil




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