문제

I know that it's possible to print out a build variable (e.g. the TARGET_DEVICE) with

CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core make -f build/core/config.mk dumpvar-TARGET_DEVICE

But how do I print a variable that gets set after the environment setup, therefore during the build system goes over all those Android.mk files, e.g. the variable ALL_MODULES or PRODCUT_PACKAGES.

What I've tried already:

CALLED_FROM_SETUP=true BUILD_SYSTEM=build/core make -f build/core/config.mk dumpvar-ALL_MODULES

CALLED_FROM_SETUP=true make -f build/core/main.mk dumpvar-ALL_MODULES

Both versions don't print anything (but do print something when I check for example TARGET_DEVICE).

So my actual question is how can I show the ALL_MODULES (or any other later set) variable?

도움이 되었습니까?

해결책

What about adding line

$(info ALL_MODULES=$(ALL_MODULES))

into your Android.mk file?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top