Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Patching the Kernel (Was: Re: LX164 Alpha 533Mhz)
@ 1998-01-29 15:37 Tommy Cheung
  0 siblings, 0 replies; 2+ messages in thread
From: Tommy Cheung @ 1998-01-29 15:37 UTC (permalink / raw)


My understanding of C language is limited, but what Jay is trying to
explain is that the headers might be different from the function it
specifics when compling/linking. Sometimes I think because of that you
see warnings and other things. It's like mixing the codes without
knowing whether they are compatible or not. (Means , it's plain luck :-)
).

Tommy
T&S Assoicates

Dan Weeks wrote:
> 

> 
> 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 <danimal@blueskystudios.com>
> 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

-- 
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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: LX164 Alpha 533Mhz
@ 1998-01-29  5:04 Jay.Estabrook
  1998-01-29 15:18 ` Patching the Kernel (Was: Re: LX164 Alpha 533Mhz) Dan Weeks
  0 siblings, 1 reply; 2+ messages in thread
From: Jay.Estabrook @ 1998-01-29  5:04 UTC (permalink / raw)


>>> 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... ;-}

Patching should follow the following sequence for correct operation:

    cd /usr/local/src
    tar xzf /somewhere/linux-2.0.32.tar.gz
    mv linux linux-2.0.32
    cd linux-2.0.32
    zcat /somewhere/alpha-patches-2.0.32-0.1.gz | patch -p1 -E >& ../01.log
    rm -f `find . -name '*.orig' -print`

YMMV if you use the 2.0.32 patches on top of 2.0.33, as there are reports of
strange clock behavior on some platforms (SX at least).

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------

-- 
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-01-29 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-01-29 15:37 Patching the Kernel (Was: Re: LX164 Alpha 533Mhz) Tommy Cheung
  -- strict thread matches above, loose matches on Subject: below --
1998-01-29  5:04 LX164 Alpha 533Mhz Jay.Estabrook
1998-01-29 15:18 ` Patching the Kernel (Was: Re: LX164 Alpha 533Mhz) Dan Weeks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox