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 [email protected] 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)
>
> <this where i need to run the script so that bins will be generated for 
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/2824e7a8-3745-45b7-9037-fc5c1eaf8930n%40googlegroups.com.

Reply via email to