摘要
在特殊网络内进行内网漫游时,需要在多种Linux目标平台上运行自制的工具。由于目标平台的体系架构复杂,系统内核版本多样,自制工具难以正常运行。文章针对多种目标平台体系架构问题,提出了基于crosstool-NG的嵌入式平台的交叉编译工具链生成方法,用于制作对应体系架构的交叉编译链;针对系统内核版本多样问题,提出了高版本依赖的程序在低版本系统上兼容运行的方法。两种方法结合,能够解决内网漫游过程中的大部分工具编译的问题。
When roaming the intranet in a special network,it is necessary to run self-made tools on many Linux target platforms.Due to the complex architecture of the target platforms and the various kernels,it is difficult for self-made tools to run normally.Aiming at the problems of multiple target platform architectures,a cross-compilation tool chain generation method based on crosstool-NG embedded platform is proposed,which is used to make the cross-compilation chain of the corresponding architecture;Aiming at the problem of multiple kernel versions of the system,a method for compatible operation of programs dependent on a higher version on a lower version system is proposed.The combination of the two methods can solve most of the tool compilation problems in the intranet roaming process.
作者
蒋立兵
申秋
韩隆隆
JIANG Libing;SHEN Qiu;HAN Longlong(No.30 Institute of CETC,Chengdu Sichuan 610041,China)
出处
《通信技术》
2021年第7期1690-1695,共6页
Communications Technology