-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-on-linux.html
409 lines (397 loc) · 17.1 KB
/
build-on-linux.html
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine">
<meta name="author" content="eboye">
<link rel="apple-touch-icon" sizes="57x57" href="imgs/favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="imgs/favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="imgs/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="imgs/favicons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="imgs/favicons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="imgs/favicons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="imgs/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="imgs/favicons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="imgs/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="imgs/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="imgs/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="imgs/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="imgs/favicons/favicon-16x16.png">
<link rel="manifest" href="imgs/favicons/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="imgs/favicons/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Twitter Card data -->
<meta name="twitter:card" content="imgs/featured_image_aicp.png">
<meta name="twitter:site" content="@eboyee">
<meta name="twitter:title" content="AICP OTA">
<meta name="twitter:description" content="Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine">
<meta name="twitter:creator" content="@eboyee">
<meta name="twitter:image:src" content="imgs/featured_image_aicp.png">
<!-- Open Graph data -->
<meta property="og:title" content="AICP OTA"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://eboye.github.io/AICP-OTA/build-on-linux.html"/>
<meta property="og:image" content="imgs/featured_image_aicp.png"/>
<meta property="og:description" content="Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine"/>
<meta property="og:site_name" content="AICP OTA"/>
<title>Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-71822266-1', 'auto');
ga('send', 'pageview', {
'page': location.pathname + location.search + location.hash
});
</script>
</head>
<body>
<nav class="blue-grey darken-4">
<div class="container">
<div class="nav-wrapper">
<a href="https://eboye.github.io/AICP-OTA/" class="brand-logo">
<img src="imgs/aicp_vector.svg" alt="AICP OTA" width="111" height="56"/>
</a>
<a href="#!" data-activates="mobile-menu" class="button-collapse right"><i class="aicp-menu"></i></a>
<ul id="main-nav" class="right hide-on-med-and-down">
<li>
<a href="https://eboye.github.io/AICP-OTA/">
<i class="aicp-download left"></i>OTA updates
</a>
</li>
<li>
<a href="https://plus.google.com/communities/101008638920580274588" target="_blank">
<i class="aicp-google-plus left"></i>Community
</a>
</li>
<li class="active">
<a href="#!" class="dropdown-button" data-activates="source_code" data-beloworigin="true">
<i class="aicp-code left"></i>Source code<i class="aicp-arrow_drop_down right"></i>
</a>
</li>
</ul>
<ul id="source_code" class="dropdown-content">
<li>
<a target="_blank" class="right-align blue-grey-text text-darken-4" href="https://github.com/AICP">
<i class="aicp-github-alt left"></i>GitHub
</a>
</li>
<li>
<a target="_blank" class="right-align blue-grey-text text-darken-4" href="http://gerrit.aicp-rom.com/">
<i class="aicp-code left"></i>Gerrit
</a>
</li>
<li class="divider"></li>
<li class="menu-title allcaps blue-grey-text text-darken-4">Build tutorials</li>
<li class="divider"></li>
<li class="active">
<a href="build-on-linux.html" class="right-align blue-grey-text text-darken-4">
<i class="aicp-linux left"></i>Linux
</a>
</li>
<li>
<a href="build-on-mac.html" class="right-align blue-grey-text text-darken-4">
<i class="aicp-apple left"></i>Mac
</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="jumbotron material-jumbotron blue-grey darken-4 white-text">
<div class="container">
<h1>How to build AICP on Linux?</h1>
<p>This tutorial is for <strong>advanced</strong> Linux users,
<br>follow it <em>step-by-step</em>, please!</p>
</div>
</div>
<div class="container">
<div class="page-header">
<h2>Always use 64-bit System!</h2>
<p class="lead">Tested on <strong>Linux Mint 16 Cinnamon x64</strong></p>
</div>
<ol>
<li>Open terminal, type and install following to wipe current java installs
<mark>(optional)</mark>
:
<br>
<br>
<code>sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*</code>
<br>
<br>
</li>
<li>Then type following to install correct Java 6
<mark>(say OK to prompts and stuff)</mark>
:
<br>
<br>
<code>sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install
oracle-java6-installer</code>
<br>
<br>
</li>
<li>Now type the following to install needed utilities:
<br>
<br>
<code>sudo apt-get install git-core gnupg ccache lzop flex bison gperf build-essential zip curl zlib1g-dev
zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev
libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib
mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6
lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev
libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev
libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python</code>
<br>
<br>
</li>
<li>Now tpye following to create symbolic link:
<br>
<br>
<code>sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so</code>
<br>
<br>
</li>
<li>Create a folder for your repo
<mark>(aicp or some other path if you like)</mark>
:
<br>
<br>
<code>mkdir ~/aicp</code>
<br>
<br>
</li>
<li>Get the repo binary:
<br>
<br>
<code>mkdir ~/bin</code>
<br>
<code>curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo</code>
<br>
<code>chmod a+x ~/bin/repo</code>
<br>
<br>
</li>
<li>Edit <abbr title="~/.bashrc file">~/.bashrc</abbr> file to set some local settings:
<br>
<br>
<code>sudo gedit ~/.bashrc</code>
<br>
<br>
</li>
<li>At the end of the file add following line, save the file and exit:
<br>
<br>
<code>export PATH=~/bin:$PATH</code>
<br>
<br>
</li>
<li>Back to terminal. Type this to install a useful Java selector tool
<mark>(optional)</mark>
:
<br>
<br>
<code>sudo apt-get install zenity</code>
<br>
<code>wget http://webupd8.googlecode.com/files/update-java > ~/bin/update-java</code>
<br>
<code>chmod a+x ~/bin/update-java</code>
<br>
<br>
</li>
<li>Type this to use the Java selector tool to switch to java-6-oracle
<mark>(optional)</mark>
:
<br>
<br>
<code>sudo update-java</code>
<br>
<ins>(First select NONE to remove by pressing CANCEL, then select
<mark>'java-6-oracle'</mark>
and press OK to activate it.)
</ins>
<br>
<br>
</li>
<li>Type the following to navigate to the repo folder:
<br>
<code>cd ~/aicp</code>
<br>
</li>
<!--<br><br>
<li>Now follow instructions at <a href="https://github.com/AICP/platform_manifest" title="AICP GitHub" target="_blank">https://github.com/AICP/platform_manifest</a>.</li>-->
</ol>
<div class="page-header">
<h3>Download the Source</h3>
<p class="lead">Initializing Repository</p>
</div>
<ol>
<li>Repo initialization:
<br>
<br>
<code>repo init -u https://github.com/AICP/platform_manifest.git -b n7.1</code>
<br>
<br>
</li>
<li>sync repo:
<br>
<br>
<code>repo sync</code>
<br>
<br>
</li>
</ol>
<div class="page-header">
<h3>Building</h3>
<p class="lead">After the sync is finished, please read the <a href="http://s.android.com/source/building.html"
title="instructions from the Android site">instructions
from the Android site</a> on how to build.</p>
</div>
<ol>
<li>Build:
<br>
<br>
<code>. build/envsetup.sh</code>
<br>
<code>brunch</code>
<br>
<br>
</li>
<li>You can also build
<mark>(and see how long it took)</mark>
for specific devices like this:
<br>
<br>
<code>. build/envsetup.sh</code>
<br>
<code>time brunch m7</code>
<br>
<br>
</li>
</ol>
<p>Remember to <code>make clobber</code> every now and then!</p>
</div>
<footer class="page-footer grey lighten-4">
<div class="footer-copyright">
<div class="container">
<p class="blue-grey-text text-darken-4">
© 2017 AICP
</p>
</div>
</div>
</footer>
<ul class="side-nav" id="mobile-menu">
<li class="active">
<a href="https://eboye.github.io/AICP-OTA/">
<i class="aicp-download left"></i>OTA updates
</a>
</li>
<li>
<a href="https://plus.google.com/communities/101008638920580274588" target="_blank">
<i class="aicp-google-plus left"></i>Google+ Community
</a>
</li>
<li class="divider"></li>
<li>
<a target="_blank" class="blue-grey-text text-darken-4" href="https://github.com/AICP">
<i class="aicp-github-alt left"></i>GitHub
</a>
</li>
<li>
<a target="_blank" class="blue-grey-text text-darken-4" href="http://gerrit.aicp-rom.com/">
<i class="aicp-code left"></i>Gerrit
</a>
</li>
<li class="divider"></li>
<li class="menu-title allcaps blue-grey-text text-darken-4">Build tutorials</li>
<li class="divider"></li>
<li>
<a href="build-on-linux.html" class="blue-grey-text text-darken-4">
<i class="aicp-linux left"></i>Linux
</a>
</li>
<li>
<a href="build-on-mac.html" class="blue-grey-text text-darken-4">
<i class="aicp-apple left"></i>Mac
</a>
</li>
</ul>
<div class="fixed-action-btn share-btn" style="bottom: 45px; right: 24px;">
<div class="btn-floating btn-large red">
<i class="aicp-share"></i>
</div>
<ul>
<li>
<a target="_blank"
href="https://twitter.com/intent/tweet?source=https://eboye.github.io/AICP-OTA/build-on-linux.html&text=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine https://eboye.github.io/AICP-OTA/build-on-linux.html&hashtags=aicp"
class="btn-floating color-twitter">
<i class="socicon">a</i>
</a>
</li>
<li>
<a target="_blank"
href="https://www.facebook.com/sharer/sharer.php?u=https://eboye.github.io/AICP-OTA/build-on-linux.html&t=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine"
class="btn-floating color-facebook">
<i class="socicon">b</i>
</a>
</li>
<li>
<a target="_blank" href="https://plus.google.com/share?url=https://eboye.github.io/AICP-OTA/build-on-linux.html"
class="btn-floating color-googleplus">
<i class="socicon">c</i>
</a>
</li>
<li>
<a target="_blank"
href="http://pinterest.com/pin/create/button/?url=https://eboye.github.io/AICP-OTA/build-on-linux.html&media=https://eboye.github.io/AICP-OTA/build-on-linux.htmlimgs/featured_image_aicp.png&description=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine"
class="btn-floating color-pinterest">
<i class="socicon">d</i>
</a>
</li>
<li>
<a target="_blank"
href="https://getpocket.com/save?url=https://eboye.github.io/AICP-OTA/build-on-linux.html&title=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine"
class="btn-floating color-pocket">
<i class="socicon">?</i>
</a>
</li>
<li>
<a target="_blank"
href="https://www.tumblr.com/widgets/share/tool?shareSource=legacy&canonicalUrl=&url=https://eboye.github.io/AICP-OTA/build-on-linux.html&title=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine"
class="btn-floating color-tumblr">
<i class="socicon">z</i>
</a>
</li>
<li>
<a target="_blank"
href="http://www.linkedin.com/shareArticle?mini=true&url=https://eboye.github.io/AICP-OTA/build-on-linux.html&title=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine&summary=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine&source=https://eboye.github.io/AICP-OTA/build-on-linux.html"
class="btn-floating color-linkedin">
<i class="socicon">j</i>
</a>
</li>
<li>
<a target="_blank"
href="mailto:?subject=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine&body=Tutorial on how to build AICP Custom ROM from source on Ubuntu Linux machine"
class="btn-floating color-email">
<i class="socicon">@</i>
</a>
</li>
</ul>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/js/materialize.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-storage-api/1.9.4/jquery.storageapi.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>