The XDAndroid Project is no longer active.
This site provides archived information from while the project was under development. Some links may no longer function.

Difference between revisions of "Eclair Build Configuration"

From The XDAndroid Project
Jump to navigation Jump to search
[unchecked revision][checked revision]
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
+
With the XDAndroid source checked out, the build system must be configured to build an XDAndroid product for one of the [[Supported Devices|supported targets]]. Build system configuration is done via a single file in the root of the XDAndroid source tree whose name is <tt>buildspec.mk</tt>.
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://elykogit.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://elykogit.co.cc CLICK HERE]=
 
----
 
</div>
 
With the XDAndroid source checked out, the build system must be configured to build an XDAndroid product for one of the [[Supported Devices|supported targets]]. Build system configuration is done via a single file in the root of the XDAndroid source tree whose name is &lt;tt>buildspec.mk&lt;/tt>.
 
  
The Android build system will use &lt;tt>buildspec.mk&lt;/tt> to pass a variety of variables to the &lt;tt>make&lt;/tt> program which parses all of the Makefile recipes that comprise the build system. Most of the variables supported by &lt;tt>buildspec.mk&lt;/tt> are self-explanatory, especially after becoming familiar with the basics of an Android system.
+
<div class="warning">'''NOTE''' For build configuration options for the <tt>froyo</tt> branch, please see [[Froyo Build Configuration]].</div>
 +
<div class="warning">'''NOTE''' For build configuration options for the <tt>gingerbread</tt> branch, please see [[Build Configuration]].</div>
 +
 
 +
The Android build system will use <tt>buildspec.mk</tt> to pass a variety of variables to the <tt>make</tt> program which parses all of the Makefile recipes that comprise the build system. Most of the variables supported by <tt>buildspec.mk</tt> are self-explanatory, especially after becoming familiar with the basics of an Android system.
  
 
==Build System Configuration==
 
==Build System Configuration==
Simply create a blank plain-text file in the root of your XDAndroid source tree. Name the file &lt;tt>buildspec.mk&lt;/tt> and edit it with your preferred text editor.
+
Simply create a blank plain-text file in the root of your XDAndroid source tree. Name the file <tt>buildspec.mk</tt> and edit it with your preferred text editor.
  
 
Variables are each defined on their own single line. Similar to other configuration files, anything which proceeds a pound sign (#) is ignored as a comment.
 
Variables are each defined on their own single line. Similar to other configuration files, anything which proceeds a pound sign (#) is ignored as a comment.
  
To instruct the build system to generate an XDAndroid system image, the following variables '''must''' be defined in &lt;tt>buildspec.mk&lt;/tt>...
+
To instruct the build system to generate an XDAndroid system image, the following variables '''must''' be defined in <tt>buildspec.mk</tt>...
  
&lt;syntaxhighlight lang="make"># Configure for an XDAndroid release engineering target.
+
<syntaxhighlight lang="make"># Configure for an XDAndroid release engineering target.
 
TARGET_PRODUCT := xdandroid_msm_us
 
TARGET_PRODUCT := xdandroid_msm_us
 
TARGET_BUILD_VARIANT := eng
 
TARGET_BUILD_VARIANT := eng
TARGET_BUILD_TYPE := release&lt;/syntaxhighlight>
+
TARGET_BUILD_TYPE := release</syntaxhighlight>
  
The following table outlines some optional &lt;tt>buildspec.mk&lt;/tt> flags which are used often.
+
The following table outlines some optional <tt>buildspec.mk</tt> flags which are used often.
  
 
{|class="slimtable"
 
{|class="slimtable"
Line 29: Line 24:
 
!Effect
 
!Effect
 
|-
 
|-
|&lt;tt>USE_GOOGLE_APPS := true&lt;/tt>
+
|<tt>USE_GOOGLE_APPS := true</tt>
 
|Add extracted, proprietary Google apps to the system image.
 
|Add extracted, proprietary Google apps to the system image.
 
|-
 
|-
|&lt;tt>KITCHEN_BUILD := true&lt;/tt>
+
|<tt>KITCHEN_BUILD := true</tt>
 
|Add absolutely no proprietary bits to the system image. Used for kitchen base images.
 
|Add absolutely no proprietary bits to the system image. Used for kitchen base images.
 
|-
 
|-
|&lt;tt>WITH_JIT := true&lt;/tt>
+
|<tt>WITH_JIT := true</tt>
 
|Enable the Just-in-Time compiler for the Dalvik VM.
 
|Enable the Just-in-Time compiler for the Dalvik VM.
 
|-
 
|-
|&lt;tt>TARGET_USERIMAGES_USE_EXT2 := true&lt;/tt>
+
|<tt>TARGET_USERIMAGES_USE_EXT2 := true</tt>
 
|Build an ext2 system image (currently needed along with KITCHEN_BUILD for kitchen base images).
 
|Build an ext2 system image (currently needed along with KITCHEN_BUILD for kitchen base images).
 
|}
 
|}
  
After completing the build configuration and saving the &lt;tt>buildspec.mk&lt;/tt> file, you can proceed with [[Building and Packaging]] the system.
+
After completing the build configuration and saving the <tt>buildspec.mk</tt> file, you can proceed with [[Building and Packaging]] the system.

Latest revision as of 20:01, 11 June 2011

With the XDAndroid source checked out, the build system must be configured to build an XDAndroid product for one of the supported targets. Build system configuration is done via a single file in the root of the XDAndroid source tree whose name is buildspec.mk.

NOTE For build configuration options for the froyo branch, please see Froyo Build Configuration.
NOTE For build configuration options for the gingerbread branch, please see Build Configuration.

The Android build system will use buildspec.mk to pass a variety of variables to the make program which parses all of the Makefile recipes that comprise the build system. Most of the variables supported by buildspec.mk are self-explanatory, especially after becoming familiar with the basics of an Android system.

Build System Configuration

Simply create a blank plain-text file in the root of your XDAndroid source tree. Name the file buildspec.mk and edit it with your preferred text editor.

Variables are each defined on their own single line. Similar to other configuration files, anything which proceeds a pound sign (#) is ignored as a comment.

To instruct the build system to generate an XDAndroid system image, the following variables must be defined in buildspec.mk...

# Configure for an XDAndroid release engineering target.
TARGET_PRODUCT := xdandroid_msm_us
TARGET_BUILD_VARIANT := eng
TARGET_BUILD_TYPE := release

The following table outlines some optional buildspec.mk flags which are used often.

Variable Effect
USE_GOOGLE_APPS := true Add extracted, proprietary Google apps to the system image.
KITCHEN_BUILD := true Add absolutely no proprietary bits to the system image. Used for kitchen base images.
WITH_JIT := true Enable the Just-in-Time compiler for the Dalvik VM.
TARGET_USERIMAGES_USE_EXT2 := true Build an ext2 system image (currently needed along with KITCHEN_BUILD for kitchen base images).

After completing the build configuration and saving the buildspec.mk file, you can proceed with Building and Packaging the system.