1 |
I am very interested in using Catalyst to make Stages 1-3 for Pentium M |
2 |
CPUs. The problem with just using Pentium 3 stages is that Pentium M |
3 |
supports SSE2 instructions, whereas P3 does not. Adding -msse2 to my |
4 |
CFLAGS is fine for me, but when I want to reinstall or setup a Faketoo[1] |
5 |
instance for Portage development on my laptop, I don't want to have to |
6 |
start from Stage 1. Even if no-one else in the world is interested in |
7 |
Pentium M stage tarballs (which I seriously doubt is the case), I would |
8 |
like them for my own use. |
9 |
|
10 |
I tried first with this specfile: |
11 |
|
12 |
subarch: pentium-m |
13 |
version_stamp: 20040509 |
14 |
target: stage1 |
15 |
rel_type: default |
16 |
rel_version: 2004.1 |
17 |
profile: default-pentium3-2004.1 |
18 |
snapshot: 20040413 |
19 |
source_subpath: default/stage3-pentium3-2004.1 |
20 |
|
21 |
But the result was (not surprisingly for those of you who are familiar |
22 |
with Catalyst): |
23 |
|
24 |
: jmglov@laurana; sudo catalyst -f /etc/catalyst/pentium-m-stage1-20040509.spec |
25 |
Setting storedir to default value "/var/tmp/catalyst" |
26 |
Setting portdir to default value "/usr/portage" |
27 |
Setting distdir to config file value "/usr/portage/distfiles" |
28 |
Setting options to config file value "ccache pkgcache" |
29 |
Setting sharedir to config file value "/usr/lib/catalyst" |
30 |
Compiler cache support enabled. |
31 |
Package cache support enabled. |
32 |
Traceback (most recent call last): |
33 |
File "/usr/bin/catalyst", line 100, in ? |
34 |
mytarget=targetmap[myspec["target"]](myspec,addlargs) |
35 |
File "/usr/lib/catalyst/modules/targets.py", line 367, in __init__ |
36 |
generic_stage_target.__init__(self,spec,addlargs) |
37 |
File "/usr/lib/catalyst/modules/targets.py", line 73, in __init__ |
38 |
self.arch=self.subarchmap[self.settings["subarch"]](self.settings) |
39 |
KeyError: 'pentium-m' |
40 |
|
41 |
So I altered the specfile to this: |
42 |
|
43 |
subarch: pentium3 |
44 |
version_stamp: 20040509 |
45 |
target: stage1 |
46 |
rel_type: default |
47 |
rel_version: 2004.0 |
48 |
profile: default-pentium3-2004.0 |
49 |
snapshot: 20040413 |
50 |
source_subpath: default/stage3-pentium3-2004.1 |
51 |
|
52 |
(I tweaked the rel_version and profile back to 2004.0 because setting |
53 |
them to 2004.1 was resulting in a bad symlink which killed Catalyst |
54 |
at a later point.) |
55 |
|
56 |
I also added an envscript, containing the single line: |
57 |
|
58 |
export CFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -pipe" |
59 |
|
60 |
The problem is that my CFLAGS seem to be ignored when Catalyst starts |
61 |
to build the stage. |
62 |
|
63 |
Anyone have any ideas as to what I am doing wrong? |
64 |
|
65 |
|
66 |
-- |
67 |
Josh Glover |
68 |
|
69 |
GPG keyID 0xDE8A3103 (C3E4 FA9E 1E07 BBDB 6D8B 07AB 2BF1 67A1 DE8A 3103) |
70 |
gpg --keyserver pgp.mit.edu --recv-keys DE8A3103 |