How to build only 64 bit or 32 bit so files

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to build only 64 bit or 32 bit so files

Albert Lee
Hi, everyone,

I want to add some debug logs in some modules, for example `libcameraservice`.  After modifying and compiling, I noticed that 32 and 64 bit libraryies are always built. While I only use 32 or 64 bit files (the camera server is a 32bit process now).

I want to know if there is a way to compile only 32 or 64 bit libraries to speed up the progress?  Since compiling that two not only takes a long time, but also takes up disk space.

I'm appreciated if you can give me some suggestions.

Thanks,
Albert

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/ea3ba7fe-00c3-4d81-bd08-6996e0fb2967n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to build only 64 bit or 32 bit so files

Wesolowski, Krzysztof
Both variants are build since you made both available. You can set compile_multilib soong property to specify that native process should be only 64 bit, and then when building it all dependencies would also only build same bitness.

BR, K.



From: [hidden email] <[hidden email]> on behalf of Albert Lee <[hidden email]>
Sent: Sunday, December 6, 2020 10:57
To: Android Building <[hidden email]>
Subject: [android-building] How to build only 64 bit or 32 bit so files
 
Hi, everyone,

I want to add some debug logs in some modules, for example `libcameraservice`.  After modifying and compiling, I noticed that 32 and 64 bit libraryies are always built. While I only use 32 or 64 bit files (the camera server is a 32bit process now).

I want to know if there is a way to compile only 32 or 64 bit libraries to speed up the progress?  Since compiling that two not only takes a long time, but also takes up disk space.

I'm appreciated if you can give me some suggestions.

Thanks,
Albert

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/ea3ba7fe-00c3-4d81-bd08-6996e0fb2967n%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/AM0P174MB0068D5290D77A0C132958CC191CE0%40AM0P174MB0068.EURP174.PROD.OUTLOOK.COM.
Reply | Threaded
Open this post in threaded view
|

Re: How to build only 64 bit or 32 bit so files

Kevin Keller
In reply to this post by Albert Lee
Hi,

I would also be interested in this for the Hikey 960. 

Best,
Kevin

From: [hidden email] <[hidden email]> on behalf of Albert Lee <[hidden email]>
Sent: Sunday, December 6, 2020 10:57 AM
To: Android Building <[hidden email]>
Subject: [android-building] How to build only 64 bit or 32 bit so files
 
*** This is an EXTERNAL email. It was sent from outside of u-blox. ***
Hi, everyone,

I want to add some debug logs in some modules, for example `libcameraservice`.  After modifying and compiling, I noticed that 32 and 64 bit libraryies are always built. While I only use 32 or 64 bit files (the camera server is a 32bit process now).

I want to know if there is a way to compile only 32 or 64 bit libraries to speed up the progress?  Since compiling that two not only takes a long time, but also takes up disk space.

I'm appreciated if you can give me some suggestions.

Thanks,
Albert

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/ea3ba7fe-00c3-4d81-bd08-6996e0fb2967n%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/sig.16110d0d4d.CWXP265MB139749534DB35FE02F830410BCCD0%40CWXP265MB1397.GBRP265.PROD.OUTLOOK.COM.
Reply | Threaded
Open this post in threaded view
|

Re: How to build only 64 bit or 32 bit so files

Albert Lee
In reply to this post by Wesolowski, Krzysztof
Hi, BR, K

Thanks for answering.


And another problem, how to do this in Android.mk? Could you please give more hints?

Thanks,
Albert

在2020年12月9日星期三 UTC+8 上午3:09:40<[hidden email]> 写道:
Both variants are build since you made both available. You can set compile_multilib soong property to specify that native process should be only 64 bit, and then when building it all dependencies would also only build same bitness.

BR, K.



From: [hidden email] <[hidden email]> on behalf of Albert Lee <[hidden email]>
Sent: Sunday, December 6, 2020 10:57
To: Android Building <[hidden email]>
Subject: [android-building] How to build only 64 bit or 32 bit so files
 
Hi, everyone,

I want to add some debug logs in some modules, for example `libcameraservice`.  After modifying and compiling, I noticed that 32 and 64 bit libraryies are always built. While I only use 32 or 64 bit files (the camera server is a 32bit process now).

I want to know if there is a way to compile only 32 or 64 bit libraries to speed up the progress?  Since compiling that two not only takes a long time, but also takes up disk space.

I'm appreciated if you can give me some suggestions.

Thanks,
Albert

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/ea3ba7fe-00c3-4d81-bd08-6996e0fb2967n%40googlegroups.com.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/e88804ab-8383-4051-9cef-93da17a02211n%40googlegroups.com.