Re: [android-building] Build sdk add-on for x86 arch

343 views
Skip to first unread message

Ying Wang

unread,
Jun 3, 2013, 2:27:30 PM6/3/13
to Android Building
I guess that's because you configured lls_addon as an arm device.
To just build x86 sdk_addon, you can try:
$ make -j PRODUCT-full_x86-sdk_addon
(I never did it myself, though).


On Mon, Jun 3, 2013 at 11:15 AM, Anush Krishnamurthy <iama...@gmail.com> wrote:
Hello all -
     I want to build an SDK Addon for x86 architecture. I copied sample device from the source to generate my own device and was able to sucessfully build a sdk addon. However, when I see it in eclipse, it comes up as a ARM device. I want it to be a x86 device. How do I do this ?
  
    All I am doing is building the sdk addon. I am not creating a whole new device. 

akrish9@akrish9-ws:~/aosp$ make -j8 PRODUCT-lls_addon-sdk_addon
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=lls_addon
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-47-generic-x86_64-with-Ubuntu-10.04-lucid
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=out
============================================



Thanks,
Anush

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ying Wang

unread,
Jun 3, 2013, 8:43:37 PM6/3/13
to Android Building
Just use the "make PRODUCT-<product_name>-sdk_addon" syntax.


On Mon, Jun 3, 2013 at 4:02 PM, Anush Krishnamurthy <iama...@gmail.com> wrote:
Thanks Ying. That works for full_x86.

However, lets say i defined /device/<my company>/<my device>/

how do i build the sdk addon for my device??

Anush

Praveen Kumar

unread,
Jun 17, 2013, 3:57:53 PM6/17/13
to android-...@googlegroups.com

Hi Anush,

I have tried building it for x86 architecture in 4.1.2

You can build the x86 addon by changing the sdk.mk (for ARM) to sdk_x86.mk (for x86) in file device/sample/products/sample_addon.mk ( 4.1.2 )

This add-on extends the default sdk product.

$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk.mk)

to

This add-on extends the default sdk product.

$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_x86.mk)


-Praveen

On Tuesday, 4 June 2013 19:13:59 UTC+5:30, Anush Krishnamurthy wrote:
Ying. I tried with that and this is what I get..

build/core/tasks/sdk-addon.mk:106: *** Trying to build sdk_addon, but product 'device/<manufacturer>/<devicename>/full_<man>_<dev>.mk' does not define one.  Stop.

Could you point me to any documentation for adding sdk addon for a custom product.

Thanks,
Anush
Reply all
Reply to author
Forward
0 new messages