This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Recompiling Mali drivers for an Android image

Hi, I'm trying to compile the mali drivers for an Amlogic armv7 kernel. But when i try to make modules I've got this error message :

from drivers/amlogic/gpu/mali/platform/meson_bu/meson_main2.c:14:

drivers/amlogic/gpu/mali/platform/meson_bu/meson_main2.c:35:39: error: ‘S_IRUSR’ undeclared here (not in a function)

module_param(mali_gp_reset_fail, int, S_IRUSR | S_IWUSR | S_IWGRP | S_IRGRP | S_IROTH); /* rw-rw-r-- */

Do you know if I have to include other header?. Thank you.

Parents
  • Hi brandpitt,

    the S_IRUSR value is defined in the <sys/stat.h> header file. Please be sure it is included in your source code and the paths to access it points to the correct header file (the one of the kernel you are compiling and not the one in your local machine).

    Regards,

    Daniele

Reply
  • Hi brandpitt,

    the S_IRUSR value is defined in the <sys/stat.h> header file. Please be sure it is included in your source code and the paths to access it points to the correct header file (the one of the kernel you are compiling and not the one in your local machine).

    Regards,

    Daniele

Children