I tried the changing Makefile approach but still get the following error during compilation:
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/kjloh/acerhk-0.5.35 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-17-generic'
CC [M] /home/kjloh/acerhk-0.5.35/acerhk.o
/home/kjloh/acerhk-0.5.35/acerhk.c: In function ‘call_bios_6xx’:
/home/kjloh/acerhk-0.5.35/acerhk.c:584: error: bp cannot be used in asm here
/home/kjloh/acerhk-0.5.35/acerhk.c: In function ‘set_mail_led’:
/home/kjloh/acerhk-0.5.35/acerhk.c:814: warning: ‘regs’ may be used uninitialized in this function
make[2]: *** [/home/kjloh/acerhk-0.5.35/acerhk.o] Error 1
make[1]: *** [_module_/home/kjloh/acerhk-0.5.35] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-17-generic'
make: *** [acerhk.ko] Error 2
I tried the changing Makefile approach but still get the following error during compilation:
make -C /lib/modules/`uname -r`/build SUBDIRS= /home/kjloh/ acerhk- 0.5.35 modules linux-headers- 2.6.32- 17-generic' acerhk- 0.5.35/ acerhk. o acerhk- 0.5.35/ acerhk. c: In function ‘call_bios_6xx’: acerhk- 0.5.35/ acerhk. c:584: error: bp cannot be used in asm here acerhk- 0.5.35/ acerhk. c: In function ‘set_mail_led’: acerhk- 0.5.35/ acerhk. c:814: warning: ‘regs’ may be used uninitialized in this function kjloh/acerhk- 0.5.35/ acerhk. o] Error 1 /home/kjloh/ acerhk- 0.5.35] Error 2 linux-headers- 2.6.32- 17-generic'
make[1]: Entering directory `/usr/src/
CC [M] /home/kjloh/
/home/kjloh/
/home/kjloh/
/home/kjloh/
/home/kjloh/
make[2]: *** [/home/
make[1]: *** [_module_
make[1]: Leaving directory `/usr/src/
make: *** [acerhk.ko] Error 2
just wonder if there is any clue? thanks so much.
regards,
KJ