Project

General

Profile

Replicant60BuildTips » History » Revision 2

Revision 1 (Wolfgang Wiedmeyer, 06/21/2017 08:50 PM) → Revision 2/7 (Wolfgang Wiedmeyer, 06/21/2017 09:12 PM)

h1. Tips for building Replicant 

 h2. Build errors 

 On a less powerful build host, the following build error can happen: 
 <pre> 
 target Java: org.cyanogenmod.platform.sdk (/home/replicantbuilder/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes) 
 javac: file not found: /home/replicantbuilder/replicant-6.0/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java 
 Usage: javac <options> <source files> 
 use -help for a list of possible options 
 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 
 make: *** [/home/replicantbuilder/replicant-6.0/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar] Error 41 
 </pre> 

 This can be fixed by building the specific target that fails: 
 <pre> 
 mka org.cyanogenmod.platform-res 
 </pre> 

 h2. Cleaning up 

 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. 

 h3. make targets 

 To remove everything, including the toolchain build, run 
 <pre> 
 make clobber 
 </pre> 

 If you want to keep the toolchain, but all binaries for the target device and all compiled host tools should be deleted, run 
 <pre> 
 make clean 
 </pre> 

 If only the built toolchain should go away, run 
 <pre> 
 make tcclean 
 </pre> 

 h3. Signing keys 

 Keys for signing the images can be deleted with 
 <pre> 
 rm -r vendor/replicant-security 
 </pre> 

 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.