CONFIG_MACH_SPEAR1340 is not available for thedefaultarchitecture x86.
Result is shown for architecture arm

SPEAr1340 Machine support with Device Tree

modulename: spear1340.ko

and/or

spear1340_clock.ko

configname: CONFIG_MACH_SPEAR1340

Linux Kernel Configuration
└─>ST SPEAr Family
└─>SPEAr1340 Machine support with Device Tree
In linux kernel since version 3.1 (release Date: 2011-10-24)  
Supports ST SPEAr1340 machine configured via the device-tree

source code: