$ cd <ANDROID_WORKING_DIR>/devicethen download the patch file from following link into the folder:
| Description | Resource URL | Features |
| Android source code patch | Android-2.3.7_r1.tar.gz (~ 4 MB) |
|
$ tar -zxvf Android-2.3.7_r1.tar.gzNow you can see a new folder < ANDROID_WORKING_DIR >/device/atmel.
$ cd <ANDROID_WORKING_DIR>
$ make clean
$ source build/envsetup.sh
$ partner_setup sam9m10
$ choosecombo Device release sam9m10 eng
build/envsetup.sh choosecombo choosecombo [Device|Simulator] [release|debug] [device_name] [variants]
user | userdebug | eng. For detailed information, please goto http://source.android.com/source/building.html and have a look at section "Choose a Target".
partner_setup partner_setup is a method to copy the modified code from device/atmel to its original space. This command just changes the space to location. Therefore, if you modify the code under device/atmel, you need to run partner_setup before rebuild the your code.
$ partner_setup sam9g45
$ choosecombo Device release sam9g45 eng
$ partner_setup sam9x5
$ choosecombo Device release sam9x5 eng
When the configuration is finished, the messages will be similar as following:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=sam9m10
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GWK74
$ make
$ make -j2
or
$ make -j4
to speed up the building process.
Generated: (out/target/product/sam9m10/android-info.txt) Target system fs image: out/target/product/sam9m10/obj/PACKAGING/systemimage_intermediates/system.img Install system fs image: out/target/product/sam9m10/system.img Target ram disk: out/target/product/sam9m10/ramdisk.img Target userdata fs image: out/target/product/sam9m10/userdata.img Installed file list: out/target/product/sam9m10/installed-files.txt
Copyright by the contributing authors. All material on the platform is the property of the contributing authors.
Android is a trademark of Google Inc. Use of this trademark is subject to Google Permissions
Atmel and others, are registered trademarks or trademarks of Atmel or its subsidiaries.![]()
ARM and others are registered trademarks or trademarks or ARM Ltd. Other terms and product names may be trademarks of others.
Under the terms of the Creative Commons Attribution License