Hi Chadley, On Thu, Jan 06, 2005 at 05:56:38PM +0200, Chadley Wilson wrote: > rpmbuild -v -v -bp --target=`uname -m` kernel-2.6.spec compare with using --target=noarch otherwise some parts of kernel specfile scripts will not be executed (which may or may not be wanted). Also some config files for the other arch get removed. From the latest released kernel specfile: %define buildsource 0 [...] %ifarch noarch %define builddoc 1 %if %{FC2} %define buildsource 1 %else %define buildsource 0 %endif %define buildup 0 %define buildsmp 0 %define all_arch_configs $RPM_SOURCE_DIR/kernel-%{kversion}*.config %endif %if %{buildsource} mkdir -p $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL} chmod -R a+r * # clean up the source tree so that it is ready for users to build their own # kernel make -s mrproper # copy the source over tar cf - . | tar xf - -C $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL} # set the EXTRAVERSION to <version>custom, so that people who follow a kernel building howto # don't accidentally overwrite their currently working moduleset and hose # their system perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}custom/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/Makefile # some config options may be appropriate for an rpm kernel build but are less so for custom user builds, # change those to values that are more appropriate as default for people who build their own kernel. perl -p -i -e "s/^CONFIG_DEBUG_INFO.*/# CONFIG_DEBUG_INFO is not set/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/configs/* perl -p -i -e "s/^.*CONFIG_DEBUG_PAGEALLOC.*/# CONFIG_DEBUG_PAGEALLOC is not set/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/configs/* perl -p -i -e "s/^.*CONFIG_DEBUG_SLAB.*/# CONFIG_DEBUG_SLAB is not set/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/configs/* perl -p -i -e "s/^.*CONFIG_DEBUG_SPINLOCK.*/# CONFIG_DEBUG_SPINLOCK is not set/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/configs/* perl -p -i -e "s/^.*CONFIG_DEBUG_HIGHMEM.*/# CONFIG_DEBUG_HIGHMEM is not set/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/configs/* perl -p -i -e "s/^.*CONFIG_MODULE_SIG.*/# CONFIG_MODULE_SIG is not set/" $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL}/configs/* install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/usr/src/linux-%{KVERREL} %endif -- Axel.Thimm at ATrpms.net
Attachment:
pgp1OeGWFlbQo.pgp
Description: PGP signature