No rule to make target `arch/arm/tools/gen-mach-types'

I configured something from the Linux source via make menuconfig then triggered build via ‘make’ but keep encountering this error. Does anybody knows how to address this?

ubuntu@tegra-ubuntu:/usr/src/linux-headers-3.10.40$ sudo make menuconfig
scripts/kconfig/mconf Kconfig

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

ubuntu@tegra-ubuntu:/usr/src/linux-headers-3.10.40$ sudo make
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: *** No rule to make target `arch/arm/tools/gen-mach-types', needed by `include/generated/mach-types.h'.  Stop.
make: *** [archprepare] Error 2

I assume you are using our kernel source.

Please go to kernel/kernel-4.4

export ARCH=arm64
make DEFCONFIG_PATH= arch/arm64/configs tegra18_defconfig
make menuconfig
make savedefconfig
cp -v defconfig arch/arm64/configs/tegra18_defconfig
make mrproper.