Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Adding realtime-prempt kernel patches to gentoo-sources
Date: Thu, 07 Jul 2005 20:59:34
Message-Id: 5bdc1c8b05070713527b2e40@mail.gmail.com
In Reply to: Re: [gentoo-user] Adding realtime-prempt kernel patches to gentoo-sources by Christian Heim
1 Christian,
2 Again, thanks for the info. It's very helpful. I'll investigate
3 this more this evening.
4
5 cheers,
6 Mark
7
8 On 7/7/05, Christian Heim <christian.th.heim@×××.de> wrote:
9 > Mark Knecht wrote:
10 > > On 7/7/05, Christian Heim <christian.th.heim@×××.de> wrote:
11 > >
12 > > Hi Christian,
13 > > Thanks for the response. There were just two problems, as best I
14 > > can tell. One was in the upper level makefile which the second was in
15 > > a more tecnical piece of code. I'm providing the output here more for
16 > > conversation and not really asking for technical help on changing
17 > > code. This is just for my learning.
18 > >
19 > > In the first one it appears that Gentoo does an extra version so I
20 > > can probably fake my way around this but changing the patch file
21 > > itself to expect the Gentoo kernel I want to patch. Is that a
22 > > reasonable strategy?
23 >
24 > Make, if I understood you right, you would like to do the prempt stuff
25 > ontop of gentoo-sources, right ?
26 >
27 > Well then simply do the following:
28 >
29 > # emerge a fresh copy of gentoo-sources
30 > $ emerge gentoo-sources
31 >
32 > # create a copy (or call it a fork ;)) of this kernel-directory
33 > $ cd /usr/src
34 > $ rsync -rt --progress linux-2.6.12-gentoo-r4/* linux-2.6.12-gentoo-r4.orig
35 >
36 > # now go on and apply your patch to the
37 > linux-2.6.12-gentoo-r4-directory. Once you are done, just go back to
38 > /usr/src and create a diff between plain gentoo-sources and your
39 > prempt-patched gentoo-sources.
40 >
41 > $ cd /usr/src
42 > $ diff -Nrup linux-2.6.12-gentoo-r4.orig linux-2.6.12-gentoo-r4 >
43 > gentoo-sources-2.6.12-r4-prempt.patch
44 >
45 > > In the first one it appears that Gentoo does an extra version so I
46 > > can probably fake my way around this but changing the patch file
47 > > itself to expect the Gentoo kernel I want to patch. Is that a
48 > > reasonable strategy?
49 >
50 > See above ;)
51 >
52 > > In the second, since it's apparently just a difference in brakets
53 > > I'm more curious about why gentoo-sources would differ from what Ingo
54 > > was apparently expectinb in the kernel config file, but again it seems
55 > > pretty minor. Would you agree?
56 >
57 > Yeah, those rejects are really pretty minor. I guess these brakets
58 > differences result from vesafb. But that's only a guess.
59 >
60 > > Thanks,
61 > > Mark
62 > >
63 > > Makefile.rej:
64 > > ***************
65 > > *** 1,7 ****
66 > > VERSION = 2
67 > > PATCHLEVEL = 6
68 > > SUBLEVEL = 12
69 > > - EXTRAVERSION =
70 > > NAME=Woozy Numbat
71 > >
72 > > # *DOCUMENTATION*
73 > > --- 1,7 ----
74 > > VERSION = 2
75 > > PATCHLEVEL = 6
76 > > SUBLEVEL = 12
77 > > + EXTRAVERSION = -RT-V0.7.51-11
78 > > NAME=Woozy Numbat
79 > >
80 > > # *DOCUMENTATION*
81 > >
82 > >
83 > > drivers/video/console/fbcon.c.rej:
84 > >
85 > > ***************
86 > > *** 1092,1101 ****
87 > > struct display *p = &fb_display[vc->vc_num];
88 > > struct fbcon_ops *ops = info->fbcon_par;
89 > >
90 > > - if (!fbcon_is_inactive(vc, info))
91 > > ops->putcs(vc, info, s, count, real_y(p, ypos), xpos,
92 > > get_color(vc, info, scr_readw(s), 1),
93 > > get_color(vc, info, scr_readw(s), 0));
94 > > }
95 > >
96 > > static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos)
97 > > --- 1091,1101 ----
98 > > struct display *p = &fb_display[vc->vc_num];
99 > > struct fbcon_ops *ops = info->fbcon_par;
100 > >
101 > > + if (!fbcon_is_inactive(vc, info)) {
102 > > ops->putcs(vc, info, s, count, real_y(p, ypos), xpos,
103 > > get_color(vc, info, scr_readw(s), 1),
104 > > get_color(vc, info, scr_readw(s), 0));
105 > > + }
106 > > }
107 > >
108 > > static void fbcon_putc(struct vc_data *vc, int c, int ypos, int xpos)
109 > >
110 >
111 > Regards Christian
112 > --
113 > gentoo-user@g.o mailing list
114 >
115 >
116
117 --
118 gentoo-user@g.o mailing list