Prepare Kernel-snap for dragonboard410c

I am following the steps as mentioned in the below link:

While preparing kernel-snap using command “sudo snapcraft --target-arch arm64”
It shows error:
Command ‘[’/bin/sh’, ‘/tmp/tmpz7dy8dq9’, ‘make’, ‘-j4’, ‘ARCH=arm64’, ‘CROSS_COMPILE=aarch64-linux-gnu-’, ‘Image’, ‘modules’, ‘qcom/apq8016-sbc.dtb’, ‘qcom/msm8916-mtp.dtb’]’ returned non-zero exit status 2

After cloning, At compiling stage it gives the error as listed below:

./arch/arm64/boot/dts/include/dt-bindings/input/input.h:12:31: fatal error: linux-event-codes.h: No such file or directory
compilation terminated.
scripts/Makefile.lib:293: recipe for target ‘arch/arm64/boot/dts/qcom/apq8016-sbc.dtb’ failed
make[1]: *** [arch/arm64/boot/dts/qcom/apq8016-sbc.dtb] Error 1
arch/arm64/Makefile:94: recipe for target ‘qcom/apq8016-sbc.dtb’ failed
make: *** [qcom/apq8016-sbc.dtb] Error 2

Anyone faced the same issue?