mmuman / starboard-lsadrv

(Hopefully) Fixed version of the Hitachi StarBoard kernel driver for Linux (lsadrv)
GNU General Public License v3.0
8 stars 4 forks source link

ERROR: Make #4

Open tommy26moana opened 7 years ago

tommy26moana commented 7 years ago

I have this error while I'm doing "make":

 ls
fakemouse.c  lsadrv-ioctl.c  lsadrv-main.c  lsadrv-vkey.h
fakemouse.h  lsadrv-ioctl.h  lsadrv-sub.c   Makefile
lsadrv.h     lsadrv-isoc.c   lsadrv-vkey.c
usuario@abalar6:~/hitachi/starboard-lsadrv/lsadrv$ sudo make
mkdir -p 3.16.0-4-686-pae
make -C  M=/home/usuario/hitachi/starboard-lsadrv/lsadrv V=1 modules
make -C  M=`pwd` V=1 modules
make[1]: *** M=/home/usuario/hitachi/starboard-lsadrv/lsadrv: Non hai tal ficheiro ou directorio. Detido.
Makefile:40: recipe for target '3.16.0-4-686-pae/lsadrv.ko' failed
make: *** [3.16.0-4-686-pae/lsadrv.ko] Error 2
usuario@abalar6:~/hitachi/starboard-lsadrv/lsadrv$ 

Could you help me?

mmuman commented 7 years ago

Hi, I haven't touched this for a while, and I don't really have the time this week… Hmm, from the looks of it, something messed up the sub-make arguments. It wants a proper path after -C but it'd getting a variable assignation (M=...) and obviously it's not in the filesystem. It seems to be the KERNEL_SRC variable which ends up empty. The Makefile visibly tries to locate the kernel sources from a list of hardcoded paths. Your distro probably installs them elsewhere, or maybe you forgot to install the kernel sources package for the correct kernel version ?

Looks like you tried to update the code, which is nice but please, please, only use English for commit logs, docs and comments, forking ins not meant for translating things into your native language. If you want to write a README for Spanish then name it README.es.md and add a link on the base README...

Would you mind rebasing your commits to switch them to English so I could consider them for merging?

engineerkatie commented 7 years ago

On Tue, May 09, 2017 at 08:02:04AM -0700, François Revol wrote:

Hi, I haven't touched this for a while, and I don't really have the time this week… Hmm, from the looks of it, something messed up the sub-make arguments. It wants a proper path after -C but it'd getting a variable assignation (M=...) and obviously it's not in the filesystem.

It seems to be the KERNEL_SRC variable which ends up empty. The Makefile visibly tries to locate the kernel sources from a list of hardcoded paths. Your distro probably installs them elsewhere, or maybe you forgot to install the kernel sources package for the correct kernel version ?

This was because at the time, we had a fairly short set of Linux distros to support and I didn't (and still don't) know how to use imake...