Building Android in Ubuntu 11.10 64bit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Building Android in Ubuntu 11.10 64bit

649 Views
RogerioNunes
NXP Employee
NXP Employee

Hi,

For those trying to build Android in a version of Ubuntu later than 10.04 LTS, I successfully built Android BSP R10.3.2 for iMX53smd board in Ubuntu 11.10 64bit after applying the following two additional patches:


<aosp>/frameworks/base:

diff --git a/libs/utils/RefBase.cpp b/libs/utils/RefBase.cpp
index 0bd1af4..d28b751 100644
--- a/libs/utils/RefBase.cpp
+++ b/libs/utils/RefBase.cpp
@@ -480,7 +480,7 @@ void RefBase::weakref_type::printRefs() const
 
 void RefBase::weakref_type::trackMe(bool enable, bool retain)
 {
-    static_cast<const weakref_impl*>(this)->trackMe(enable, retain);
+    static_cast<weakref_impl*>(this)->trackMe(enable, retain);
 }


<aosp>/build:

diff --git a/core/combo/HOST_linux-x86.mk b/core/combo/HOST_linux-x86.mk
index c871613..1a5e17f 100644
--- a/core/combo/HOST_linux-x86.mk
+++ b/core/combo/HOST_linux-x86.mk
@@ -58,6 +58,6 @@ HOST_GLOBAL_CFLAGS += \
        -include $(call select-android-config-h,linux-x86)
 
 # Disable new longjmp in glibc 2.11 and later. See bug 2967937.
-HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
+HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0


I built userdebug image.

Regards.

Labels (1)
0 Kudos
2 Replies

468 Views
RogerioNunes
NXP Employee
NXP Employee

Hi,

Are you talking about Adeneo BSP for the QSB or Freescale images for the SMD board?

I've been working with the SMD.

Following the steps on the User Guide that is inside the docs folder should work even in a 64bit environment if you are planing to use an SD card.

But you can also use MFGTool in a Windows environment to flash the images that you have to internal eMMC in case you are using SMD board as well.

Be careful with the init.rc configuration inside the ramdisk image. It depends on what storage I'll be using and the default is eMMC for SMD. Instruction on how to change the default are inside the User Guide html as well.

Regards.

Krishna Pavan said:

Hi,

I have worked with Linux and not Android, So, I need some help, if possible, from you as you have been working on a 64-bit system.

I have recovery.img  system.img  uramdisk.img images in SD folder. I have downloaded the binaries directly.

Can you please tell me, how to use them?

Please Inform!

0 Kudos

468 Views
KrishnaPavan
Contributor II

Hi,

I have worked with Linux and not Android, So, I need some help, if possible, from you as you have been working on a 64-bit system.

I have recovery.img  system.img  uramdisk.img images in SD folder. I have downloaded the binaries directly.

Can you please tell me, how to use them?

Please Inform!

0 Kudos