Stopped on step 4, with `make scripts` error:
HOSTCC scripts/sortextable
scripts/sortextable.c:31:32: fatal error: tools/be_byteshift.h: No such file or directory
#include <tools/be_byteshift.h>
^
compilation terminated.
scripts/Makefile.host:91: recipe for target 'scripts/sortextable' failed
make[1]: *** [scripts/sortextable] Error 1
Makefile:557: recipe for target 'scripts' failed
make: *** [scripts] Error 2
Then, I commented following lines in /usr/src/linux-headers-4.0.5-cubietruck/scripts/Makefile:
# hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable
# HOSTCFLAGS_sortextable.o = -I$(srctree)/tools/include
After that, `make scripts` finished without any error. But that result is zero worth, because original FTDI drivers ver 1.5.0 is not ready for new kernels, I think. At that point, I can to continue with compiling internal FTDI driver from full kernel sources, but I can't get sources for may kernel version 4.0.4:
apt-cache show linux-source
Package: linux-source
Source: linux-latest (63)
Version: 3.16+63
I tried to compile the kernel 4.0.5 sources from kernel.org. This took more than 3 hours, but finished successfully.