简体   繁体   English

使用命令行查找Linux系统的目标体系结构

[英]Find target architecture for Linux system using command line

I am working with a proprietary unit used for industrial applications that has it's own development process. 我正在使用一个专有的工业应用单元,它有自己的开发过程。 This unit runs a version of Linux but is shipped without a C++ compiler. 该单元运行Linux版本,但没有C ++编译器。 I am attempting to create a compiler for this unit from source code using a different Ubuntu 18.04 system. 我正在尝试使用不同的Ubuntu 18.04系统从源代码为该单元创建编译器。 I am following this guide: https://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/ 我正在关注本指南: https//preshing.com/20141119/how-to-build-a-gcc-cross-compiler/

I need to know how to find the target architecture for the following command: ../binutils-2.24/configure --prefix=/opt/cross --target=aarch64-linux --disable-multilib 我需要知道如何找到以下命令的目标体系结构: ../binutils-2.24/configure --prefix=/opt/cross --target=aarch64-linux --disable-multilib

The example in the guide is aarch64-linux but I'm not sure how to figure out what I need to use for the particular unit I'm creating the compiler for. 指南中的示例是aarch64-linux但我不知道如何弄清楚我需要为我正在创建编译器的特定单元使用什么。 I have access to the command line on the unit although some commands may be missing. 虽然有些命令可能会丢失,但我可以访问设备上的命令行。

What is the target and how do I figure out what my unit is using? 目标是什么,我如何弄清楚我的单位使用的是什么?

would uname contain the info you need ? 会uname包含您需要的信息吗?

https://renenyffenegger.ch/notes/Linux/shell/commands/uname https://renenyffenegger.ch/notes/Linux/shell/commands/uname

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM