-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathHACKING
135 lines (93 loc) · 4.29 KB
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
1010101010101010101010101010101010101010101010101010101010101010101010101010101
0101010101010101010101010101010101010101010101010101010101010101010101010101010
1 ___ ___ _ ______ 1
0 | \/ | (_) | _ \ Open Source Tools, 0
1 | . . | _____ ___ ___| | | |_____ __ Firmware, and HDL code for 1
0 | |\/| |/ _ \ \/ / |/ _ \ | | / _ \ \ / / the Moxie processor core. 0
1 | | | | (_) > <| | __/ |/ / __/\ V / 1
0 \_| |_/\___/_/\_\_|\___|___/ \___| \_/ http://moxielogic.org/blog 0
1 1
0101010101010101010101010101010101010101010101010101010101010101010101010101010
1010101010101010101010101010101010101010101010101010101010101010101010101010101
Hacking moxiedev tools
=======================
The moxiedev tree contains development sources for the GNU software
development tools suitable for targeting the moxie architecture.
Directories
------------
build
This directory is created at build time. We place the gcc and src
build directories here.
busybox
This is managed as a git submodule using the busybox-moxie
repository hosted at http://github.com/atgreen/busybox-moxie. The
ant build.xml script will initialize and pull the source
automatically when building.
elf2flt
This contains an anonymous cvs checkout of the upstream elf2flt
tree.
gcc
This contains an anonymous svn checkout of the gcc tree from
gcc.gnu.org. Moxie patches are applied to this and maintained in
our mercurial repository. However, since the repo contains .svn
directories, we can still update the tree directly from the upstream
gcc trunk with svn.
linux-2.6
This is managed as a git submodule using the linux-2.6-moxie
repository hosted at http://github.com/atgreen/linux-2.6-moxie. The
ant build.xml script will initialize and pull the source
automatically when building.
moxielyzer
This is a moxie binary analysis tools, and is the original source
for this project.
qemu
This is managed as a git submodule using the qemu-moxie repository
hosted at http://github.com/atgreen/qemu-moxie. The ant build.xml
script will initialize and pull the source automatically when
building.
root
This is the install directory for when we build and install for
local testing.
rtems
This is managed as a git submodule using the qemu-rtems repository
hosted at http://github.com/atgreen/rtems-moxie. The ant build.xml
script will initialize and pull the source automatically when
building.
src
This contains an anonymous cvs checkout of the src tree (binutils,
gas, ld, sim, gdb, newlib and libgloss) from sourceware.org.
Moxie patches are applied to this and maintained in our mercurial
repository. However, since the repo contains CVS directories, we
can still update the tree directly from the upstream src trunk with
cvs.
u-boot
This contains an anonymous git checkout of the trunk of the u-boot tree.
Moxie patches are applied to this and maintined in our git
repository. However, since the repo contains the .git directory, we
can still update the tree directly from the upstream u-boot trunk with
git.
Building
---------
Use the ant build script to configure, build and install the tools
like so:
$ ant build
The script contains several other options, which you can list by
simply running "ant" with no options.
Some ant installation will require that you add moxiedev's
root/usr/bin directory to your path before building. The build system
will exit with an error message if this is required.
Signing RPMS
-------------
The RPMS hosted in the Moxie Logic yum repository are signed with the
official Moxie Logic signing key. This is how it's done..
Make sure you have the GPG signing key installed properly like so:
$ gpg --list-keys
Extract the public key from the key ring into a text file:
$ gpg --export -a 'Moxie Logic' > RPM-GPG-KEY-MoxieLogic
Import the public key into the RPM DB:
$ sudo rpm --import RPM-GPG-KEY-MoxieLogic
Configure your ~/.rpmmacros file to include the following:
%_signature gpg
%_gpg_name Moxie Logic
Now you're ready to sign the packages:
$ find dist/MoxieLogic -name \*.rpm | xargs rpm --addsign