OK, I did a quick test for you:
root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916# make clean cp -f os/linux/Makefile.clean os/linux/Makefile make -C os/linux clean make[1]: Entering directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' rm -f ../../common/*.o ... rm -f ../../sta/.*.cmd .*.flags .*.d make[1]: Leaving directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' rm -rf os/linux/Makefile root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916#
Then …
root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916# make make -C tools make[1]: Entering directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/tools' /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/tools/bin2h chipset = mt7650u chipset = mt7630u chipset = mt7610u cp -f os/linux/Makefile.6 /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/Makefile make -C /lib/modules/4.4.0-1-osmc/build SUBDIRS=/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux modules make[1]: Entering directory '/lib/modules/4.4.0-1-osmc/build' make[1]: Nothing to be done for 'modules'. make[1]: Leaving directory '/lib/modules/4.4.0-1-osmc/build' cp -f /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/mt7650u_sta.ko /tftpboot 2>/dev/null || : root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916#
… and …
root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916# make -n install make -C /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux -f Makefile.6 install make[1]: Entering directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' mkdir: cannot create directory Ç /etc/Wireless Ç : File exists rm -rf /etc/Wireless/RT2860STA mkdir /etc/Wireless/RT2860STA cp /var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/conf/RT2860STA.dat /etc/Wireless/RT2860STA/. install -d /lib/modules/4.4.0-1-osmc/kernel/drivers/net/wireless/ install -m 644 -c mt7650u_sta.ko /lib/modules/4.4.0-1-osmc/kernel/drivers/net/wireless/ /sbin/depmod -a 4.4.0-1-osmc make[1]: Leaving directory '/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux' root@William:/var/tmp/mediatek/mt7610u_wifi_sta_v3002_dpo_20130916#
To get it to compile, I set up the “config.mk” file as follows:
diff -r ./mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/config.mk ./mt7610u_wifi_sta_v3002_dpo_20130916-MODIFIED/os/linux/config.mk 26c26 < HAS_WPA_SUPPLICANT=n \> HAS_WPA_SUPPLICANT=y 31c31 < HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n \> HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
(ignore the “” before the ">"s, that’s just to get it to display at least vaguely correctly here).
I then manually created a number of directories that the “Makefile” seemed to have … forgotten …
mkdir /lib/modules/build mkdir /lib/modules/4.4.0-1-osmc/build mkdir /lib/modules/4.4.0-1-osmc/modules mkdir /lib/modules/4.4.0-1-osmc/build/modules
(check that your path there is the same, E.g. “4.4.0-1-osmc”; yours may well be “4.4.3-3-osmc”).
Et voila - a clean compilation, and what looks as though it would be a clean installation (I didn’t actually install it).
It looks as though the driver developers at MediaTek just forgot to make some directories which probably already existed on their development boxes …
Hope that helps!
Tris.
Ps. That was with the official source from MediaTek.