Project

General

Profile

Replicant60BuildTips » History » Version 3

Denis 'GNUtoo' Carikli, 10/19/2019 05:28 PM
The information here applies to Replicant 6.0

1 3 Denis 'GNUtoo' Carikli
h1. Tips for building Replicant 6.0
2 1 Wolfgang Wiedmeyer
3
h2. Build errors
4
5
On a less powerful build host, the following build error can happen:
6
<pre>
7
target Java: org.cyanogenmod.platform.sdk (/home/replicantbuilder/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes)
8
javac: file not found: /home/replicantbuilder/replicant-6.0/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java
9
Usage: javac <options> <source files>
10
use -help for a list of possible options
11
build/core/java.mk:394: recipe for target '/home/replicantbuilder/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar' failed
12
make: *** [/home/replicantbuilder/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar] Error 41
13
</pre>
14
15
This can be fixed by building the specific target that fails:
16
<pre>
17
mka org.cyanogenmod.platform-res
18
</pre>
19
20
h2. Cleaning up
21 2 Wolfgang Wiedmeyer
22
Sometimes, you may want to start over again from the point where either nothing is built yet or only parts are already built. A reason could be that you are facing errors that didn't happen before.
23
24
h3. make targets
25
26
To remove everything, including the toolchain build, run
27
<pre>
28
make clobber
29
</pre>
30
31
If you want to keep the toolchain, but all binaries for the target device and all compiled host tools should be deleted, run
32
<pre>
33
make clean
34
</pre>
35
36
If only the built toolchain should go away, run
37
<pre>
38
make tcclean
39
</pre>
40
41
h3. Signing keys
42
43
Keys for signing the images can be deleted with
44
<pre>
45
rm -r vendor/replicant-security
46
</pre>
47
48
This can be helpful when there are issues with the @sign-build@ script. The keys will be regenerated the next time the @sign-build@ script runs. Please note that a factory reset on the device is needed when the images are signed with new keys.