试图用sourceinsight 看linux源代码浏览留下来不然,会辨认出引入出来不光麻烦事,因此他们再加到某一网络平台的源代码,许多重要信息是不须要的,因此就搜了下,看一看有甚么好配套措施。

一 浏览有关联版的linuxMach源代码

那个没甚么好说的,我用的是centos7.4版,linuxMach版3.10 ,浏览门牌号为:https://github.com/tinalinux/linux-3.10

二 校对

上载linux源代码到校对产品目录上来,接着步入产品目录,莱盖:

cp /boot/config-3.10.0-1160.31.1.el7.x86_64 ./.config

假如实用性不必发生变动就不必更动甚么,假如须要更动莱盖:

make menuconfig

会步入两个字符串介面,接着优先选择或中止有关快捷键方可。

接着校对下,虽然Mach较为大,天然资源获准的情况下提议多核心理念校对:

make -j8

即下面JAVA选用8个缓存与此同时校对。

校对后后,继续执行make clean ,即使他们只须要源代码,校对原因在于有的是源代码须要聚合,除了聚合source insight的JAVA须要。

三 JAVA聚合须要引入的文档

JAVA:

! /bin/bash Err Macro SUCCESS=0 ERR_BUILD_BOARD=1 ERR_EXIST_DIR=2 ERR_NO_CFG=3 ERR_TAGFILE_NOT_FOUND=4 ERR_File_NOT_EXIST=5 ERR_VERSION_MISMATCH=6 ERR_PROGRAM_PARA=7 ERR_TOOLKIT=8 ERR_CHECK_CONFIG=9 ERR_NO_TARGET_RELEASE=10 ERR_FILE_ALREADY_EXIST=11 ERR_NOT_EXIST=12 ERR_CMD_NOT_FOUNT=13 Color used in echo Text–forground Echo_Black_Text=`tput setaf 0` Echo_Red_Text=`tput setaf 1` Echo_Green_Text=`tput setaf 2` Echo_Yellow_Text=`tput setaf 3` Echo_Blue_Text=`tput setaf 4` Echo_Magenta_Text=`tput setaf 5` Echo_Cyan_Text=`tput setaf 6` Echo_White_Text=`tput setaf 7` Echo_Color_Reset=`tput sgr0` background color Echo_Black_BG=`tput setab 0` Echo_Red_BG=`tput setab 1` Echo_Green_BG=`tput setab 2` Echo_Yellow_BG=`tput setab 3` Echo_Blue_BG=`tput setab 4` Echo_Magenta_BG=`tput setab 5` Echo_Cyan_BG=`tput setab 6` Echo_White_BG=`tput setab 7` Echo_Color_Reset=`tput sgr0` print_help() { echo “Usage: ” $0 $1 $2 dir_to_be_count result_dir echo ” ${Echo_Green_Text}`basename $0` ${Echo_Color_Reset}” echo ” `basename $0` –help/-h” echo echo “For example:” echo -e ” \t `basename $0` kernel-ZZZ KERNELResult” echo -e ” \t this would count the valid source code line number of kernel source in kernel-ZZZ, the result would output to kernelResult” echo echo -e ” \t `basename $0` uboot-ZZZ ubootResult” echo -e ” \t this would count the valid source code line number of uboot source in uboot-ZZZ, the result would be in ubootResult” } if [ $1 = “-h” -o $1 = “–help” ]; then print_help exit 0 fi DIR_TO_BE_COUNT=$1 cd “${DIR_TO_BE_COUNT}”

1.本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2.分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3.不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4.本站提供的源码、模板、插件等其他资源,都不包含技术服务请大家谅解!
5.如有链接无法下载或失效,请联系管理员处理!
6.本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!