[android-building] Android envsetup.sh overrides pre-set TARGET_BUILD_TYPE env variable!

2022-01-04 Thread Abhayadev S
Hi,

I am using a master build script to trigger the android build and the 
master script does the following steps,

*source build/envsetup.sh && lunch *

Now in my master script i was planning to export the TARGET_BUILD_TYPE as 
debug or release according to my other options.

Now I see that the  *build/envsetup.sh* is over-writing it by exporting  
TARGET_BUILD_TYPE always as *release *in the *lunch* function ! (ref: 
https://cs.android.com/android/platform/superproject/+/master:build/make/envsetup.sh;drc=6a012266a18cdf89d4e94a3ce7aa15a9c462a448;l=718)

is this expected? its really blocking any possibilities for automation 
right?

regards,
abhay

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/1ef6ee61-9e47-4116-96c3-b64041461b03n%40googlegroups.com.


Re: [android-building] Re: Run shell script before include $(BUILD_PREBUILT)

2021-12-28 Thread Abhayadev S
Dan,
Thank you very much for sharing the info/links...
i will refer them

On Wednesday, December 22, 2021 at 3:39:12 AM UTC+5:30 Dan Willemsen wrote:

> General soong docs: build/soong/README.md 
> <https://android.googlesource.com/platform/build/soong/+/master/README.md>
>
> For genrule properties, there's auto-generated reference docs here 
> <https://ci.android.com/builds/latest/branches/aosp-build-tools/targets/linux/view/genrule.html>
>
> It can also be helpful to look at examples 
> <https://cs.android.com/search?q=file:Android.bp%20%5Egenrule&ss=android%2Fplatform%2Fsuperproject>
>  in 
> AOSP.
>
> - Dan
>
> On Tue, Dec 21, 2021 at 1:11 PM Abhayadev S  wrote:
>
>> thanks Dan and Paulo...
>> i will look in to how i can make use of the genrule 
>> do you see any official man page for this... i am kind of lost in the 
>> google !
>>
>> On Wednesday, December 15, 2021 at 1:19:48 AM UTC+5:30 phc@gmail.com 
>> wrote:
>>
>>> Hello,
>>> The $(shell) inside you mk will for sure slow down your build as Dan 
>>> pointed out (sorry I forgot to mention this) I currently have a setup like 
>>> this and Im trying to refactor it,  still trying to find the best solution 
>>> for my use case.
>>> Thanks,
>>> Paul
>>>
>>> On Mon, Dec 13, 2021, 8:41 PM 'Dan Willemsen' via Android Building <
>>> android-...@googlegroups.com> wrote:
>>>
>>>> Embedding build systems into one another is a very complicated issue, 
>>>> and requires deep knowledge of both build systems in order to keep all the 
>>>> functionality of both systems. Given that the Android build attempts to 
>>>> provide safe, fast incremental builds that work on any machine, it gets 
>>>> very difficult to preserve those features while calling out to another 
>>>> build system. If the scripts are simpler (bash/python script that reads a 
>>>> known set of inputs and writes to a know set of outputs, and doesn't use 
>>>> any other tools), then this doesn't get too difficult. But keep in mind 
>>>> that you do need to declare all inputs and outputs, and most tools you use 
>>>> need to be referenced by paths (and also be inputs), not in $PATH. 
>>>> Android.bp has the `genrule` concept that makes this easier.
>>>>
>>>> >>>> Android build to pickup>
>>>>>
>>>>
>>>> Keep in mind that we're not linearly executing Android.mk files -- that 
>>>> only happens in the first minute or two of the build to generate commands 
>>>> for what comes later. So you shouldn't actually be running the script 
>>>> there, but defining some Make logic to run your script later. You may be 
>>>> able to find references to Android.mk files using base_rules.mk and 
>>>> defining rules to build $(LOCAL_BUILT_MODULE), but you could also look 
>>>> into 
>>>> writing Android.bp files with genrules, which makes this simpler and adds 
>>>> some checks for common issues.
>>>>  
>>>>
>>>>> Have you tried using $(shell) ? 
>>>>> RESULT:= $(shell ($(LOCAL_PATH)/yourscript.sh))
>>>>>
>>>>
>>>> Definitely don't do this, it will slow down every build as we serially 
>>>> execute every one of these every time (even if there's nothing to build).
>>>>
>>>> - Dan
>>>>
>>>> On Mon, Dec 13, 2021 at 2:49 PM Paulo Maia  wrote:
>>>>
>>>>> Have you tried using $(shell) ? 
>>>>> RESULT:= $(shell ($(LOCAL_PATH)/yourscript.sh))
>>>>>
>>>>> Also you I think you could put in buiod/core/app_prebuilt_internal.mk 
>>>>> if this is going to be repetitive.
>>>>>
>>>>> BR,
>>>>> Paulo
>>>>>
>>>>> On Monday, November 8, 2021 at 2:14:48 PM UTC-8 abhay...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I need to run a shell script so that the libs and bins will be 
>>>>>> generated beofre Android can pick them up.
>>>>>>
>>>>>> A structure of the makefile i am trying to comeup is below, not sure 
>>>>>> if this is really possible.. any inputs are appreciated.
>>>>>>
>>>>>> LOCAL_PATH := $(call my-dir)
>>>>>>
>>>>>

Re: [android-building] product_config.mk syntax error ?

2021-12-28 Thread Abhayadev S
Great ! thanks for patching it.

On Wednesday, December 22, 2021 at 3:26:04 AM UTC+5:30 Dan Willemsen wrote:

> It appears that make & ckati both treat that as "" == "," (when 
> $(TARGET_BUILD_VARIANT) is `user`), so that case never triggers.
>
> I've posted a removal of the second comma here: 
> https://android-review.googlesource.com/c/platform/build/+/1931200/
>
> Thanks,
> Dan
>
>
>
> On Tue, Dec 21, 2021 at 1:10 PM Abhayadev S  wrote:
>
>> Hi,
>>
>> I see the following in the build/make/core/product_config.mk 
>> <https://cs.android.com/android/platform/superproject/+/master:build/make/core/product_config.mk;drc=f1f49bb9101448bd6b508625b1eae0ae30e127fa;l=415>
>>
>> ifeq (,$(filter eng userdebug,$(TARGET_BUILD_VARIANT)),) 
>>
>> here ifeq has been given with 3 arguments right? is it expected? what 
>> will be the outcome?
>>
>> regards,
>> abhay
>>
>> -- 
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-building/d1a1280f-8c6b-42c1-b384-1e12f1282c8an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-building/d1a1280f-8c6b-42c1-b384-1e12f1282c8an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/a2b44db3-0326-48d2-a336-eb378e155035n%40googlegroups.com.


Re: [android-building] Re: Run shell script before include $(BUILD_PREBUILT)

2021-12-21 Thread Abhayadev S
thanks Dan and Paulo...
i will look in to how i can make use of the genrule 
do you see any official man page for this... i am kind of lost in the 
google !

On Wednesday, December 15, 2021 at 1:19:48 AM UTC+5:30 phc@gmail.com 
wrote:

> Hello,
> The $(shell) inside you mk will for sure slow down your build as Dan 
> pointed out (sorry I forgot to mention this) I currently have a setup like 
> this and Im trying to refactor it,  still trying to find the best solution 
> for my use case.
> Thanks,
> Paul
>
> On Mon, Dec 13, 2021, 8:41 PM 'Dan Willemsen' via Android Building <
> android-...@googlegroups.com> wrote:
>
>> Embedding build systems into one another is a very complicated issue, and 
>> requires deep knowledge of both build systems in order to keep all the 
>> functionality of both systems. Given that the Android build attempts to 
>> provide safe, fast incremental builds that work on any machine, it gets 
>> very difficult to preserve those features while calling out to another 
>> build system. If the scripts are simpler (bash/python script that reads a 
>> known set of inputs and writes to a know set of outputs, and doesn't use 
>> any other tools), then this doesn't get too difficult. But keep in mind 
>> that you do need to declare all inputs and outputs, and most tools you use 
>> need to be referenced by paths (and also be inputs), not in $PATH. 
>> Android.bp has the `genrule` concept that makes this easier.
>>
>> >> Android build to pickup>
>>>
>>
>> Keep in mind that we're not linearly executing Android.mk files -- that 
>> only happens in the first minute or two of the build to generate commands 
>> for what comes later. So you shouldn't actually be running the script 
>> there, but defining some Make logic to run your script later. You may be 
>> able to find references to Android.mk files using base_rules.mk and 
>> defining rules to build $(LOCAL_BUILT_MODULE), but you could also look into 
>> writing Android.bp files with genrules, which makes this simpler and adds 
>> some checks for common issues.
>>  
>>
>>> Have you tried using $(shell) ? 
>>> RESULT:= $(shell ($(LOCAL_PATH)/yourscript.sh))
>>>
>>
>> Definitely don't do this, it will slow down every build as we serially 
>> execute every one of these every time (even if there's nothing to build).
>>
>> - Dan
>>
>> On Mon, Dec 13, 2021 at 2:49 PM Paulo Maia  wrote:
>>
>>> Have you tried using $(shell) ? 
>>> RESULT:= $(shell ($(LOCAL_PATH)/yourscript.sh))
>>>
>>> Also you I think you could put in buiod/core/app_prebuilt_internal.mk 
>>> if this is going to be repetitive.
>>>
>>> BR,
>>> Paulo
>>>
>>> On Monday, November 8, 2021 at 2:14:48 PM UTC-8 abhay...@gmail.com 
>>> wrote:
>>>
 Hi,

 I need to run a shell script so that the libs and bins will be 
 generated beofre Android can pick them up.

 A structure of the makefile i am trying to comeup is below, not sure if 
 this is really possible.. any inputs are appreciated.

 LOCAL_PATH := $(call my-dir)

 >>> Android build to pickup>

 include $(CLEAR_VARS)
 LOCAL_MODULE:= my_modules
 LOCAL_MODULE_OWNER  := Me
 LOCAL_MODULE_TAGS   := optional
 LOCAL_SRC_FILES := ./my_bin_001
 LOCAL_MODULE_PATH   := $(PRODUCT_OUT)/system/bin
 include $(BUILD_PREBUILT)

 i am not sure how can i add my build script which generates the 
 my_bin_001
 there are several bins its generating and i cant really convert the 
 shell script in to a Makefile for practical reasons.

 reagrds,
 abhay

>>> -- 
>>> -- 
>>> 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.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/android-building/2824e7a8-3745-45b7-9037-fc5c1eaf8930n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>> -- 
>> -- 
>> 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 a topic in the 
>> Go

[android-building] product_config.mk syntax error ?

2021-12-21 Thread Abhayadev S
Hi,

I see the following in the build/make/core/product_config.mk 


ifeq (,$(filter eng userdebug,$(TARGET_BUILD_VARIANT)),) 

here ifeq has been given with 3 arguments right? is it expected? what will 
be the outcome?

regards,
abhay

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/d1a1280f-8c6b-42c1-b384-1e12f1282c8an%40googlegroups.com.


[android-building] Headless Android ADB Vendor Key

2021-12-21 Thread Abhayadev S
Hi,

I have a headless Android 10 device where i am trying to enable the adb by 
default on a "user" mode build.
Also, I am trying to integrate a custom adb key and hoping to skip the 
usb/adb debugging confirmation on screen.

I have tried to integrate a custom ADB KEYS as per the official steps here 
- 
https://source.android.com/setup/develop/new-device#ANDROID_VENDOR_KEYS
but it ended with an error that in my code the "PRODUCT_ADB_KEYS" is set as 
read only...
i am still debugging and hoping that at some makefile i could override it.

also, looking for any pointers on how to approach debugging the user mode 
builds where not even serial logs are available!

thanks and appreciate your comments..
regards,
abhay

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/ce4057b5-d378-4cfe-9f75-f631f8d95b0en%40googlegroups.com.


[android-building] Run shell script before include $(BUILD_PREBUILT)

2021-11-08 Thread Abhayadev S
Hi,

I need to run a shell script so that the libs and bins will be generated 
beofre Android can pick them up.

A structure of the makefile i am trying to comeup is below, not sure if 
this is really possible.. any inputs are appreciated.

LOCAL_PATH := $(call my-dir)



include $(CLEAR_VARS)
LOCAL_MODULE:= my_modules
LOCAL_MODULE_OWNER  := Me
LOCAL_MODULE_TAGS   := optional
LOCAL_SRC_FILES := ./my_bin_001
LOCAL_MODULE_PATH   := $(PRODUCT_OUT)/system/bin
include $(BUILD_PREBUILT)

i am not sure how can i add my build script which generates the my_bin_001
there are several bins its generating and i cant really convert the shell 
script in to a Makefile for practical reasons.

reagrds,
abhay

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/93321ff9-1f97-49a0-ae3e-f509e2611669n%40googlegroups.com.


[android-building] Re: Editing Android device init.rc file

2021-10-08 Thread Abhayadev S
Hi,

I think what you are trying to achieve is an init script. for that you need 
to have root level permissions.
do you have access to the source of the device?

some pointer to start with is 
https://android.googlesource.com/platform/system/core/+/master/init/README.md

you can listen for system properties as triggeres for your script to run.

On Friday, October 8, 2021 at 9:54:45 AM UTC+5:30 pima...@gmail.com wrote:

> Hi, I am a newbie in embedded Linux, I am able to toggle a gpio pin, as 
> well as initialize an i2c module on an android running device. I used adb 
> shell to access the device shell, and manage to initialise this module 
> manually, I want this to happen at startup/boot up, however, I cant edit 
> the init.rc for my android device since there is no Vim or nano editor, or 
> gedit to open the file so that I can add a new file to be executed at 
> startup.
>
>  
>
> I manage to push a bash file to the android device using adb push, but I 
> can only run it manually eg: ./file.sh inside the device.
>
>  
>
> I am thinking of building the adroid files and include the file that I 
> want to use to initialize the i2c device, but I don't know how to achieve 
> this. 
>
>  
>
> Any help would be appreciated.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/9ed6104a-3f30-48b9-aaa1-41ed745c6b1dn%40googlegroups.com.


Re: [android-building] post install step for cc_binary

2021-10-08 Thread Abhayadev S
Dan,
I was just trying out the "LOCAL_POST_INSTALL_CMD" (to execute some short 
shell scripts) and it works now in the Android.mk.
I could not find an equivalent for Android.bp though, do you know of any?

any way it works for now :)

cheers.
On Tuesday, October 5, 2021 at 4:08:25 AM UTC+5:30 Dan Willemsen wrote:

> No, the source tree should be considered read-only from within the build. 
> I'd suggest doing this as a wrapper around the build, rather than inside 
> the build. You can set up `dist` options so that `m ... dist` builds will 
> copy artifacts (and logs -- it's meant to be used on build servers) to 
> $DIST_DIR (defaults to out/dist/) after a build, but you'd still need 
> something wrapping the build to put them where you wanted, so that may or 
> may not simplify things.
>
> - Dan
>
> On Mon, Oct 4, 2021 at 12:13 PM Abhayadev S  wrote:
>
>>
>> Hi, 
>>
>> I have a cc_binary module (name myBin) defined in in a/b/Android.bp which 
>> is building fine and installs the binary in to out//system/bin/myBin
>>
>> Now, every time the binary is built, i need to copy this binary in to 
>> another git repo project cloned in a/b/bins/ to keep the prebuilts
>>
>> so, is there post build/install options i can use inside the Android.bp ?
>>
>> regards,
>> abhay
>>
>> -- 
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-building/2edbc3a5-816e-4e12-8528-1cc0f0a7e841n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-building/2edbc3a5-816e-4e12-8528-1cc0f0a7e841n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/c9a737f3-8cf5-4e90-8665-0d870b530ea7n%40googlegroups.com.


Re: [android-building] cc_binary module name and binary name

2021-10-08 Thread Abhayadev S
Thanks Dan, appreciate the support.
I will explore the namespace options...

On Tuesday, October 5, 2021 at 4:05:18 AM UTC+5:30 Dan Willemsen wrote:

> No, that's not possible, as the installation system still sets up the 
> install rules for every module, so that the user can request a module to be 
> installed even if it isn't in PRODUCT_PACKAGES.
>
> Either have them named differently on the device, or use soong namespaces 
> <https://android.googlesource.com/platform/build/soong/+/master/README.md#namespaces>
>  and 
> the same module name(myBin) so that only one will ever be exported to Make 
> at a time, that can be chosen through PRODUCT_SOONG_NAMESPACES 
> (PRODUCT_PACKAGES would just have myBin in either case).
>
> - Dan
>
> On Mon, Oct 4, 2021 at 12:14 PM Abhayadev S  wrote:
>
>> Hi,
>>
>> usually the name of the installed binary will be same as the module 
>> "name" but can we have 2 cc_binary modules defined to install a binary of 
>> same name but on a conditional PRODUCT_PACKAGES definition?
>>
>> like a/Android.bp will define cc_binary with name : mymodule and it shall 
>> install myBin
>> and b/Android.bp will define cc_binary with name mymodule2 and it shall 
>> install myBin 
>> and this will be controlled by a conditional PRODUCT_PACKAGES definition
>> PRODUCT_PACKAGES += mymodule  OR PRODUCT_PACKAGES += mymodule2
>>
>> this is the install a binary (with same name) from 2 partners but based 
>> on a build condition/rule.
>>
>> regards,
>> abhay
>>
>>
>>
>> -- 
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-building/697400b2-6362-430e-99f2-9e5bce018996n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-building/697400b2-6362-430e-99f2-9e5bce018996n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/4975d516-791d-4be2-b94f-3e71d09c3d00n%40googlegroups.com.


[android-building] cc_binary module name and binary name

2021-10-04 Thread Abhayadev S
Hi,

usually the name of the installed binary will be same as the module "name" 
but can we have 2 cc_binary modules defined to install a binary of same 
name but on a conditional PRODUCT_PACKAGES definition?

like a/Android.bp will define cc_binary with name : mymodule and it shall 
install myBin
and b/Android.bp will define cc_binary with name mymodule2 and it shall 
install myBin 
and this will be controlled by a conditional PRODUCT_PACKAGES definition
PRODUCT_PACKAGES += mymodule  OR PRODUCT_PACKAGES += mymodule2

this is the install a binary (with same name) from 2 partners but based on 
a build condition/rule.

regards,
abhay



-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/697400b2-6362-430e-99f2-9e5bce018996n%40googlegroups.com.


[android-building] post install step for cc_binary

2021-10-04 Thread Abhayadev S

Hi, 

I have a cc_binary module (name myBin) defined in in a/b/Android.bp which 
is building fine and installs the binary in to out//system/bin/myBin

Now, every time the binary is built, i need to copy this binary in to 
another git repo project cloned in a/b/bins/ to keep the prebuilts

so, is there post build/install options i can use inside the Android.bp ?

regards,
abhay

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@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-building+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/2edbc3a5-816e-4e12-8528-1cc0f0a7e841n%40googlegroups.com.