Using export environment variable on Android.bp

85 views
Skip to first unread message

Ba ryun Hwang

unread,
Jul 17, 2019, 2:27:01 PM7/17/19
to android-porting
Hi ,

Is it possible to use exported environment variable in Android.bp? 

When using Android.mk, it can be used like below.
For custom environment variable INIT_BOOTCHART,  I added like below in Android.mk 

ifeq ($(INIT_BOOTCHART),true)
init_cflags += -DBOOTCHART
endif


if possbile, could anyone guide  me how to use  custom environment variable in Android.bp? 

Thanks
 

Abhishek Subal

unread,
Jul 21, 2019, 12:17:34 PM7/21/19
to android-porting
Yes you can do so, but for writing conditionals like that you need to add a new go file, where you write all the logic. As bp does not support writing logical statements.
Reply all
Reply to author
Forward
0 new messages