I'm following to this guide:
http://fedoraproject.org/wiki/Building_a_custom_kernel
But on this step rpmbuild -bb --target=`uname -m` kernel.spec I get the following errors:
Code:
+ mv kernel-3.1.0-i686-PAE.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=i386
+ make ARCH=i386 listnewconfig
+ grep -E '^CONFIG_'
.config:4658:warning: override: reassigning to symbol DEBUG_BLK_CGROUP
+ '[' -s .newoptions ']'
+ cat .newoptions
CONFIG_NUMA
CONFIG_NUMA_EMU
CONFIG_NODES_SHIFT
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.8v0xxB (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.8v0xxB (%prep)
Full output is here: pastebin.com/aqWs8ghF
I try to build the kernel on 64 bit Intel Atom, but under 32 bit FC16 without any updates (not network, repositories from DVD).
As a base for my new config (step 2 of Configure Kernel Options in the manual) I have chosen configs/kernel-3.1.0-i686.config file.
According to the aforementioned manual, I tried to make my config with simple "make menuconfig" and with "make oldconfig && make menuconfig". Same result.
I have copied newly created .config file to ~/rpmbuild/SOURCES/config-x86-32-generic because I do not need PAE (the computer can't have more than 4GB RAM).
Please, help. I've no idea how to search roots of such errors.
BTW, I'm curious how build scripts supposed to know, which file in ~/rpmbuild/SOURCES/ should be used? Is it some kind of magic or I missed something?