目录
一 安装visual studio code(简称vscode)
二 vscode新建工作空间
三 添加头文件搜索路径
四 添加宏定义
五 按F12或者"Ctrl+单击"可快速定位到定义与自动补全功能
六 设置左侧目录不自动展开
七 设置隐藏文件夹
八 编译生成可执行文件
一 安装visual studio code(简称vscode)
方式一: 直接在ubuntu自带应用商店搜索安装(该方法可能导致无法在vscode中输入中文,推荐使用方式二).
方式二: 官网下载deb安装包后执行 sudo dpkg -i XXX.deb 或者从文件夹双击.下载链接:
https://code.visualstudio.com/Download
二 vscode新建工作空间
1. 安装好vscode后,打开程序,在欢迎界面点击"Add workspace folder"然后找到linux-3.4.2文件夹,该文件夹是交叉编译过后的linux源码,如何配置并交叉编译linux内核不是本文重点,这里略过.
2. 新建一个文件夹linux_drv ,该文件夹是用来保存你自己的编写的驱动还有Makefile文件的,文件名与路径随意. 然后在vscode软件中点击"File->add folder to workspace"
3. "File->save workspace as ...".保存工作空间,命名vscode_workspace,名字与路径随意.
三 添加头文件搜索路径
按快捷键"Ctrl + Shift + P", 然后搜索>Edit configurations ,单击后,会打开一个c_cpp_properties.json文件,该文件位置可以把鼠标放到标签栏下查看,一般位于隐藏的.vscode下, 按照如下方式添加头文件, 你需要根据自己的路径,还有开发板类型选择,我这里使用的是linux-3.4.2的内核, s3c2440的开发板.
"includePath": [
"${workspaceFolder}/**",
"/home/ningjw/linux-3.4.2/include",
"/home/ningjw/linux-3.4.2/arch/arm/include",
"/home/ningjw/linux-3.4.2/arch/arm/plat-samsung/include",
"/home/ningjw/linux-3.4.2/arch/arm/mach-s3c24xx/include"
],
四 添加宏定义
1. 宏定义也是在c_cpp_properties.json文件中添加,放在"defines": [ ] 中的方括号中.
2. 宏定义文件位于linux-3.4.2/include/generated/autoconf.h文件中, 这里需要复制一份autoconf.h对该文件进行修改: 原来的格式为 #define CONFIG_IP6_NF_MATCH_AH_MODULE 1 需要修改为 "CONFIG_IP6_NF_MATCH_AH_MODULE 1"
3. 小编使用sublime text3的列编辑模式对该文件进行修改.
删除文件头部的/* */注释
Ctrl+A 全选
Ctrl+Shift+L 进入列选模式
<- 方向键定位到列首
del 按键删除#define,然后添加英文双引号"
-> 方向键定位到列尾,添加英文双引号,添加英文逗号,
在文件头部添加 "__KERNEL__",
4.按上述修改好后添加到"defines": [ ] 中的方括号中,会发现还会报错,继续修改, 定位到报错处,发现是由于双引号引起的,将双引号前加一个转义字符 ,如下图所示,另外还需要去掉最后一个宏的逗号, c_cpp_properties.json就修改完成了.
5. 需要保证liux-3.4.2与linux_drv文件夹下的.vscode目录下都有这样的一份c_cpp_properties.json文件,该文件可以单独保存下来,下次直接复制粘贴就行.完整的文件如下:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/home/ningjw/linux-3.4.2/include",
"/home/ningjw/linux-3.4.2/arch/arm/include",
"/home/ningjw/linux-3.4.2/arch/arm/plat-samsung/include",
"/home/ningjw/linux-3.4.2/arch/arm/mach-s3c24xx/include"
],
"defines": [
"__KERNEL__",
"CONFIG_IP6_NF_MATCH_AH_MODULE 1",
"CONFIG_NLS_CODEPAGE_861_MODULE 1",
"CONFIG_NF_CONNTRACK_H323_MODULE 1",
"CONFIG_SCSI_DMA 1",
"CONFIG_KERNEL_GZIP 1",
"CONFIG_IP_NF_TARGET_REDIRECT_MODULE 1",
"CONFIG_CRC32 1",
"CONFIG_I2C_BOARDINFO 1",
"CONFIG_HAVE_AOUT 1",
"CONFIG_AEABI 1",
"CONFIG_MTD_NAND_S3C2410 1",
"CONFIG_BT_RFCOMM_MODULE 1",
"CONFIG_LEDS_TRIGGER_HEARTBEAT_MODULE 1",
"CONFIG_XZ_DEC_IA64 1",
"CONFIG_INOTIFY_USER 1",
"CONFIG_S3C2440_XTAL_16934400 1",
"CONFIG_NF_CONNTRACK_NETBIOS_NS_MODULE 1",
"CONFIG_NETWORK_FILESYSTEMS 1",
"CONFIG_CRYPTO_MD4_MODULE 1",
"CONFIG_BT_HCIBFUSB_MODULE 1",
"CONFIG_ARCH_SUSPEND_POSSIBLE 1",
"CONFIG_INLINE_WRITE_UNLOCK_IRQ 1",
"CONFIG_LEDS_PCA955X_MODULE 1",
"CONFIG_BLK_DEV_NBD_MODULE 1",
"CONFIG_TCP_CONG_HTCP_MODULE 1",
"CONFIG_EXT4_FS_POSIX_ACL 1",
"CONFIG_NETFILTER_XT_MATCH_HELPER_MODULE 1",
"CONFIG_SSB_POSSIBLE 1",
"CONFIG_NF_NAT_SIP_MODULE 1",
"CONFIG_S3C_ADC 1",
"CONFIG_NETFILTER_XT_MATCH_STATISTIC_MODULE 1",
"CONFIG_NLS_CODEPAGE_855_MODULE 1",
"CONFIG_USB_OHCI_LITTLE_ENDIAN 1",
"CONFIG_FSNOTIFY 1",
"CONFIG_BLK_DEV_LOOP_MIN_COUNT 8",
"CONFIG_INET6_TUNNEL_MODULE 1",
"CONFIG_NF_CONNTRACK_SIP_MODULE 1",
"CONFIG_CRYPTO_MANAGER_DISABLE_TESTS 1",
"CONFIG_HAVE_KERNEL_LZMA 1",
"CONFIG_IP_NF_QUEUE_MODULE 1",
"CONFIG_DEFAULT_SECURITY_DAC 1",
"CONFIG_KTIME_SCALAR 1",
"CONFIG_IP6_NF_MANGLE_MODULE 1",
"CONFIG_SCSI_CONSTANTS 1",
"CONFIG_NETFILTER_XT_MATCH_REALM_MODULE 1",
"CONFIG_BT_HCIBPA10X_MODULE 1",
"CONFIG_S3C2410_WATCHDOG 1",
"CONFIG_IPV6_MODULE 1",
"CONFIG_CRYPTO_AEAD_MODULE 1",
"CONFIG_BQL 1",
"CONFIG_DEFAULT_TCP_CONG "cubic"",
"CONFIG_UEVENT_HELPER_PATH "/sbin/hotplug"",
"CONFIG_USB_DEVICEFS 1",
"CONFIG_CPU_LLSERIAL_S3C2440_ONLY 1",
"CONFIG_USB_STORAGE_USBAT_MODULE 1",
"CONFIG_NF_NAT_PROTO_GRE_MODULE 1",
"CONFIG_NLS_ISO8859_7_MODULE 1",
"CONFIG_MMC_S3C_PIO 1",
"CONFIG_S3C24XX_GPIO_EXTRA 0",
"CONFIG_IP6_NF_TARGET_REJECT_MODULE 1",
"CONFIG_WLAN 1",
"CONFIG_S3C2410_CLOCK 1",
"CONFIG_NAMESPACES 1",
"CONFIG_DEFAULT_MESSAGE_LOGLEVEL 4",
"CONFIG_SERIAL_SAMSUNG 1",
"CONFIG_NETFILTER_XT_TARGET_RATEEST_MODULE 1",
"CONFIG_LEGACY_PTYS 1",
"CONFIG_XFRM_IPCOMP_MODULE 1",
"CONFIG_CRYPTO_RNG2_MODULE 1",
"CONFIG_NETFILTER_NETLINK_QUEUE_MODULE 1",
"CONFIG_MSDOS_FS 1",
"CONFIG_CFG80211_MODULE 1",
"CONFIG_NLS_CODEPAGE_1250_MODULE 1",
"CONFIG_HAVE_PROC_CPU 1",
"CONFIG_LZO_DECOMPRESS 1",
"CONFIG_IOMMU_SUPPORT 1",
"CONFIG_NLS_CODEPAGE_862_MODULE 1",
"CONFIG_NFSD_MODULE 1",
"CONFIG_USB 1",
"CONFIG_CRYPTO_HMAC_MODULE 1",
"CONFIG_ETHERNET 1",
"CONFIG_BRANCH_PROFILE_NONE 1",
"CONFIG_SCSI_SCAN_ASYNC 1",
"CONFIG_CRC_ITU_T_MODULE 1",
"CONFIG_DQL 1",
"CONFIG_FRAMEBUFFER_CONSOLE 1",
"CONFIG_SND_SEQUENCER_MODULE 1",
"CONFIG_IP_NF_ARPTABLES_MODULE 1",
"CONFIG_BCMA_POSSIBLE 1",
"CONFIG_FORCE_MAX_ZONEORDER 11",
"CONFIG_SND_SOC 1",
"CONFIG_PRINTK 1",
"CONFIG_NF_CONNTRACK_PROC_COMPAT 1",
"CONFIG_TIMERFD 1",
"CONFIG_MTD_CFI_I2 1",
"CONFIG_CRYPTO_AUTHENC_MODULE 1",
"CONFIG_SHMEM 1",
"CONFIG_MTD 1",
"CONFIG_HAVE_ARCH_JUMP_LABEL 1",
"CONFIG_MMC_BLOCK_MINORS 8",
"CONFIG_NLS_CODEPAGE_850 1",
"CONFIG_DNOTIFY 1",
"CONFIG_INPUT_MOUSEDEV 1",
"CONFIG_CRYPTO_DES_MODULE 1",
"CONFIG_ENABLE_MUST_CHECK 1",
"CONFIG_NLS_CODEPAGE_437 1",
"CONFIG_MTD_NAND_IDS 1",
"CONFIG_EXPORTFS_MODULE 1",
"CONFIG_SND_MIXER_OSS_MODULE 1",
"CONFIG_IP6_NF_MATCH_MH_MODULE 1",
"CONFIG_SERIO 1",
"CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS 1",
"CONFIG_RTC_INTF_SYSFS 1",
"CONFIG_USB_EMI62_MODULE 1",
"CONFIG_LEDS_TRIGGER_TIMER_MODULE 1",
"CONFIG_SND_OSSEMUL 1",
"CONFIG_HAVE_BPF_JIT 1",
"CONFIG_ZLIB_INFLATE 1",
"CONFIG_DEBUG_LL 1",
"CONFIG_HWMON 1",
"CONFIG_NLS_ISO8859_2_MODULE 1",
"CONFIG_IP_PNP 1",
"CONFIG_LEDS_S3C24XX_MODULE 1",
"CONFIG_RTC_INTF_PROC 1",
"CONFIG_PM_CLK 1",
"CONFIG_STACKTRACE_SUPPORT 1",
"CONFIG_USB_DEVICE_CLASS 1",
"CONFIG_LOCKD 1",
"CONFIG_SOUND_OSS_CORE 1",
"CONFIG_ARM 1",
"CONFIG_JFFS2_FS 1",
"CONFIG_ARM_L1_CACHE_SHIFT 5",
"CONFIG_BT_RFCOMM_TTY 1",
"CONFIG_MTD_CFI_UTIL 1",
"CONFIG_CPU_TLB_V4WBI 1",
"CONFIG_NETFILTER_XT_MATCH_STRING_MODULE 1",
"CONFIG_MTD_CFI_INTELEXT 1",
"CONFIG_CPU_COPY_V4WB 1",
"CONFIG_USB_STORAGE_MODULE 1",
"CONFIG_STANDALONE 1",
"CONFIG_S3C_BOOT_ERROR_RESET 1",
"CONFIG_WATCHDOG_CORE 1",
"CONFIG_ARCH_HAS_CPUFREQ 1",
"CONFIG_BLOCK 1",
"CONFIG_HID_APPLE_MODULE 1",
"CONFIG_INIT_ENV_ARG_LIMIT 32",
"CONFIG_IP_NF_ARP_MANGLE_MODULE 1",
"CONFIG_GENERIC_GPIO 1",
"CONFIG_ROOT_NFS 1",
"CONFIG_NF_CONNTRACK_PPTP_MODULE 1",
"CONFIG_TMPFS_POSIX_ACL 1",
"CONFIG_BUG 1",
"CONFIG_MAC80211_HAS_RC 1",
"CONFIG_PM 1",
"CONFIG_USB_LCD_MODULE 1",
"CONFIG_SPI 1",
"CONFIG_NF_CONNTRACK_IRC_MODULE 1",
"CONFIG_DEVKMEM 1",
"CONFIG_TEXTSEARCH_KMP_MODULE 1",
"CONFIG_VT 1",
"CONFIG_NETFILTER_XT_TARGET_CLASSIFY_MODULE 1",
"CONFIG_REGMAP_SPI 1",
"CONFIG_SPLIT_PTLOCK_CPUS 999999",
"CONFIG_POWER_SUPPLY 1",
"CONFIG_NETFILTER_XT_TARGET_NFQUEUE_MODULE 1",
"CONFIG_WEXT_CORE 1",
"CONFIG_GENERIC_IRQ_CHIP 1",
"CONFIG_NLS 1",
"CONFIG_SND_VERBOSE_PRINTK 1",
"CONFIG_USB_LEGOTOWER_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_OWNER_MODULE 1",
"CONFIG_IP_NF_TARGET_ECN_MODULE 1",
"CONFIG_ENABLE_WARN_DEPRECATED 1",
"CONFIG_SPI_BITBANG_MODULE 1",
"CONFIG_USB_STORAGE_ALAUDA_MODULE 1",
"CONFIG_USB_COMMON 1",
"CONFIG_IP6_NF_IPTABLES_MODULE 1",
"CONFIG_INET_IPCOMP_MODULE 1",
"CONFIG_CPU_S3C2440 1",
"CONFIG_ATA_OVER_ETH_MODULE 1",
"CONFIG_NLS_ISO8859_1 1",
"CONFIG_CRYPTO_WORKQUEUE_MODULE 1",
"CONFIG_BACKLIGHT_GENERIC_MODULE 1",
"CONFIG_TEXTSEARCH_BM_MODULE 1",
"CONFIG_NF_CONNTRACK_PROCFS 1",
"CONFIG_BT_HCIUART_LL 1",
"CONFIG_SND_PCM_OSS_MODULE 1",
"CONFIG_NETDEVICES 1",
"CONFIG_NET_KEY_MODULE 1",
"CONFIG_IP6_NF_TARGET_HL_MODULE 1",
"CONFIG_IOSCHED_DEADLINE 1",
"CONFIG_EVENTFD 1",
"CONFIG_FS_POSIX_ACL 1",
"CONFIG_IPV6_SIT_MODULE 1",
"CONFIG_XFRM 1",
"CONFIG_DEFCONFIG_LIST "/lib/modules/$UNAME_RELEASE/.config"",
"CONFIG_HAVE_S3C_RTC 1",
"CONFIG_IP_NF_TARGET_MASQUERADE_MODULE 1",
"CONFIG_NF_CONNTRACK_BROADCAST_MODULE 1",
"CONFIG_PROC_PAGE_MONITOR 1",
"CONFIG_USB_FTDI_ELAN_MODULE 1",
"CONFIG_ARCH_HAS_CPU_IDLE_WAIT 1",
"CONFIG_USB_IOWARRIOR_MODULE 1",
"CONFIG_SCSI_WAIT_SCAN_MODULE 1",
"CONFIG_BACKLIGHT_CLASS_DEVICE_MODULE 1",
"CONFIG_CPU_CACHE_VIVT 1",
"CONFIG_NF_DEFRAG_IPV4_MODULE 1",
"CONFIG_USB_IDMOUSE_MODULE 1",
"CONFIG_INET_XFRM_MODE_BEET 1",
"CONFIG_HAVE_ARCH_PFN_VALID 1",
"CONFIG_NETFILTER_ADVANCED 1",
"CONFIG_CRYPTO_DEFLATE_MODULE 1",
"CONFIG_USB_APPLEDISPLAY_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_TCPMSS_MODULE 1",
"CONFIG_MTD_CFI 1",
"CONFIG_IPV6_ROUTER_PREF 1",
"CONFIG_JFFS2_FS_DEBUG 0",
"CONFIG_CPU_32v4T 1",
"CONFIG_NETFILTER_NETLINK_LOG_MODULE 1",
"CONFIG_HAVE_DYNAMIC_FTRACE 1",
"CONFIG_NLS_ISO8859_14_MODULE 1",
"CONFIG_MAGIC_SYSRQ 1",
"CONFIG_NETFILTER_XT_MATCH_MARK_MODULE 1",
"CONFIG_MAC80211_RC_DEFAULT_MINSTREL 1",
"CONFIG_IP_NF_MANGLE_MODULE 1",
"CONFIG_DEFAULT_CFQ 1",
"CONFIG_INET6_XFRM_MODE_TUNNEL_MODULE 1",
"CONFIG_DEBUG_BUGVERBOSE 1",
"CONFIG_IP_NF_FILTER_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_LENGTH_MODULE 1",
"CONFIG_FAT_FS 1",
"CONFIG_TEXTSEARCH_FSM_MODULE 1",
"CONFIG_SENSORS_LM75_MODULE 1",
"CONFIG_IP6_NF_RAW_MODULE 1",
"CONFIG_INET_TUNNEL_MODULE 1",
"CONFIG_MMC_BLOCK_BOUNCE 1",
"CONFIG_ARCH_S3C24XX 1",
"CONFIG_IOSCHED_CFQ 1",
"CONFIG_HAVE_KERNEL_XZ 1",
"CONFIG_RTC_DRV_S3C 1",
"CONFIG_CPU_CP15_MMU 1",
"CONFIG_CONSOLE_TRANSLATIONS 1",
"CONFIG_LEDS_TRIGGER_BACKLIGHT 1",
"CONFIG_USB_OHCI_HCD 1",
"CONFIG_DUMMY_CONSOLE 1",
"CONFIG_NLS_ASCII 1",
"CONFIG_USB_RIO500_MODULE 1",
"CONFIG_TRACE_IRQFLAGS_SUPPORT 1",
"CONFIG_NFS_V3_ACL 1",
"CONFIG_SMDK2440_CPU2440 1",
"CONFIG_TCP_CONG_ADVANCED 1",
"CONFIG_NETFILTER_XT_MATCH_CONNMARK_MODULE 1",
"CONFIG_LEDS_TRIGGERS 1",
"CONFIG_HAVE_REGS_AND_STACK_ACCESS_API 1",
"CONFIG_USB_STORAGE_CYPRESS_ATACB_MODULE 1",
"CONFIG_INET_XFRM_MODE_TRANSPORT 1",
"CONFIG_CRYPTO_MD5_MODULE 1",
"CONFIG_NFSD_V3 1",
"CONFIG_DEBUG_USER 1",
"CONFIG_HAVE_GENERIC_HARDIRQS 1",
"CONFIG_BINFMT_ELF 1",
"CONFIG_SCSI_PROC_FS 1",
"CONFIG_HOTPLUG 1",
"CONFIG_UDF_NLS 1",
"CONFIG_INET6_AH_MODULE 1",
"CONFIG_CPU_CP15 1",
"CONFIG_S3C24XX_PWM 1",
"CONFIG_IP_NF_TARGET_ULOG_MODULE 1",
"CONFIG_INET_XFRM_TUNNEL_MODULE 1",
"CONFIG_DEBUG_MUTEXES 1",
"CONFIG_NETFILTER_XT_MARK_MODULE 1",
"CONFIG_NETFILTER_XTABLES_MODULE 1",
"CONFIG_LEDS_BD2802_MODULE 1",
"CONFIG_SLABINFO 1",
"CONFIG_USB_STORAGE_DATAFAB_MODULE 1",
"CONFIG_CRYPTO_HW 1",
"CONFIG_MAC80211_RC_MINSTREL_HT 1",
"CONFIG_USB_STORAGE_KARMA_MODULE 1",
"CONFIG_HARDIRQS_SW_RESEND 1",
"CONFIG_JFFS2_FS_WRITEBUFFER 1",
"CONFIG_SPI_MASTER 1",
"CONFIG_SND_SEQUENCER_OSS 1",
"CONFIG_USB_WDM_MODULE 1",
"CONFIG_BT_HCIBCM203X_MODULE 1",
"CONFIG_XZ_DEC_X86 1",
"CONFIG_MAC80211_LEDS 1",
"CONFIG_USB_ACM_MODULE 1",
"CONFIG_CRC16_MODULE 1",
"CONFIG_GENERIC_CALIBRATE_DELAY 1",
"CONFIG_NLS_ISO8859_6_MODULE 1",
"CONFIG_BROKEN_ON_SMP 1",
"CONFIG_ARCH_REQUIRE_GPIOLIB 1",
"CONFIG_TMPFS 1",
"CONFIG_ANON_INODES 1",
"CONFIG_NLS_CODEPAGE_936_MODULE 1",
"CONFIG_FUTEX 1",
"CONFIG_IP_PNP_DHCP 1",
"CONFIG_MMC_SPI_MODULE 1",
"CONFIG_REGMAP_I2C 1",
"CONFIG_NETFILTER_XT_TARGET_HL_MODULE 1",
"CONFIG_NFSD_V2_ACL 1",
"CONFIG_VMSPLIT_3G 1",
"CONFIG_RTC_HCTOSYS 1",
"CONFIG_SERIAL_CORE_CONSOLE 1",
"CONFIG_SENSORS_LM78_MODULE 1",
"CONFIG_NF_CONNTRACK_EVENTS 1",
"CONFIG_IPV6_NDISC_NODETYPE 1",
"CONFIG_NLS_CODEPAGE_1251_MODULE 1",
"CONFIG_BLK_DEV_SR_VENDOR 1",
"CONFIG_SYSVIPC 1",
"CONFIG_CRYPTO_PCOMP2_MODULE 1",
"CONFIG_NLS_CODEPAGE_863_MODULE 1",
"CONFIG_NF_CONNTRACK_FTP_MODULE 1",
"CONFIG_MODULES 1",
"CONFIG_IP_NF_MATCH_ECN_MODULE 1",
"CONFIG_CPU_S3C244X 1",
"CONFIG_SOUND 1",
"CONFIG_S3C_BOOT_UART_FORCE_FIFO 1",
"CONFIG_UNIX 1",
"CONFIG_YAFFS_YAFFS1 1",
"CONFIG_HAVE_CLK 1",
"CONFIG_CRYPTO_HASH2_MODULE 1",
"CONFIG_DEFAULT_HOSTNAME "(none)"",
"CONFIG_NLS_KOI8_R_MODULE 1",
"CONFIG_USB_STORAGE_ISD200_MODULE 1",
"CONFIG_NFS_FS 1",
"CONFIG_INET_ESP_MODULE 1",
"CONFIG_NF_CONNTRACK_IPV6_MODULE 1",
"CONFIG_CRYPTO_ALGAPI_MODULE 1",
"CONFIG_USB_CYPRESS_CY7C63_MODULE 1",
"CONFIG_INPUT_UINPUT_MODULE 1",
"CONFIG_LEDS_TRIGGER_GPIO_MODULE 1",
"CONFIG_MTD_CFI_I1 1",
"CONFIG_NF_NAT_MODULE 1",
"CONFIG_LEDS_PWM_MODULE 1",
"CONFIG_NFS_COMMON 1",
"CONFIG_CHR_DEV_SCH_MODULE 1",
"CONFIG_CRYPTO_HASH_MODULE 1",
"CONFIG_LOG_BUF_SHIFT 16",
"CONFIG_NLS_CODEPAGE_857_MODULE 1",
"CONFIG_SOUND_OSS_CORE_PRECLAIM 1",
"CONFIG_EXTRA_FIRMWARE """,
"CONFIG_VIRT_TO_BUS 1",
"CONFIG_VFAT_FS 1",
"CONFIG_PID_NS 1",
"CONFIG_CRC32_SLICEBY8 1",
"CONFIG_BLK_DEV_SR_MODULE 1",
"CONFIG_BLK_DEV_LOOP 1",
"CONFIG_NF_NAT_IRC_MODULE 1",
"CONFIG_PLAT_SAMSUNG 1",
"CONFIG_INPUT_MISC 1",
"CONFIG_SUSPEND 1",
"CONFIG_MTD_NAND_ECC 1",
"CONFIG_CRYPTO_CBC_MODULE 1",
"CONFIG_IP6_NF_MATCH_RT_MODULE 1",
"CONFIG_FS_MBCACHE_MODULE 1",
"CONFIG_RTC_CLASS 1",
"CONFIG_CRC7_MODULE 1",
"CONFIG_USB_EMI26_MODULE 1",
"CONFIG_HAVE_LATENCYTOP_SUPPORT 1",
"CONFIG_TMPFS_XATTR 1",
"CONFIG_CPU_PM 1",
"CONFIG_YAFFS_AUTO_YAFFS2 1",
"CONFIG_NLS_ISO8859_5_MODULE 1",
"CONFIG_HAVE_FUNCTION_TRACER 1",
"CONFIG_NF_NAT_TFTP_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_MULTIPORT_MODULE 1",
"CONFIG_NO_IOPORT 1",
"CONFIG_CRYPTO_MANAGER2_MODULE 1",
"CONFIG_GENERIC_PCI_IOMAP 1",
"CONFIG_CONFIGFS_FS_MODULE 1",
"CONFIG_XZ_DEC_BCJ 1",
"CONFIG_PM_SLEEP 1",
"CONFIG_I2C 1",
"CONFIG_JFFS2_ZLIB 1",
"CONFIG_FRAME_POINTER 1",
"CONFIG_BT_HIDP_MODULE 1",
"CONFIG_VM_EVENT_COUNTERS 1",
"CONFIG_CRYPTO_ECB_MODULE 1",
"CONFIG_NF_CONNTRACK_AMANDA_MODULE 1",
"CONFIG_BASE_FULL 1",
"CONFIG_FB_CFB_IMAGEBLIT 1",
"CONFIG_ZLIB_DEFLATE 1",
"CONFIG_SUNRPC 1",
"CONFIG_YAFFS_FS 1",
"CONFIG_INPUT_ATI_REMOTE2_MODULE 1",
"CONFIG_NLS_CODEPAGE_864_MODULE 1",
"CONFIG_FW_LOADER 1",
"CONFIG_KALLSYMS 1",
"CONFIG_GENERIC_ATOMIC64 1",
"CONFIG_RTC_HCTOSYS_DEVICE "rtc0"",
"CONFIG_NETFILTER_XT_MATCH_RECENT_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_PKTTYPE_MODULE 1",
"CONFIG_MII 1",
"CONFIG_SIGNALFD 1",
"CONFIG_NET_CORE 1",
"CONFIG_EXT4_FS_MODULE 1",
"CONFIG_S3C_DEV_NAND 1",
"CONFIG_CRYPTO_SHA1_MODULE 1",
"CONFIG_IPV6_PRIVACY 1",
"CONFIG_USB_ADUTUX_MODULE 1",
"CONFIG_NLS_KOI8_U_MODULE 1",
"CONFIG_XZ_DEC 1",
"CONFIG_LOCKD_V4 1",
"CONFIG_WATCHDOG 1",
"CONFIG_HAS_IOMEM 1",
"CONFIG_GENERIC_IRQ_PROBE 1",
"CONFIG_USB_STORAGE_SDDR09_MODULE 1",
"CONFIG_IP_NF_MATCH_TTL_MODULE 1",
"CONFIG_MTD_MAP_BANK_WIDTH_1 1",
"CONFIG_IP6_NF_MATCH_FRAG_MODULE 1",
"CONFIG_APM_EMULATION_MODULE 1",
"CONFIG_HAVE_PWM 1",
"CONFIG_EPOLL 1",
"CONFIG_SND_PCM 1",
"CONFIG_S3C2410_PM 1",
"CONFIG_SDIO_UART_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_DCCP_MODULE 1",
"CONFIG_BT_BNEP_MC_FILTER 1",
"CONFIG_YAFFS_XATTR 1",
"CONFIG_NLS_CODEPAGE_852_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_COMMENT_MODULE 1",
"CONFIG_NET 1",
"CONFIG_INPUT_EVDEV 1",
"CONFIG_SND_JACK 1",
"CONFIG_NETFILTER_XT_TARGET_TCPMSS_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_DSCP_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_CONNTRACK_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_RATEEST_MODULE 1",
"CONFIG_USB_LD_MODULE 1",
"CONFIG_MTD_GEN_PROBE 1",
"CONFIG_PACKET 1",
"CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE 1",
"CONFIG_NETFILTER_XT_MATCH_IPRANGE_MODULE 1",
"CONFIG_NF_CONNTRACK_TFTP_MODULE 1",
"CONFIG_NFS_V3 1",
"CONFIG_NLS_CODEPAGE_949_MODULE 1",
"CONFIG_BACKLIGHT_LCD_SUPPORT 1",
"CONFIG_INET 1",
"CONFIG_XZ_DEC_POWERPC 1",
"CONFIG_IP_PNP_BOOTP 1",
"CONFIG_PREVENT_FIRMWARE_BUILD 1",
"CONFIG_FREEZER 1",
"CONFIG_USB_TEST_MODULE 1",
"CONFIG_BT_MODULE 1",
"CONFIG_BT_HCIVHCI_MODULE 1",
"CONFIG_DEBUG_S3C_UART0 1",
"CONFIG_RTC_LIB 1",
"CONFIG_NETFILTER_XT_MATCH_POLICY_MODULE 1",
"CONFIG_HAVE_KPROBES 1",
"CONFIG_IP_ROUTE_CLASSID 1",
"CONFIG_TPS65010_MODULE 1",
"CONFIG_CRYPTO_AES_MODULE 1",
"CONFIG_GPIOLIB 1",
"CONFIG_EXT4_USE_FOR_EXT23 1",
"CONFIG_GAMEPORT_MODULE 1",
"CONFIG_BT_HCIUART_H4 1",
"CONFIG_NF_CONNTRACK_MARK 1",
"CONFIG_NETFILTER 1",
"CONFIG_NETFILTER_XT_MATCH_HASHLIMIT_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_CLUSTER_MODULE 1",
"CONFIG_USB_MDC800_MODULE 1",
"CONFIG_HWMON_VID_MODULE 1",
"CONFIG_SERIO_SERPORT 1",
"CONFIG_NLS_CODEPAGE_950_MODULE 1",
"CONFIG_S3C_DEV_USB_HOST 1",
"CONFIG_BT_BNEP_MODULE 1",
"CONFIG_BLK_DEV_RAM_COUNT 16",
"CONFIG_INET_XFRM_MODE_TUNNEL 1",
"CONFIG_NF_NAT_NEEDED 1",
"CONFIG_LOCKDEP_SUPPORT 1",
"CONFIG_NLS_CODEPAGE_869_MODULE 1",
"CONFIG_SERIAL_SAMSUNG_UARTS 3",
"CONFIG_BINFMT_AOUT 1",
"CONFIG_MTD_BLKDEVS 1",
"CONFIG_SND_PCM_OSS_PLUGINS 1",
"CONFIG_NLS_ISO8859_15_MODULE 1",
"CONFIG_INET6_ESP_MODULE 1",
"CONFIG_AUTOFS4_FS_MODULE 1",
"CONFIG_I2C_S3C2410 1",
"CONFIG_NLS_CODEPAGE_932_MODULE 1",
"CONFIG_IP6_NF_FILTER_MODULE 1",
"CONFIG_INPUT_MOUSEDEV_SCREEN_X 1024",
"CONFIG_NEED_DMA_MAP_STATE 1",
"CONFIG_NETFILTER_XT_MATCH_CONNBYTES_MODULE 1",
"CONFIG_PAGE_OFFSET 0xC0000000",
"CONFIG_USB_PRINTER_MODULE 1",
"CONFIG_FONT_8x8 1",
"CONFIG_ZBOOT_ROM_BSS 0x0",
"CONFIG_NETFILTER_XT_MATCH_ECN_MODULE 1",
"CONFIG_USB_STORAGE_SDDR55_MODULE 1",
"CONFIG_IP_NF_TARGET_TTL_MODULE 1",
"CONFIG_CFG80211_DEFAULT_PS 1",
"CONFIG_USB_LED_MODULE 1",
"CONFIG_PREEMPT_NONE 1",
"CONFIG_NEED_MACH_IO_H 1",
"CONFIG_NETFILTER_XT_MATCH_TIME_MODULE 1",
"CONFIG_IP_VS_MODULE 1",
"CONFIG_HAVE_KERNEL_GZIP 1",
"CONFIG_NETFILTER_XT_MATCH_MAC_MODULE 1",
"CONFIG_NEED_PER_CPU_KM 1",
"CONFIG_ARM_NR_BANKS 8",
"CONFIG_NETFILTER_XT_TARGET_NFLOG_MODULE 1",
"CONFIG_TCP_CONG_WESTWOOD_MODULE 1",
"CONFIG_GENERIC_IO 1",
"CONFIG_LIBCRC32C_MODULE 1",
"CONFIG_ARCH_NR_GPIO 0",
"CONFIG_GENERIC_BUG 1",
"CONFIG_HAVE_FTRACE_MCOUNT_RECORD 1",
"CONFIG_INET_TCP_DIAG 1",
"CONFIG_HW_CONSOLE 1",
"CONFIG_IOSCHED_NOOP 1",
"CONFIG_BACKLIGHT_PWM_MODULE 1",
"CONFIG_GENERIC_ACL 1",
"CONFIG_DEBUG_KERNEL 1",
"CONFIG_COMPAT_BRK 1",
"CONFIG_LOCALVERSION """,
"CONFIG_CPU_PABRT_LEGACY 1",
"CONFIG_CRYPTO 1",
"CONFIG_USB_TRANCEVIBRATOR_MODULE 1",
"CONFIG_SCHED_DEBUG 1",
"CONFIG_DEFAULT_MMAP_MIN_ADDR 4096",
"CONFIG_IP_NF_IPTABLES_MODULE 1",
"CONFIG_CMDLINE "root=/dev/hda1 ro init=/bin/bash console=ttySAC0"",
"CONFIG_BT_BNEP_PROTO_FILTER 1",
"CONFIG_SPI_GPIO_MODULE 1",
"CONFIG_HAVE_DMA_API_DEBUG 1",
"CONFIG_DEFAULT_CUBIC 1",
"CONFIG_USB_ARCH_HAS_HCD 1",
"CONFIG_GENERIC_IRQ_SHOW 1",
"CONFIG_ALIGNMENT_TRAP 1",
"CONFIG_DM9000 1",
"CONFIG_FB_S3C2410 1",
"CONFIG_SCSI_MOD 1",
"CONFIG_SERIAL_SAMSUNG_CONSOLE 1",
"CONFIG_CRYPTO_CRC32C_MODULE 1",
"CONFIG_SERIAL_CORE 1",
"CONFIG_FUSE_FS_MODULE 1",
"CONFIG_S3C24XX_SMDK 1",
"CONFIG_UID16 1",
"CONFIG_HAVE_KRETPROBES 1",
"CONFIG_NF_DEFRAG_IPV6_MODULE 1",
"CONFIG_INLINE_READ_UNLOCK 1",
"CONFIG_MTD_ROM 1",
"CONFIG_HAS_DMA 1",
"CONFIG_SCSI 1",
"CONFIG_FB_CFB_FILLRECT 1",
"CONFIG_NF_NAT_PPTP_MODULE 1",
"CONFIG_SAMSUNG_GPIO_EXTRA 0",
"CONFIG_HID 1",
"CONFIG_NLS_ISO8859_9_MODULE 1",
"CONFIG_CLKDEV_LOOKUP 1",
"CONFIG_LEDS_TRIGGER_DEFAULT_ON_MODULE 1",
"CONFIG_FONT_8x16 1",
"CONFIG_ARCH_USES_GETTIMEOFFSET 1",
"CONFIG_VT_CONSOLE_SLEEP 1",
"CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE 3",
"CONFIG_JBD2_MODULE 1",
"CONFIG_SPI_TLE62X0_MODULE 1",
"CONFIG_INET6_IPCOMP_MODULE 1",
"CONFIG_IPV6_TUNNEL_MODULE 1",
"CONFIG_NLS_CODEPAGE_874_MODULE 1",
"CONFIG_LOCALVERSION_AUTO 1",
"CONFIG_JFFS2_RTIME 1",
"CONFIG_IPC_NS 1",
"CONFIG_MISC_FILESYSTEMS 1",
"CONFIG_FTRACE 1",
"CONFIG_NETFILTER_XT_MATCH_CONNLIMIT_MODULE 1",
"CONFIG_IP_NF_RAW_MODULE 1",
"CONFIG_IP_NF_ARPFILTER_MODULE 1",
"CONFIG_NF_NAT_H323_MODULE 1",
"CONFIG_XZ_DEC_SPARC 1",
"CONFIG_INLINE_READ_UNLOCK_IRQ 1",
"CONFIG_NLS_CODEPAGE_860_MODULE 1",
"CONFIG_NETFILTER_XT_MATCH_ESP_MODULE 1",
"CONFIG_IP_NF_TARGET_NETMAP_MODULE 1",
"CONFIG_SND_VERBOSE_PROCFS 1",
"CONFIG_INPUT_FF_MEMLESS_MODULE 1",
"CONFIG_CHR_DEV_SG 1",
"CONFIG_ARM_CPU_SUSPEND 1",
"CONFIG_YAFFS_YAFFS2 1",
"CONFIG_NF_NAT_AMANDA_MODULE 1",
"CONFIG_IP6_NF_MATCH_IPV6HEADER_MODULE 1",
"CONFIG_INET6_XFRM_MODE_TRANSPORT_MODULE 1",
"CONFIG_CRYPTO_ARC4_MODULE 1",
"CONFIG_CRYPTO_MANAGER_MODULE 1",
"CONFIG_EEPROM_AT24 1",
"CONFIG_MTD_NAND 1",
"CONFIG_RT_MUTEXES 1",
"CONFIG_VECTORS_BASE 0xffff0000",
"CONFIG_NETFILTER_XT_TARGET_MARK_MODULE 1",
"CONFIG_I2C_ALGOBIT 1",
"CONFIG_MMC_BLOCK 1",
"CONFIG_CPU_CACHE_V4WT 1",
"CONFIG_WIRELESS 1",
"CONFIG_WEXT_PROC 1",
"CONFIG_SQUASHFS_MODULE 1",
"CONFIG_PERF_USE_VMALLOC 1",
"CONFIG_FAT_DEFAULT_IOCHARSET "iso8859-1"",
"CONFIG_FRAME_WARN 1024",
"CONFIG_GENERIC_HWEIGHT 1",
"CONFIG_MMC 1",
"CONFIG_LZO_COMPRESS 1",
"CONFIG_USB_SEVSEG_MODULE 1",
"CONFIG_HZ 200",
"CONFIG_I2C_HELPER_AUTO 1",
"CONFIG_NETFILTER_XT_MATCH_U32_MODULE 1",
"CONFIG_PLAT_S3C24XX 1",
"CONFIG_INLINE_SPIN_UNLOCK_IRQ 1",
"CONFIG_NLS_ISO8859_4_MODULE 1",
"CONFIG_ARM_PATCH_PHYS_VIRT 1",
"CONFIG_INET_AH_MODULE 1",
"CONFIG_DEFAULT_IOSCHED "cfq"",
"CONFIG_UDF_FS_MODULE 1",
"CONFIG_NLATTR 1",
"CONFIG_TCP_CONG_CUBIC 1",
"CONFIG_SUSPEND_FREEZER 1",
"CONFIG_MMC_SDHCI_MODULE 1",
"CONFIG_SND_SUPPORT_OLD_API 1",
"CONFIG_NETFILTER_XT_CONNMARK_MODULE 1",
"CONFIG_SAMSUNG_DEV_PWM 1",
"CONFIG_FIRMWARE_IN_KERNEL 1",
"CONFIG_SYSFS 1",
"CONFIG_INPUT_TOUCHSCREEN 1",
"CONFIG_IP_NF_MATCH_AH_MODULE 1",
"CONFIG_MMC_S3C 1",
"CONFIG_NETFILTER_XT_MATCH_LIMIT_MODULE 1",
"CONFIG_IP6_NF_QUEUE_MODULE 1",
"CONFIG_I2C_SIMTEC 1",
"CONFIG_XZ_DEC_ARM 1",
"CONFIG_NLS_CODEPAGE_775_MODULE 1",
"CONFIG_FB 1",
"CONFIG_NLS_CODEPAGE_865_MODULE 1",
"CONFIG_I2C_COMPAT 1",
"CONFIG_NFSD_V3_ACL 1",
"CONFIG_TOUCHSCREEN_S3C2440 1",
"CONFIG_MSDOS_PARTITION 1",
"CONFIG_BT_HCIUART_MODULE 1",
"CONFIG_HAVE_OPROFILE 1",
"CONFIG_HAVE_GENERIC_DMA_COHERENT 1",
"CONFIG_INPUT_POWERMATE_MODULE 1",
"CONFIG_HAVE_S3C2410_WATCHDOG 1",
"CONFIG_HAVE_ARCH_KGDB 1",
"CONFIG_ARCH_S3C2440 1",
"CONFIG_USB_ARCH_HAS_OHCI 1",
"CONFIG_NF_CONNTRACK_IPV4_MODULE 1",
"CONFIG_ZONE_DMA_FLAG 0",
"CONFIG_INET6_XFRM_TUNNEL_MODULE 1",
"CONFIG_LEGACY_PTY_COUNT 256",
"CONFIG_MTD_MAP_BANK_WIDTH_2 1",
"CONFIG_IP_MULTICAST 1",
"CONFIG_DEFAULT_SECURITY """,
"CONFIG_NF_NAT_PROTO_UDPLITE_MODULE 1",
"CONFIG_TINY_RCU 1",
"CONFIG_HW_RANDOM 1",
"CONFIG_RWSEM_GENERIC_SPINLOCK 1",
"CONFIG_NLS_CODEPAGE_737_MODULE 1",
"CONFIG_DEBUG_S3C_UART 0",
"CONFIG_HAVE_FUNCTION_GRAPH_TRACER 1",
"CONFIG_NTFS_FS_MODULE 1",
"CONFIG_BASE_SMALL 0",
"CONFIG_CRYPTO_BLKCIPHER2_MODULE 1",
"CONFIG_PROC_FS 1",
"CONFIG_MTD_BLOCK 1",
"CONFIG_SCSI_LOWLEVEL 1",
"CONFIG_INPUT_GPIO_ROTARY_ENCODER_MODULE 1",
"CONFIG_NLS_ISO8859_3_MODULE 1",
"CONFIG_SND 1",
"CONFIG_FLATMEM 1",
"CONFIG_PAGEFLAGS_EXTENDED 1",
"CONFIG_IKCONFIG_MODULE 1",
"CONFIG_SYSCTL 1",
"CONFIG_HAVE_C_RECORDMCOUNT 1",
"CONFIG_CIFS_MODULE 1",
"CONFIG_XFRM_USER_MODULE 1",
"CONFIG_TCP_CONG_BIC_MODULE 1",
"CONFIG_NET_NS 1",
"CONFIG_HAVE_PERF_EVENTS 1",
"CONFIG_MACH_MINI2440 1",
"CONFIG_NLS_CODEPAGE_866_MODULE 1",
"CONFIG_SLAB 1",
"CONFIG_DEBUG_MEMORY_INIT 1",
"CONFIG_CHR_DEV_ST_MODULE 1",
"CONFIG_SYS_SUPPORTS_APM_EMULATION 1",
"CONFIG_S3C_GPIO_SPACE 0",
"CONFIG_SND_TIMER 1",
"CONFIG_FAT_DEFAULT_CODEPAGE 437",
"CONFIG_BLK_DEV 1",
"CONFIG_MAC80211_RC_DEFAULT "minstrel_ht"",
"CONFIG_NFS_ACL_SUPPORT 1",
"CONFIG_TRACING_SUPPORT 1",
"CONFIG_UNIX98_PTYS 1",
"CONFIG_NETFILTER_XT_TARGET_CONNMARK_MODULE 1",
"CONFIG_INPUT_MOUSEDEV_SCREEN_Y 768",
"CONFIG_NETFILTER_XT_MATCH_QUOTA_MODULE 1",
"CONFIG_HAVE_KERNEL_LZO 1",
"CONFIG_INET_DIAG 1",
"CONFIG_NF_NAT_FTP_MODULE 1",
"CONFIG_MAC80211_RC_MINSTREL 1",
"CONFIG_NF_CT_PROTO_UDPLITE_MODULE 1",
"CONFIG_IKCONFIG_PROC 1",
"CONFIG_ELF_CORE 1",
"CONFIG_TEXTSEARCH 1",
"CONFIG_CPU_ARM920T 1",
"CONFIG_MTD_JEDECPROBE 1",
"CONFIG_USB_SUPPORT 1",
"CONFIG_MTD_CHAR 1",
"CONFIG_FLAT_NODE_MEM_MAP 1",
"CONFIG_VT_CONSOLE 1",
"CONFIG_LEDS_GPIO_MODULE 1",
"CONFIG_CFG80211_WEXT 1",
"CONFIG_BLK_DEV_RAM 1",
"CONFIG_NETFILTER_XT_MATCH_STATE_MODULE 1",
"CONFIG_MMC_TEST_MODULE 1",
"CONFIG_USB_STORAGE_FREECOM_MODULE 1",
"CONFIG_INET6_XFRM_MODE_BEET_MODULE 1",
"CONFIG_LEDS_DAC124S085_MODULE 1",
"CONFIG_FB_CFB_COPYAREA 1",
"CONFIG_USB_CYTHERM_MODULE 1",
"CONFIG_IP6_NF_MATCH_EUI64_MODULE 1",
"CONFIG_USB_STORAGE_JUMPSHOT_MODULE 1",
"CONFIG_MTD_CFI_AMDSTD 1",
"CONFIG_SYSVIPC_SYSCTL 1",
"CONFIG_S3C_LOWLEVEL_UART_PORT 0",
"CONFIG_CPU_USE_DOMAINS 1",
"CONFIG_I2C_CHARDEV_MODULE 1",
"CONFIG_CROSS_COMPILE """,
"CONFIG_XZ_DEC_ARMTHUMB 1",
"CONFIG_REGMAP 1",
"CONFIG_NLS_UTF8_MODULE 1",
"CONFIG_SCSI_MULTI_LUN 1",
"CONFIG_USB_MICROTEK_MODULE 1",
"CONFIG_NEW_LEDS 1",
"CONFIG_SWAP 1",
"CONFIG_MAC80211_MODULE 1",
"CONFIG_BLK_DEV_SD 1",
"CONFIG_CMDLINE_FROM_BOOTLOADER 1",
"CONFIG_NETFILTER_NETLINK_MODULE 1",
"CONFIG_MODULE_UNLOAD 1",
"CONFIG_AVERAGE 1",
"CONFIG_CPU_LLSERIAL_S3C2440 1",
"CONFIG_SENSORS_LM85_MODULE 1",
"CONFIG_BITREVERSE 1",
"CONFIG_BLK_DEV_RAM_SIZE 4096",
"CONFIG_NLS_ISO8859_13_MODULE 1",
"CONFIG_CRYPTO_BLKCIPHER_MODULE 1",
"CONFIG_USB_STORAGE_ONETOUCH_MODULE 1",
"CONFIG_NLS_ISO8859_8_MODULE 1",
"CONFIG_NF_CONNTRACK_MODULE 1",
"CONFIG_LCD_CLASS_DEVICE_MODULE 1",
"CONFIG_FILE_LOCKING 1",
"CONFIG_S3C_DEV_WDT 1",
"CONFIG_SND_SOC_I2C_AND_SPI 1",
"CONFIG_BLK_DEV_UB_MODULE 1",
"CONFIG_AIO 1",
"CONFIG_IP_NF_TARGET_REJECT_MODULE 1",
"CONFIG_LEDS_CLASS 1",
"CONFIG_GENERIC_HARDIRQS 1",
"CONFIG_IP6_NF_MATCH_HL_MODULE 1",
"CONFIG_IP_VS_TAB_BITS 12",
"CONFIG_IP6_NF_MATCH_OPTS_MODULE 1",
"CONFIG_RTC_INTF_DEV 1",
"CONFIG_MTD_MAP_BANK_WIDTH_4 1",
"CONFIG_HID_SUPPORT 1",
"CONFIG_CPU_ABRT_EV4T 1",
"CONFIG_EXT4_FS_XATTR 1",
"CONFIG_NLS_DEFAULT "iso8859-1"",
"CONFIG_UTS_NS 1",
"CONFIG_NF_CT_PROTO_GRE_MODULE 1",
"CONFIG_BT_HCIUART_BCSP 1",
"CONFIG_NF_CT_NETLINK_MODULE 1",
"CONFIG_HAVE_S3C2410_I2C 1",
"CONFIG_CRYPTO_AEAD2_MODULE 1",
"CONFIG_DEBUG_INFO 1",
"CONFIG_NET_IPIP_MODULE 1",
"CONFIG_IP_VS_SH_TAB_BITS 8 ",
"CONFIG_NETFILTER_XT_MATCH_HL_MODULE 1",
"CONFIG_CRYPTO_ALGAPI2_MODULE 1",
"CONFIG_NETFILTER_XT_TARGET_LED_MODULE 1",
"CONFIG_ZBOOT_ROM_TEXT 0x0 ",
"CONFIG_HAVE_MEMBLOCK 1",
"CONFIG_INPUT 1",
"CONFIG_PROC_SYSCTL 1",
"CONFIG_MMU 1",
"CONFIG_HAVE_IRQ_WORK 1",
"CONFIG_INLINE_WRITE_UNLOCK 1"
],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
五 按F12或者"Ctrl+单击"可快速定位到定义与自动补全功能
只要安装好这两个插件就可以了:
六 设置左侧目录不自动展开
左侧目录中包含了linux源码,默认打开一个文件,默认会自动展开并定位到该文件。
在驱动开发中关闭该功能会有更好的体验,方式如下:
a.按Ctrl+Shift+P快捷键,然后输入setting,从下拉选择中找到“Open settings(JSON)”
b.在打开的文件中输入 "explorer.autoReveal": false
七 设置隐藏文件夹
我们知道在linux源码的arch/arm有很多平台的相关的文件夹,vscode在添加目录的时候会添加所有的,这就需要将不需要的文件夹隐藏。
a.按Ctrl+Shift+P快捷键,然后输入setting,从下拉选择中找到“Open settings(UI)”
b.找到右上角的“{}”按钮,鼠标放上去会显示open setting JSON,点击打开,添加如下文本
{
"files.exclude": {
"**/arch/arm/mach-at91": true,
"**/arch/arm/mach-bcmring": true,
"**/arch/arm/mach-clps711x": true,
"**/arch/arm/mach-cns3xxx": true,
"**/arch/arm/mach-davinci": true,
"**/arch/arm/mach-dove": true,
"**/arch/arm/mach-ebsa110": true,
"**/arch/arm/mach-ep93xx": true,
"**/arch/arm/mach-exynos": true,
"**/arch/arm/mach-footbridge": true,
"**/arch/arm/mach-gemini": true,
"**/arch/arm/mach-h720x": true,
"**/arch/arm/mach-highbank": true,
"**/arch/arm/mach-imx": true,
"**/arch/arm/mach-integrator": true,
"**/arch/arm/mach-iop13xx": true,
"**/arch/arm/mach-iop32x": true,
"**/arch/arm/mach-iop33x": true,
"**/arch/arm/mach-ixp2000": true,
"**/arch/arm/mach-ixp23xx": true,
"**/arch/arm/mach-ixp4xx": true,
"**/arch/arm/mach-kirkwood": true,
"**/arch/arm/mach-ks8695": true,
"**/arch/arm/mach-l7200": true,
"**/arch/arm/mach-lpc32xx": true,
"**/arch/arm/mach-mmp": true,
"**/arch/arm/mach-msm": true,
"**/arch/arm/mach-mv78xx0": true,
"**/arch/arm/mach-mxs": true,
"**/arch/arm/mach-netx": true,
"**/arch/arm/mach-nomadik": true,
"**/arch/arm/mach-omap1": true,
"**/arch/arm/mach-omap2": true,
"**/arch/arm/mach-orion5x": true,
"**/arch/arm/mach-picoxcell": true,
"**/arch/arm/mach-pnx4008": true,
"**/arch/arm/mach-prima2": true,
"**/arch/arm/mach-pxa": true,
"**/arch/arm/mach-realview": true,
"**/arch/arm/mach-rpc": true,
"**/arch/arm/mach-s3c2412": true,
"**/arch/arm/mach-s3c64xx": true,
"**/arch/arm/mach-s5p64x0": true,
"**/arch/arm/mach-s5pc100": true,
"**/arch/arm/mach-s5pv210": true,
"**/arch/arm/mach-sa1100": true,
"**/arch/arm/mach-shark": true,
"**/arch/arm/mach-shmobile": true,
"**/arch/arm/mach-spear3xx": true,
"**/arch/arm/mach-spear6xx": true,
"**/arch/arm/mach-tegra": true,
"**/arch/arm/mach-u300": true,
"**/arch/arm/mach-ux500": true,
"**/arch/arm/mach-versatile": true,
"**/arch/arm/mach-vexpress": true,
"**/arch/arm/mach-vt8500": true,
"**/arch/arm/mach-w90x900": true,
"**/arch/arm/mach-zynq": true,
"**/arch/arm/plat-iop": true,
"**/arch/arm/plat-mxc": true,
"**/arch/arm/plat-omap": true,
"**/arch/arm/plat-nomadik": true,
"**/arch/arm/plat-orion": true,
"**/arch/arm/plat-pxa": true,
"**/arch/arm/plat-s5p": true,
"**/arch/arm/plat-spear": true,
"**/arch/arm/plat-versatile": true
}
}
八 编译生成可执行文件
在vscode界面按"Ctrl + ' "快捷键调处vscode自带终端, 进入源代码目录执行make, 值得一提的是, 在这个终端可以通过"Ctrl+单击"错误提示处,可以自动定位到发生错误的语句,大赞.