/
3. CONFIGURATION

3. CONFIGURATION

The source code of configuration is composed by of default configuration and kernel configurations. During "make config", kernel will load pentagram_sc7021_achip_emu_defconfig file as default configuration setting. Kernel configuration window can modify or add configuration to become final configuration during compiler. So, if user wants to change configuration, please follow below procedure.

  • Change the default configuration file
  • Execute "make config" to create configure file for compiler
  • Change Kernel configuration setting in kernel configuration window
  • Execute "make all" to compile all setting

3.1 Default configuration

User can set default configuration at path: linux/kernel/arch/arm/configs/pentagram_sc7021_achip_emu_defconfig. During "make config", kernel will load this file as default configuration setting. The default configuration includes many compile switches for source code , make sure you are familiar the setting with relationship between the setting and source code, otherwise please don't change them.
The partial content list as below:

CONFIG_CROSS_COMPILE="armv7hf-glibc-linux-"
CONFIG_SYSVIPC=y
CONFIG_USELIB=y
CONFIG_NO_HZ_IDLE=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=14
CONFIG_BLK_DEV_INITRD=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS_ALL=y
CONFIG_EMBEDDED=y
CONFIG_PERF_EVENTS=y
CONFIG_SLAB=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODVERSIONS=y
CONFIG_ARCH_PENTAGRAM=y
CONFIG_SP_DISP_SP7021_TEST=y
CONFIG_SMP=y
~~~~~~~~~~~~~~



3.2 Kernel configuration

Please run "make menuconfig" under folder 'linux/kernel/' to come in kernel configuration setting window. User can select any setting what you want (For example, enable Device Drivers). Save the setting to get final configuration, then compile to get the final result. Figure 4 shows kernel configuration window. For The detailed enabling method of each driver, please check chapter 4.

Figure 4. Kernel Configuration window.

Related content

6. OPEN SOURCE APPLICATION AND HOW TO CROSS COMPILE AND INSTALL
6. OPEN SOURCE APPLICATION AND HOW TO CROSS COMPILE AND INSTALL
More like this
4. HOW TO ENABLE DRIVER
4. HOW TO ENABLE DRIVER
Read with this
How to complie ARM926 Arduino Framework
How to complie ARM926 Arduino Framework
More like this
2. HOW TO GET SOURCE FILE AND IMAGE
2. HOW TO GET SOURCE FILE AND IMAGE
Read with this
How to compile the code for ARM926
How to compile the code for ARM926
More like this
SP7021 Board Support Package
SP7021 Board Support Package
Read with this