ERROR: "__aeabi_dcmpeq" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_d2uiz" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_i2d" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_dsub" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_dcmpgt" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_dmul" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_ddiv" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_dcmplt" [drivers/msp/frontend/hi_tuner.ko] undefined!
ERROR: "__aeabi_ui2d" [drivers/msp/frontend/hi_tuner.ko] undefined!
在模块编译时内核能正常编译出ko文件,但是在系统整编时报如下错误,其中未定义字段在代码中并没有,排查后发现是因为驱动中包含浮点数运算,但是系统默认编译器不允许浮点数运算,其实在模块编译时已有Warning警告,只是没注意到,只需要在makefile中添加一句即可
CFLAGS += -mfloat-abi=softfp