How can I build linux-tools for a customized kernel?

How can I build the linux-tools for a customized linux kernel? Do I have to configure the build from kernel source code to beeing able to build somehow like described here?

Yes, but you probably also need something along those lines as e.g. now applied on top of our latest -next branch. Plus don’t forget to setting CC as well. Then it should work at least with gcc version 6 e.g. as follows:

[user@host linux-toradex]$ export ARCH=arm
[user@host linux-toradex]$ export CC=~/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
[user@host linux-toradex]$ export CROSS_COMPILE=~/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
[user@host linux-toradex]$ make -C tools/perf