note about compiling SMP kernels
Just a quick note for those of you who are trying to compile up a kernel for an SMP powermac: make sure that you are not using an old arch/ppc/kernel/ppc_defs.h file from a UP compile. For instance, my rsync trees have a version of this file in them which is suitable for a UP compile.
So, before compiling for SMP for the first time, do a make clean in the tree first, even if the tree has no object files in it.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines
So, before compiling for SMP for the first time, do a make clean in the tree first, even if the tree has no object files in it.
Is the correct procedure still:
cd /usr/src/linux
make mrproper
make pmac_config
make menuconfig (or whatever you please)
make dep
make clean
gmake -j 3 vmlinux
Just as a side note: I recently upgraded to LinuxPPC R5 and was able to sucessfully compile a SMP 2.2.12 kernel from stock sources from ftp.kernel.org.
I have since determined that my problems with LinuxPPC R4.1 were due to an older version of gcc/egcs. The stock gcc in R4.1 is egcs 1.02, but it looks like I needed egcs 1.1.2 to sucessfully build a SMP kernel.
----ranga <[email protected]>
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 9 lines · Sriranga Veeraraghavan
Is the correct procedure still:
cd
/usr/src/linux
make mrproper
makepmac_config
make menuconfig (or whatever you please)
make dep
make clean
gmake -j 3 vmlinux
That would be fine (but isn't your make == gmake anyway?). I don't do the make mrproper myself very often since that deletes your .config, I tend to do make oldconfig; make clean; make dep; make vmlinux modules (with a -j if you like).
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/