【問題描述】:
優化開機速度,裁剪kernel,注釋掉模型模塊后如:# CONFIG_HID_SONY is not set,出現編譯報錯。
checkvintf E 07-01 16:32:02 160 160 check_vintf.cpp:620] files are incompatible: Runtime info and framework compatibility matrix are in
compatible: No compatible kernel requirement found (kernel FCM version = 6).
checkvintf E 07-01 16:32:02 160 160 check_vintf.cpp:620] For kernel requirements at matrix level 6, Missing config CONFIG_HID_SONY
checkvintf E 07-01 16:32:02 160 160 check_vintf.cpp:620] : Success
INCOMPATIBLE
16:32:03 ninja failed with: exit status 1#### failed to build some targets (9 seconds) ####
解法:
打開 kernel/configs/s/android-4.19/android-base.config 文件 (s是你Android版本號,Android12代號是s,4.19對應你編譯使用的內核)
把?CONFIG_HID_SONY=y
也改成
# CONFIG_HID_SONY is not set