On Tue, Jun 06, AlexB wrote:
OH> On Mon, Jun 05, AlexB wrote:
[quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: Architecture is not included: ppc [unquote]
OH> There is no specific smp .config file. Just use the defconfig.default, OH> enable smp, add ppc to the Exclusivearch line in the specfile.
Seems that rpmbuild cannot do a proper build specifically for kernel package on SuSE system (I tried to build iperf from source RPM and everything went fine). It did not find 'stock' kernel archive, so I made one from /usr/src/linux and copied it to /usr/src/packages/SOURCES. Then there was config archive missing mentioned in spec file (I created one manually and copied to SOURCES too), patches and so on:
[quote] f50:/usr/src/packages/SPECS # rpmbuild -bb ./kernel-smp.spec error: File /usr/src/packages/SOURCES/patches.arch.tar.bz2: No such file or directory [unquote]
If you build the rpm in the running system, install kernel-source.src.rpm as well, it contains the patches.