AttributeError: 'module' object has no attribute 'init'

I had this problem on random builds and Im not sure where it comes from. But time to time when I build the fw it dosnt works cause some methods from LCD driver(adapted from rk043fn48h) are missing and I dont know the reason.
Sometimes I need to declare my module in mpconfigport.h as:
extern const struct _mp_obj_module_t mp_module_rk043fn48h;

{ MP_ROM_QSTR(MP_QSTR_rk043fn48h), (mp_obj_t)&mp_module_rk043fn48h }, \

and sometimes I need to declare in modrk043fn48h.c as:
MP_REGISTER_MODULE(MP_QSTR_rk043fn48h, mp_module_rk043fn48h, 1);

Does anybody had similar problem?
Maybe it cames from any .py compile time tool?