dorimanx / exfat-nofuse

Android ARM Linux non-fuse read/write kernel driver for exFat and VFat Android file systems
GNU General Public License v2.0
707 stars 326 forks source link

Makefile: remove KREL #116

Closed ian-abbott closed 7 years ago

ian-abbott commented 7 years ago

The KREL macro defined in the Makefile isn't used, although the "make -s kernelrelease" command that is run as part of its definition causes a non-fatal build error when the kernel is built outside its source directory, for example, in distros such as Debian and Ubuntu:

/usr/src/linux-headers-4.9.0-3-common/scripts/Makefile.build:44: /usr/src/linux-headers-4.9.0-3-common/scripts/basic/Makefile: No such file or directory make[4]: No rule to make target '/usr/src/linux-headers-4.9.0-3-common/scripts/basic/Makefile'. Stop. make[3]: [scripts_basic] Error 2

The Makefile carries on to build the module after this error. Just remove the KREL macro to avoid it in the first place.

dorimanx commented 7 years ago

Agree. thanks!