Problem setting alternate build directory w/ Android 10

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem setting alternate build directory w/ Android 10

跳至解决方案
4,012 次查看
dennis3
Contributor V

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/envsetup.sh and lunch.

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

device/fsl/common/build/dtbo.mk:37 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 imx-make.sh but this error also occurs if I just call make.

标签 (1)
0 项奖励
回复
1 解答
3,796 次查看
cjcdev
Contributor I

I found the issue with the NXP BSP (11.0.1).  

 

You do need to make sure you set the OUT_DIR env variable in your build. However, in order for the dtbo.mk NXP makefile to use this OUT_DIR, you need to fix the path of the DTBOIMAGE.

This is what the NXP BSP currently has:

BOARD_PREBUILT_DTBOIMAGE := out/target/product/evk_8mn/dtbo-imx8mn.img

 

Change this to

BOARD_PREBUILT_DTBOIMAGE := $(OUT_DIR)/target/product/evk_8mn/dtbo-imx8mn.img

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,842 次查看
cjcdev
Contributor I

I'm facing a similar issue with Android 11.  Did you ever figure out a solution? Setting the OUR_DIR did not help either.

0 项奖励
回复
3,931 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

If this is still relevant, please try setting the environment variable OUT_DIR.

Regards,
Aldo.

0 项奖励
回复
3,797 次查看
cjcdev
Contributor I

I found the issue with the NXP BSP (11.0.1).  

 

You do need to make sure you set the OUT_DIR env variable in your build. However, in order for the dtbo.mk NXP makefile to use this OUT_DIR, you need to fix the path of the DTBOIMAGE.

This is what the NXP BSP currently has:

BOARD_PREBUILT_DTBOIMAGE := out/target/product/evk_8mn/dtbo-imx8mn.img

 

Change this to

BOARD_PREBUILT_DTBOIMAGE := $(OUT_DIR)/target/product/evk_8mn/dtbo-imx8mn.img

 

0 项奖励
回复