603 kernel source?

Andrew cmkrnl at speakeasy.net
Sat Oct 9 04:39:33 UTC 2004


Hi,

The change I make to the .spec are not a whole lot, -- I have played 
with adding other patches etc, but usually I just need to add NTFS.  
Here's what I change in the spec

%define buildsmp 1
to
%define buildsmp 0
(from 1 since I don't have an smp machine so I don't waste the time 
building it) obviously if you need smp you wouldn't do that.  Also you 
want to make sure your changes to .config files include both the 
<arch>.config and <arch>-smp.config files. (see below)

%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] 
&& echo || echo .`whoami`)
to
%define rhbsys  %([ -r /etc/beehive-root -o -n "%{?__beehive_build}" ] 
&& echo || echo .NTFS)
since I don't want my name I want to know its NTFS -- You always what 
something there as you always want to be able to tell the real RH kernel 
from your own.

and finally I update the change log to add something similar to
%changelog
* Fri Oct  8 2004 Andrew <email>
- Add NTFS RO Support

...

Then I patch the ~/rpmbuild/SOURCES/kernel-2.6.8-i686.config with my

--- kernel-2.6.8-i686.config.orig    2004-09-15 21:19:52.481902919 -0400
+++ kernel-2.6.8-i686.config        2004-09-15 21:22:35.087530759 -0400
@@ -2180,7 +2180,9 @@
 CONFIG_VFAT_FS=m
 CONFIG_FAT_DEFAULT_CODEPAGE=437
 CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
-# CONFIG_NTFS_FS is not set
+CONFIG_NTFS_FS=m
+# CONFIG_NTFS_RW is not set
+# CONFIG_NTFS_DEBUG is not set

 #
 # Pseudo filesystems

Then I just to an
cd ~/rpmbuild/SPECS
rpmbuild -ba --target i686  kernel-2.6.spec >-/kernel-build.log 2>&1

(and watch it from an other terminal by doing a
tail -f ~/kernel-build.log

To get to the point where you can run a more normal
make oldconfig
make menuconfig
instead of doing a patch to the kernel-2.6.8-<arch>[-smp].config files 
you would instead to the following
cd ~/rpmbuild/SPECS
rpmbuild -bp --target i696 kernel-2.6.spec

Then you can drop into the ~/rpmbuild/BUILD/kernel-2.6.8/linux-2.6.8 
and  run those make {old,menu}config commands
to generate the exact kernel config you want

Although I never did this myself I think the way to finish the job form 
that point would be
cd ~/rpmbuild/SPECS
rpmbuild -bl --short-circuit --target i686 kernel-2.6.spec
(I just took the resultant config - made a diff against the original and 
then use that to patch the kernel-2.6-<arch>[-smp}.config files, and 
then did a  rpmbuild -ba ...)


Andrew

Robert L Cochran wrote:

>How do I get the .src.rpm for the [603...or any new] kernel source? If
>memory serves me I need to install this and change some SPEC file
>defaults in order to build a kernel-sourcecode rpm.
>
>Thanks
>
>Bob Cochran
>Greenbelt, Maryland, USA
>
>
>  
>




More information about the fedora-test-list mailing list