From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199801291518.KAA14631@harrison.blueskyprod.com> Date: Thu, 29 Jan 1998 10:18:50 -0500 From: Dan Weeks Subject: Patching the Kernel (Was: Re: LX164 Alpha 533Mhz) In-Reply-To: <199801291504.KAA00670@linux03.amt.tay1.dec.com> Jay.Estabrook@digital.com writes: > > >>> Johan Almqvist said: > > > > Applying the patch can be somewhat tricky, though: I need to have dirs > > (symlinks) called /usr/src/new/ and /usr/src/old/ and /usr/src/linux/ > > all pointing at /usr/src/linux-2.0.33/ for it to apply correctly. This > > seems weird, but the kernel's a rock. Even my tulip worked with the stock > > driver. > > As has been mentioned before on axp-list (do I hear an echo? :-), it is NOT > recommended that building of a custom kernel based on alpha-patches take > place in /usr/src/linux, as the patched headers will replace the "tuned" Red > Hat headers for application builds, and may cause headaches and shortness of > breath... ;-} So, if when compiling the kernel we get the -D__KERNEL__ flag why can't the headers be set up to have one set of values for kernel compiles and another set for regular compiles like so: example------------------------------------------ /* blah.h * blah blah, blah blah blah blah * blah blort blat blah */ #ifdef __KERNEL__ /* place kernel modified header stuff here */ #else /* place stuff for normal compiles here */ #endif end----------------------------------------------- or will this break. I am guessing (and most likley making a fool of myself) that this will work and if it does it would mean that you could build the kernel and other apps with the same include files and not have to worry if one set or the other is out of date or not. -danimal -- Dan Weeks Blue Sky|VIFX http://www.blueskystudios.com/ http://www.vifx.com/ Harrison, New York 914/381.8400 - Los Angeles, California 310/822.8872 Linux: The Choice of a GNU Generation -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com