Copy corrensponging linux source to /usr/src, then configure kernel.
After we have .config, then
make modules_prepare
DE0-nano-SoC: CAN Netowrk should be disabled
Both: CONFIG_GPIO_ALTERA=y