You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
337 lines
6.6 KiB
337 lines
6.6 KiB
menu "System Config"
|
|
|
|
choice
|
|
prompt "Product Type"
|
|
default LINUX_PRODUCT
|
|
|
|
config LINUX_PRODUCT
|
|
bool "linux"
|
|
help
|
|
set product type to Linux
|
|
|
|
config ANDROID_PRODUCT
|
|
bool "android"
|
|
help
|
|
set product type to Android
|
|
endchoice
|
|
|
|
choice
|
|
prompt "Kernel Type"
|
|
default SOCT_COMMON_KERNEL
|
|
|
|
config SOCT_COMMON_KERNEL
|
|
bool "android common kernel"
|
|
default n
|
|
help
|
|
set kernel type to Android common kernel
|
|
|
|
config SOCT_LTS_KERNEL
|
|
bool "linux longterm kernel"
|
|
default n
|
|
help
|
|
set kernel type to linux longterm kernel
|
|
|
|
config SOCT_OH_KERNEL
|
|
bool "linux ohos kernel"
|
|
default n
|
|
help
|
|
set kernel type to linux ohos kernel
|
|
endchoice
|
|
|
|
config ARCH_LP64_MODE
|
|
bool "arch lp64 mode"
|
|
default y
|
|
|
|
config PRODUCT_TYPE
|
|
string
|
|
default "linux" if LINUX_PRODUCT
|
|
default "android" if ANDROID_PRODUCT
|
|
|
|
config PLATFORM_HUANGLONG
|
|
bool "huanglong platform"
|
|
default y
|
|
|
|
choice
|
|
prompt "Android Type"
|
|
default ANDROID_AOSP
|
|
depends on ANDROID_PRODUCT
|
|
|
|
config ANDROID_AOSP
|
|
bool "AOSP"
|
|
config ANDROID_TVOS
|
|
bool "TVOS"
|
|
endchoice
|
|
|
|
choice
|
|
prompt "Mode"
|
|
default SOCT_USER_MODE
|
|
|
|
config SOCT_USER_MODE
|
|
bool "user"
|
|
|
|
config SOCT_ENG_MODE
|
|
bool "engineer"
|
|
endchoice
|
|
|
|
###########################################################
|
|
|
|
config RESERVED13
|
|
bool "reserved13"
|
|
select CHIP_TYPE_RESERVED13
|
|
|
|
config RESERVED9
|
|
bool "reserved9"
|
|
select CHIP_TYPE_RESERVED9
|
|
|
|
config RESERVED5
|
|
bool "reserved5"
|
|
select CHIP_TYPE_RESERVED5
|
|
|
|
config RESERVED23
|
|
bool "reserved23"
|
|
select CHIP_TYPE_RESERVED23
|
|
|
|
config HI3751V811
|
|
bool "hi3751v811"
|
|
select CHIP_TYPE_HI3751V811
|
|
|
|
config RESERVED19
|
|
bool "reserved19"
|
|
select CHIP_TYPE_RESERVED19
|
|
|
|
config RESERVED17
|
|
bool "reserved17"
|
|
select CHIP_TYPE_RESERVED17
|
|
|
|
config SOCT_CHIP_TYPE
|
|
string
|
|
default "reserved13" if RESERVED13
|
|
default "reserved9" if RESERVED9
|
|
default "reserved5" if RESERVED5
|
|
default "reserved23" if RESERVED23
|
|
default "reserved19" if RESERVED19
|
|
default "reserved17" if RESERVED17
|
|
default "hi3751v811" if HI3751V811
|
|
|
|
config SOCT_CHIP_REVERSION
|
|
string "chip reversion"
|
|
|
|
config CHIP_TYPE_RESERVED13
|
|
bool "reserved13"
|
|
|
|
config CHIP_TYPE_RESERVED9
|
|
bool "reserved9"
|
|
|
|
config CHIP_TYPE_RESERVED5
|
|
bool "reserved5"
|
|
|
|
config CHIP_TYPE_RESERVED23
|
|
bool "reserved23"
|
|
|
|
config CHIP_TYPE_HI3751V811
|
|
bool "hi3751v811"
|
|
|
|
config CHIP_TYPE_RESERVED19
|
|
bool "reserved19"
|
|
|
|
config CHIP_TYPE_RESERVED17
|
|
bool "reserved17"
|
|
|
|
config SOCT_CHIP_B_SUPPORT
|
|
bool "chip type b support"
|
|
depends on RESERVED13 || RESERVED9 || RESERVED19 || RESERVED17 || HI3751V811
|
|
default n
|
|
|
|
config SOCT_CHIP_C_SUPPORT
|
|
bool "chip type c support"
|
|
depends on RESERVED13 || RESERVED9 || RESERVED19 || RESERVED17 || HI3751V811
|
|
default n
|
|
|
|
choice
|
|
prompt "Kernel Space"
|
|
default SOCT_64BIT_SYSTEM
|
|
|
|
config SOCT_32BIT_SYSTEM
|
|
bool "32bit"
|
|
depends on !(RESERVED13)
|
|
|
|
config SOCT_64BIT_SYSTEM
|
|
bool "64bit"
|
|
endchoice
|
|
|
|
choice
|
|
prompt "User Space"
|
|
default SOCT_USER_SPACE_LIB if SOCT_32BIT_SYSTEM
|
|
default SOCT_USER_SPACE_ALL_LIB if SOCT_64BIT_SYSTEM
|
|
depends on LINUX_PRODUCT
|
|
|
|
config SOCT_USER_SPACE_LIB
|
|
bool "32bit"
|
|
|
|
config SOCT_USER_SPACE_LIB64
|
|
bool "64bit"
|
|
depends on SOCT_64BIT_SYSTEM
|
|
|
|
config SOCT_USER_SPACE_ALL_LIB
|
|
bool "32bit + 64bit"
|
|
depends on SOCT_64BIT_SYSTEM
|
|
endchoice
|
|
|
|
config SOCT_CPU_ARCH
|
|
string
|
|
default "arm" if SOCT_32BIT_SYSTEM
|
|
default "arm64" if SOCT_64BIT_SYSTEM
|
|
|
|
endmenu
|
|
|
|
menu "Toolchains Config"
|
|
|
|
choice
|
|
prompt "32bit Toolchains"
|
|
default ARM_SOC100_LINUX
|
|
|
|
config ARM_SOC100_LINUX
|
|
bool "arm-v100-linux"
|
|
|
|
endchoice
|
|
|
|
config SOCT_ARM_TOOLCHAINS_NAME
|
|
string
|
|
default "arm-v100-linux" if ARM_SOC100_LINUX
|
|
|
|
choice
|
|
prompt "64bit Toolchains"
|
|
default AARCH64_SOC100_LINUX
|
|
|
|
config AARCH64_SOC100_LINUX
|
|
bool "aarch64-v100-linux"
|
|
|
|
endchoice
|
|
|
|
config SOCT_AARCH64_TOOLCHAINS_NAME
|
|
string
|
|
default "aarch64-v100-linux" if AARCH64_SOC100_LINUX
|
|
|
|
if ANDROID_PRODUCT
|
|
menu "Clang Compiler Config"
|
|
|
|
config SOCT_COMPILE_KERNEL_WITH_CLANG
|
|
bool "Compile kernel with clang"
|
|
default y
|
|
|
|
if SOCT_COMPILE_KERNEL_WITH_CLANG
|
|
choice
|
|
prompt "Clang 32bit Toolchains"
|
|
default ARM_LINUX_ANDROIDEABI
|
|
|
|
config ARM_LINUX_ANDROIDEABI
|
|
bool "arm-linux-androideabi"
|
|
|
|
endchoice
|
|
|
|
config SOCT_ARM_CLANG_TOOLCHAINS_NAME
|
|
string
|
|
default "arm-linux-androideabi" if ARM_LINUX_ANDROIDEABI
|
|
|
|
choice
|
|
prompt "Clang 64bit Toolchains"
|
|
default AARCH64_LINUX_ANDROID
|
|
|
|
config AARCH64_LINUX_ANDROID
|
|
bool "aarch64-linux-android"
|
|
|
|
endchoice
|
|
|
|
config SOCT_AARCH64_CLANG_TOOLCHAINS_NAME
|
|
string
|
|
default "aarch64-linux-android" if AARCH64_LINUX_ANDROID
|
|
endif
|
|
|
|
endmenu
|
|
endif
|
|
|
|
endmenu
|
|
|
|
config SOCT_OUT_DIR
|
|
string
|
|
default "reserved13" if RESERVED13
|
|
default "reserved9" if RESERVED9
|
|
default "reserved23" if RESERVED23
|
|
default "reserved19" if RESERVED19
|
|
default "reserved17" if RESERVED17
|
|
default "hi3751v811" if HI3751V811
|
|
depends on LINUX_PRODUCT
|
|
|
|
config SOCT_USB3_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_SATA_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_JPGE_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_PNG_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_SMMU_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_HDR_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_HDR_DOLBYVISION_SUPPORT
|
|
bool
|
|
depends on SOCT_HDR_SUPPORT
|
|
default y
|
|
|
|
config SOCT_MAILBOX_SUPPORT
|
|
bool
|
|
default y
|
|
|
|
config SOCT_TEE_SMP_SUPPORT
|
|
bool
|
|
depends on SOCT_TEE_SUPPORT
|
|
default y
|
|
|
|
config SOCT_RECOVERY_SUPPORT
|
|
bool "build recovery"
|
|
default n
|
|
|
|
config SOCT_LOADER_APPLOADER_SUPPORT
|
|
bool "build apploader"
|
|
default n
|
|
|
|
config SOCT_OPTM_SIZE_SUPPORT
|
|
bool
|
|
default n
|
|
help
|
|
optimize the compilation target size by using "-ffunction-sections" flag,
|
|
the compiler will create a '.text' for each function, and each unused .text
|
|
will be removed to reduce the final application size
|
|
|
|
config SOCT_KMOD_CFLAGS
|
|
string
|
|
help
|
|
compile huanglong media driver flags.
|
|
|
|
config SOCT_DRV_BUILDIN
|
|
bool "Build media Drivers into Kernel Image"
|
|
default n
|
|
help
|
|
This feature enables compiling drivers of Huanglong modules
|
|
into kernel image. If you say Y here, the Huanglong drivers
|
|
will be compiled as part of kernel image, which means there
|
|
would be no seperated *.ko generated.
|
|
|
|
menuconfig SOCT_SENSORHUB_SUPPORT
|
|
tristate "SensorHub Support"
|
|
default m if RESERVED23
|
|
default n
|