patjak / facetimehd

Reverse engineered Linux driver for the FacetimeHD (Broadcom 1570) PCIe webcam
GNU General Public License v2.0
1.36k stars 161 forks source link

add dkms support #68

Closed mmlb closed 8 years ago

mmlb commented 8 years ago

@patjak ping?

patjak commented 8 years ago

Hmm, this will install the module in /lib/module/kernel-version/extra/$pwd. Is that really the default behaviour?

mmlb commented 8 years ago

Not quite, I'm getting /lib/modules/$(uname -r)/extra/facetimehd.ko.gz, you can test it out by doing

make INSTALL_MOD_PATH=$PWD/destdir install

I'm pretty sure the build system figures it out from obj-m.

I made the makefile by mashing http://lxr.free-electrons.com/source/Documentation/kbuild/modules.txt#L102 together with http://lxr.free-electrons.com/source/Documentation/kbuild/modules.txt#L175

mmlb commented 8 years ago

ping @patjak ?

patjak commented 8 years ago

Sorry for the delay. make installwith this patch applied installed in the wrong directory for me so something is wrong.

mmlb commented 8 years ago

@patjak no worries, I probably should have closed this in favor of #73 already being merged in