[Galaxy S 5 Original Android Development] Garry050:
I want to build this kernel for kltekdi.

but i can't build it. I could not even build it for the G900F... why?

garry050@ubuntu:~/WIP/boeffla$ . build_kernel.sh
mkdir: cannot create directory ‘output’: File exists
make: Entering directory '/home/garry050/WIP/boeffla'
GEN /home/garry050/WIP/boeffla/output/Makefile
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
arch/arm/configs/msm8974_sec_defconfig:199:warning: override: reassigning to symbol NETFILTER_XT_TARGET_IDLETIMER
arch/arm/configs/msm8974_sec_defconfig:285:warning: override: reassigning to symbol UID_CPUTIME
arch/arm/configs/msm8974_sec_defconfig:439:warning: override: reassigning to symbol HID_ELECOM
arch/arm/configs/msm8974_sec_defconfig:616:warning: override: reassigning to symbol KEYS
arch/arm/configs/msm8974_sec_defconfig:679:warning: override: reassigning to symbol MSM_DMA_TEST
KCONFIG_SELINUX(arch/arm/configs/selinux_defconfig)
arch/arm/configs/selinux_defconfig:1:warning: override: reassigning to symbol EXT2_FS_XATTR
arch/arm/configs/selinux_defconfig:13:warning: symbol value 'y' invalid for SECURITY_SELINUX_CHECKREQPROT_VALUE
KCONFIG_LOG_SELINUX((null))
KCONFIG_TIMA((null))
KCONFIG_VARIANT(arch/arm/configs/msm8974pro_sec_klte_eur_defconfig)
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:5:warning: override: reassigning to symbol MSM_ADSPRPC
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:27:warning: override: reassigning to symbol CFG80211
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:45:warning: override: reassigning to symbol LCD_CLASS_DEVICE
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:46:warning: override: reassigning to symbol BACKLIGHT_LCD_SUPPORT
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:47:warning: override: reassigning to symbol BACKLIGHT_CLASS_DEVICE
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:90:warning: override: reassigning to symbol USB_DUN_SUPPORT
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:100:warning: override: reassigning to symbol MHL_VERSION
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:103:warning: override: reassigning to symbol SND_RAWMIDI
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:108:warning: override: reassigning to symbol SEC_PM
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:109:warning: override: reassigning to symbol SEC_PM_DEBUG
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:127:warning: override: reassigning to symbol SENSORS_ADSP
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:160:warning: override: reassigning to symbol BATTERY_BQ28400
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:166:warning: override: reassigning to symbol QPNP_CHARGER
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:167:warning: override: reassigning to symbol QPNP_BMS
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:170:warning: override: reassigning to symbol BATTERY_SWELLING
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:174:warning: override: reassigning to symbol KS8851
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:192:warning: override: reassigning to symbol HID
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:208:warning: override: reassigning to symbol RCU_FAST_NO_HZ
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:211:warning: override: reassigning to symbol NET_CORE
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:212:warning: override: reassigning to symbol NET_SCH_PRIO
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:213:warning: override: reassigning to symbol NET_SCHED
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:216:warning: override: reassigning to symbol NET_CLS_ACT
arch/arm/configs/msm8974pro_sec_klte_eur_defconfig:218:warning: override: reassigning to symbol NET_EMATCH
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
make: Leaving directory '/home/garry050/WIP/boeffla'
make: Entering directory '/home/garry050/WIP/boeffla'
GEN /home/garry050/WIP/boeffla/output/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'
sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'
boolean symbol SND_SOC_MAX98506 tested for 'm'? test forced to 'n'
sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group
sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group
GEN /home/garry050/WIP/boeffla/output/Makefile
CHK include/linux/version.h
make[2]: Nothing to be done for 'arch/arm/boot/dtbs'.
Using /home/garry050/WIP/boeffla as source for kernel
CHK include/generated/utsrelease.h
make[2]: 'include/generated/mach-types.h' is up to date.
CALL /home/garry050/WIP/boeffla/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/cpufreq/cpufreq.o
CC drivers/cpufreq/cpufreq_powersave.o
CC drivers/cpufreq/cpufreq_userspace.o
CC drivers/cpufreq/cpufreq_ondemand.o
CC drivers/cpufreq/cpufreq_conservative.o
CC drivers/cpufreq/freq_table.o
CC drivers/cpufreq/cpufreq_interactive.o
/home/garry050/WIP/boeffla/drivers/cpufreq/cpufreq.c: In function 'cpufreq_register_driver':
/home/garry050/WIP/boeffla/drivers/cpufreq/cpufreq.c:2233:28: error: 'CONFIG_MSM_CPU_FREQ_MIN' undeclared (first use in this function)
min_freq_hardlimit[i] = CONFIG_MSM_CPU_FREQ_MIN;
^
/home/garry050/WIP/boeffla/drivers/cpufreq/cpufreq.c:2233:28: note: each undeclared identifier is reported only once for each function it appears in
/home/garry050/WIP/boeffla/drivers/cpufreq/cpufreq.c:2234:28: error: 'CONFIG_MSM_CPU_FREQ_MAX' undeclared (first use in this function)
max_freq_hardlimit[i] = CONFIG_MSM_CPU_FREQ_MAX;
^
/home/garry050/WIP/boeffla/scripts/Makefile.build:307: recipe for target 'drivers/cpufreq/cpufreq.o' failed
make[3]: *** [drivers/cpufreq/cpufreq.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/home/garry050/WIP/boeffla/scripts/Makefile.build:443: recipe for target 'drivers/cpufreq' failed
make[2]: *** [drivers/cpufreq] Error 2
/home/garry050/WIP/boeffla/Makefile:975: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/garry050/WIP/boeffla'
cp: cannot stat 'output/arch/arm/boot/Image': No such file or directory
garry050@ubuntu:~/WIP/boeffla$

How to solve it? why i got CONFIG_MSM_CPU_FREQ_MAX error?

OS: Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-71-generic x86_64) on VirtualBox 5.1.20

MYPC: Asus H97-Plus / Intel Core i7 4790 / GTX750Ti / RAM24GB(VirtualBox:12GB )

Commands executed: . Build_kernel.sh

Toolchain: https://bitbucket.org/UBERTC/arm-linux-androideabi-4.9

GGC: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Edit: i'm stupid. nvm