AnsweredAssumed Answered

Problem setting alternate build directory w/ Android 10

Question asked by Dennis Muhlestein on Jun 24, 2020

I want to customize the android output build directory for automation and OTA purposes.  I'm simply setting the environment variable OUT_DIR_COMMON_BASE before calling build/ and lunch.


This works properly in Android 9.  In the Android 10 build, the build is failing at:


device/fsl/common/build/ writing to read only directory 'out/target/product/XXX/dtbo-XXX.img'


I'm not sure if this is a problem with the dtbo makefile or is something wrong with my specific product.  Any suggestion where to find the source of this problem?  If I simply compile to the normal out directory w/ out setting the environment variable then compilation works fine.  Also, before the failure, other targets are being built in the new OUT directory fine. So it appears to be something just with this makefile or target.  I usually am calling but this error also occurs if I just call make.