64
CONFIDENTIAL
DOC-USR-0239-04
____________________________________________________________________________________
Z3 Technology, LLC
♦
100 N. 8th St. STE 250
♦
Lincoln, NE 68508-1369 USA
♦
+1.402.323.0702
APPENDIX B: Speeding up the Build Process
The Q603-RPS build process can be lengthy This section details some steps that can reduce the build time
considerably.
•
Setting BB_NUMBER_THREADS
The BB_NUMBER_THREADS environment variable sets the maximum number of packages that can be built in
parallel during the build process. If not set the default is 4. We recommend setting this value to 2x the
number of processors on the build machine.
Beware
if the build machine has
8G of RAM or less
it is
recommended to leave BB_NUMBER_THREADS at 4 or below as this can create a low memory situation.
BB_NUMBER_THREADS can be set in .bashrc:
•
Setting PARALLEL_MAKE
The PARALLEL_MAKE environment variable sets the maximum number of parallel compiles that can occur
within a package. If not set the default is 4. We recommend setting this value to 2x the number of
processors on the build machine. PARALLEL_MAKE can be set in the users .bashrc:
•
Pre-download codeaurora
The open-source code for this platform is provided via codeaurora. The initial make universe for any of our
releases will repo sync this code over the network which can take time. To avoid doing this more than once
we have provided a way to use a local copy of codeaurora. To create a local copy of codeaurora run the
following:
1. mkdir codeaurora_LE.UM.2.3.3.r1-06800-QCS605.0
2. cd codeaurora_LE.UM.2.3.3.r1-06800-QCS605.0
3. repo init -u git://
codeaurora.org/le/le/manifest.git
-b release -m LE.UM.2.3.3.r1-06800-QCS605.0.xml
&& repo sync -q -j8 #(This will take some time)
4. Set LOCAL_REPO in .bashrc to the location of your repo:
•
Designate a download directory (DL_DIR)
If using more than one RPS release or directory is being used it can save time to have a common download
directory for codeaurora. The codeaurora build process will fetch opensource code over the network and
cache it in the DL_DIR but default this is in the prjroot/downloads directory. To prevent the need to
redownload source for each project set a common DL_DIR in .bashrc: