Restore KDIR - it's not always the same as KERNELDIR. On BDI-4.20, KERNELDIR is '/usr/src/kernel-headers-2.6.10-adeos', while KDIR needs to be '/usr/src/kernel-source-2.6.10-adeos'.  I don't know if this is a pecularity of BDI-4.20, or something that can happen on other systems.
Restore KDIR - it's not always the same as KERNELDIR. On BDI-4.20, KERNELDIR is '/usr/src/kernel-headers-2.6.10-adeos', while KDIR needs to be '/usr/src/kernel-source-2.6.10-adeos'.  I don't know if this is a pecularity of BDI-4.20, or something that can happen on other systems.

EqAfrica/machinekit,ianmcmahon/linuxcnc-mirror,bobvanderlinden/machinekit,ArcEye/MK-Qt5,cnc-club/linuxcnc,unseenlaser/machinekit,ianmcmahon/linuxcnc-mirror,strahlex/machinekit,narogon/linuxcnc,araisrobo/machinekit,araisrobo/linuxcnc,kinsamanka/machinekit,RunningLight/machinekit,mhaberler/machinekit,cnc-club/linuxcnc,araisrobo/machinekit,strahlex/machinekit,unseenlaser/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,mhaberler/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5,bobvanderlinden/machinekit,ArcEye/machinekit-testing,cdsteinkuehler/MachineKit,cdsteinkuehler/linuxcnc,ArcEye/machinekit-testing,mhaberler/machinekit,ArcEye/MK-Qt5,aschiffler/linuxcnc,Cid427/machinekit,RunningLight/machinekit,mhaberler/machinekit,kinsamanka/machinekit,kinsamanka/machinekit,EqAfrica/machinekit,narogon/linuxcnc,RunningLight/machinekit,ianmcmahon/linuxcnc-mirror,unseenlaser/machinekit,cdsteinkuehler/linuxcnc,EqAfrica/machinekit,unseenlaser/linuxcnc,bmwiedemann/linuxcnc-mirror,cnc-club/linuxcnc,Cid427/machinekit,araisrobo/linuxcnc,strahlex/machinekit,ArcEye/machinekit-testing,cdsteinkuehler/MachineKit,ikcalB/linuxcnc-mirror,EqAfrica/machinekit,araisrobo/machinekit,cdsteinkuehler/MachineKit,strahlex/machinekit,cdsteinkuehler/linuxcnc,EqAfrica/machinekit,Cid427/machinekit,araisrobo/linuxcnc,cnc-club/linuxcnc,narogon/linuxcnc,yishinli/emc2,ArcEye/MK-Qt5,cdsteinkuehler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,bobvanderlinden/machinekit,araisrobo/machinekit,Cid427/machinekit,ArcEye/MK-Qt5,jaguarcat79/ILC-with-LinuxCNC,kinsamanka/machinekit,araisrobo/machinekit,ianmcmahon/linuxcnc-mirror,ikcalB/linuxcnc-mirror,ikcalB/linuxcnc-mirror,unseenlaser/linuxcnc,araisrobo/machinekit,ikcalB/linuxcnc-mirror,mhaberler/machinekit,cdsteinkuehler/MachineKit,yishinli/emc2,mhaberler/machinekit,araisrobo/machinekit,ArcEye/machinekit-testing,RunningLight/machinekit,RunningLight/machinekit,bobvanderlinden/machinekit,narogon/linuxcnc,ArcEye/MK-Qt5,bobvanderlinden/machinekit,bmwiedemann/linuxcnc-mirror,RunningLight/machinekit,ArcEye/machinekit-testing,kinsamanka/machinekit,ikcalB/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,bmwiedemann/linuxcnc-mirror,kinsamanka/machinekit,Cid427/machinekit,bmwiedemann/linuxcnc-mirror,aschiffler/linuxcnc,ianmcmahon/linuxcnc-mirror,unseenlaser/linuxcnc,ikcalB/linuxcnc-mirror,aschiffler/linuxcnc,narogon/linuxcnc,Cid427/machinekit,RunningLight/machinekit,cdsteinkuehler/linuxcnc,ikcalB/linuxcnc-mirror,araisrobo/linuxcnc,EqAfrica/machinekit,unseenlaser/machinekit,unseenlaser/linuxcnc,unseenlaser/machinekit,bobvanderlinden/machinekit,EqAfrica/machinekit,cdsteinkuehler/linuxcnc,ArcEye/MK-Qt5,unseenlaser/machinekit,EqAfrica/machinekit,Cid427/machinekit,ianmcmahon/linuxcnc-mirror,ArcEye/machinekit-testing,mhaberler/machinekit,aschiffler/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,kinsamanka/machinekit,RunningLight/machinekit,strahlex/machinekit,cnc-club/linuxcnc,strahlex/machinekit,kinsamanka/machinekit,araisrobo/machinekit,yishinli/emc2,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/MachineKit,ArcEye/machinekit-testing,araisrobo/machinekit,Cid427/machinekit,cnc-club/linuxcnc,cnc-club/linuxcnc,strahlex/machinekit,cdsteinkuehler/MachineKit,araisrobo/linuxcnc,yishinli/emc2,aschiffler/linuxcnc,unseenlaser/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,unseenlaser/machinekit,ianmcmahon/linuxcnc-mirror,ArcEye/machinekit-testing,ArcEye/MK-Qt5,bobvanderlinden/machinekit,bmwiedemann/linuxcnc-mirror