[mythtv-users] USB IR Receivers

Kirk Bocek t004 at kbocek.com
Wed Sep 2 22:46:14 UTC 2015



On 9/2/2015 2:07 PM, Alec Leamas wrote:
>
>>> Can anyone help me with the command line for compiling an individual
>>> driver file?
>
> The generic Makefile:
>
> obj-m += mceusb.o
> ccflags-y +=-O0 -g
>
> all:
>         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
>
> clean:
>         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
>
>> Well, as usual this is looking harder than I think it needs to be.
>> Installing the kernel-devel package and the kernel-modules package does
>> *not* include the mceusb.c source file. <sigh>
>
>
> You can just pick up the module source from somewhere; google gives me
> https://searchcode.com/codesearch/view/26438655/. It's just a single 
> file.
>

Using your Makefile and the file from searchcode, here are just the 
errors generated. I have not edited the file yet:

   CC [M]  /home/kbocek/mceusb/mceusb.o
/home/kbocek/mceusb/mceusb.c: In function âmceusb_init_rc_devâ:
/home/kbocek/mceusb/mceusb.c:1222:4: error: âstruct rc_devâ has no 
member named âallowed_protosâ
   rc->allowed_protos = RC_TYPE_ALL;
     ^
/home/kbocek/mceusb/mceusb.c:1222:23: error: âRC_TYPE_ALLâ undeclared 
(first use in this function)
   rc->allowed_protos = RC_TYPE_ALL;
                        ^
/home/kbocek/mceusb/mceusb.c:1222:23: note: each undeclared identifier 
is reported only once for eac              h function it appears in
/home/kbocek/mceusb/mceusb.c: At top level:
/home/kbocek/mceusb/mceusb.c:1246:22: error: expected â=â, â,â, â;â, 
âasmâ or â__attribute__â before               âmceusb_dev_probeâ
  static int __devinit mceusb_dev_probe(struct usb_interface *intf,
                       ^
/home/kbocek/mceusb/mceusb.c:1410:23: error: expected â=â, â,â, â;â, 
âasmâ or â__attribute__â before âmceusb_dev_disconnectâ
  static void __devexit mceusb_dev_disconnect(struct usb_interface *intf)
                        ^
/home/kbocek/mceusb/mceusb.c:1448:11: error: âmceusb_dev_probeâ 
undeclared here (not in a function)
   .probe = mceusb_dev_probe,
            ^
/home/kbocek/mceusb/mceusb.c:1449:2: error: implicit declaration of 
function â__devexit_pâ [-Werror= implicit-function-declaration]
   .disconnect = __devexit_p(mceusb_dev_disconnect),
   ^
/home/kbocek/mceusb/mceusb.c:1449:28: error: âmceusb_dev_disconnectâ 
undeclared here (not in a funct              ion)
   .disconnect = __devexit_p(mceusb_dev_disconnect),



More information about the mythtv-users mailing list