Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ahhh... But you do know if you have the entire repo and the device tree in place, that you can build just one package. Assume for a moment, that your environment is Linux based and that your device handset is a Samsung i9000 (Galaxy S), then in your source tree you would have <em>device/samsung/galaxys</em>, which contains proprietary libraries and extra code related only specifically to the hardware for the Samsung i9000.</p> <p>Then its a matter of having to do this as a once-off operation - </p> <pre><code>. build/envsetup.sh lunch </code></pre> <p>Pick Samsung Galaxy s from the lunch menu. This is the tricky bit in ensuring your device handset appears on the lunch menu!</p> <pre><code>make -jX </code></pre> <p>(Replace X with the appropriate number of cores your processor has)</p> <p>Your entire system.img/boot.img would be deposited in <em>out/target/product/samsung/galaxys</em> after a couple of hours depending on how fast your machine/environment is.</p> <p>Now, to build one package you simply enter this:</p> <pre><code>make Launcher2 </code></pre> <p>Now you will have a new android app called Launcher.apk that will be deposited in <em>out/target/product/samsung/galaxys/system/app</em> directory.</p> <p>How?</p> <p>Simple, when after doing a '<strong>lunch</strong>', and invoke this command</p> <pre><code>make modules &gt; modules_list.txt </code></pre> <p>The resulting output will contain the names of modules in that file <strong>modules_list.txt</strong>, that can be built on the command line - modules in the context of the entire AOSP source tree, it can be a (static|shared) library, native executable or even Android Java app.</p> <p>Now, do not bother cleaning out the entire <em>out/</em> tree (even though that can swallow up a lot of space), leave that in there to speed up the build process of individual modules.</p> <p>If you really really want to delete them, issue this:</p> <pre><code>make clean &amp;&amp; make clobber </code></pre> <p>and the entire <em>out/</em> directory is removed and gone for good.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload