Gentoo Archives: gentoo-catalyst

From: Brian Dolbec <dolsen@g.o>
To: gentoo-catalyst@l.g.o
Cc: vapier@g.o
Subject: Re: [gentoo-catalyst] [PATCH] add arm64 support
Date: Sat, 22 Feb 2014 22:13:43
Message-Id: 20140222140913.62d38efa.dolsen@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH] add arm64 support by Mike Frysinger
1 On Tue, 21 Jan 2014 23:38:43 -0500
2 Mike Frysinger <vapier@g.o> wrote:
3
4 > ---
5 > arch/arm64.py | 16 ++++++++++++++++
6 > 1 file changed, 16 insertions(+)
7 > create mode 100644 arch/arm64.py
8 >
9 > diff --git a/arch/arm64.py b/arch/arm64.py
10 > new file mode 100644
11 > index 0000000..f665e89
12 > --- /dev/null
13 > +++ b/arch/arm64.py
14 > @@ -0,0 +1,16 @@
15 > +
16 > +import builder,os
17 > +from catalyst_support import *
18 > +
19 > +class arch_arm64(builder.generic):
20 > + "builder class for arm64"
21 > + def __init__(self,myspec):
22 > + builder.generic.__init__(self,myspec)
23 > + self.settings["CHROOT"]="chroot"
24 > + self.settings["CFLAGS"]="-O2 -pipe"
25 > + self.settings["CFLAGS"]="-O2 -pipe"
26 > + self.settings["CHOST"]="aarch64-unknown-linux-gnu"
27 > +
28 > +def register():
29 > + "Inform main catalyst program of the contents of this plugin."
30 > + return ({ "arm64":arch_arm64 }, ("aarch64","arm64", ))
31
32
33 I modified the patch to apply to the restructured paths in the pending
34 branch. Since it should not affect the rewrite patches to be merged.
35 I've applied it to the pending branch which should be merged to master
36 soon.
37
38 Please checkout the pending branch and test run it please to ensure it
39 works the way you submitted (or better ;) )
40
41 The code can run from directly from the checkout. There is even a
42 convenience file in the base directory called testpath.
43 Edit a catalyst.conf. (and possibly a catalyst.rc) to use the checkout
44 directory files.
45
46 from a terminal:
47
48 source ./testpath
49 catalyst -c my-local-test.conf -f some-stage.spec
50
51 You could also edit a copy of the catalyst-2.9999 ebuild to point
52 to the pending branch and install it.
53
54 P.S. Be aware that the pending branch can/does get force pushes in
55 preparation for final merge into master.
56
57 --
58 Brian Dolbec <dolsen>