$(obj)/dtbo.img: $(obj)/dts/dtboimg.cfg $(DTBO_OBJS) FORCE
$(call if_changed,mkdtimg,4096) # align dtbo.img to 4kB
想到是我的mkdtimg没执行成功,参数不对,于是改为
1
2
$(obj)/dtbo.img: $(obj)/dts/dtboimg.cfg $(DTBO_OBJS) FORCE
$(call if_changed,mkdtimg --page_size 4096) # align dtbo.img to 4kB
接着继续编译,出现
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CHK kernel/config_data.h
GEN .version
LD vmlinux.o
MODPOST vmlinux.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
drivers/built-in.o: In function `cam_actuator_power_down':
/mnt/f/msm/msm/out/../drivers/media/platform/msm/camera/cam_sensor_module/cam_actuator/cam_actuator_core.c:155: undefined reference to `clearRearVCMInitDownload'
drivers/built-in.o: In function `cam_actuator_i2c_pkt_parse':
/mnt/f/msm/msm/out/../drivers/media/platform/msm/camera/cam_sensor_module/cam_actuator/cam_actuator_core.c:582: undefined reference to `checkRearVCMLTC'
drivers/built-in.o: In function `cam_ois_calibration':
/mnt/f/msm/msm/out/../drivers/media/platform/msm/camera/cam_sensor_module/cam_ois/cam_ois_core.c:31: undefined reference to `GyroReCalib'
/mnt/f/msm/msm/out/../drivers/media/platform/msm/camera/cam_sensor_module/cam_ois/cam_ois_core.c:36: undefined reference to `WrGyroOffsetData'
求指点。。用的asop的编译器和环境, source build/envsetup.sh, lunch 18, make -j4 make dtc make mkdtimg 切换到msm的目录 export ARCH=arm64. export SUBARCH=arm64, export CROSS_COMPILE=那个交叉编译器 export CROSS_COMPILE_ARM32=arm那个交叉编译器 make sdm845_defconfig make -j4