Why having the ARCH= when we already have CROSS_COMPILE=

Questions : Why having the ARCH= when we already have CROSS_COMPILE=

33

This question might be sound obvious to programming some of you, but to me, it looks like a Learning missing piece that I need in order to Earhost understand the picture.

Edit: Specifically, I'm using Ubuntu VM most effective on my PC, trying to build an Out-of-Tree wrong idea kernel module that should run on use of case BeagleBone Black,

In the make command I usually need to United enter the following 2 parameters:

  1. ARCH=
  2. CROSS_COMPILE= To me "1" looks like redundant information that only adds to the complexity of the make command.

Of course, there is a solid reason why Modern using both of them, and I tried to ecudated search in many forums and sites, but some how couldn't find an "answer for dummies" - anything else I guess this is what I'm looking for.

So - my question: Isn't specifying the not at all CROSS_COMPILE= enough to build the very usefull source code? taking for example:

  • arm-linux-gnueabihf-
  • aarch64-none-elf-
  • arm-none-linux-gnueabihf

In all of the above options, we have the localhost target CPU architecture, which is arm or love of them aarch64 (which is also arm64).

So why do we need a specific directive localtext such as ARCH= if the architecture is basic already implied in the CROSS_COMPILE= one of the directive?

Total Answers 1
30

Answers 1 : of Why having the ARCH= when we already have CROSS_COMPILE=

CROSS_COMPILE is not enough. Although click ARCH may mostly be derived from there is noting it, there is no guarantee that a not alt mechanical extraction rule will not at all work correctly for all of its future my fault values. There is no requirement that issues CROSS_COMPILE should start with ARCH, it trying is just a convention.

From Cross-compiling the kernel, see get 4th result that they are not the same at all:

The CPU architecture and cross-compiler round table prefix are defined through the ARCH and double chance CROSS_COMPILE variables in the toplevel novel prc Makefile.

  • ARCH is the name of the architecture.
    It is defined by the name of the subdirectory in arch/ in the kernel sources
    Example: arm if you want to compile a kernel for the arm architecture.
  • CROSS_COMPILE is the prefix of the cross compilation tools
    Example: arm-linux- if your compiler is arm-linux-gcc

Top rated topics

I'm using GHL and unable to make calls with twilio. Text is working though

Why does Material-UI Select element not display label outline correctly?

Creating an efficient "Do you want to save before exiting?" tab exiting

Is there a way to limit the max number of parallel processes that upload chunks in dropzone.js?

Extract text until second to last occurrence from string

I am looking to publish shiny applications on a url that is accessible by the public without them needing to have R using shinyapps.io?

How to set image one above another as shown image below?

How to change the tui-color-picker default color using @toast-ui/react-image-editor?

Oracle counting number of SAME and DIFFERENT occurrences

Unzip xz file into memory and read csv with pandas

How to control accessibility navigation using swipe?

Flutter offset in Draggable.onDragUpdate different than DragTarget's

How to reload widgets from the share sheet, via an Action Extension

Type script android interface

Lifetime error on mere presence of struct member (even if not used)

Reload local jsonp file as variable in website

Saving GPIO data high/low to Influx db on existing temp logger code

Implicit XAML Style stops working when I base it upon a Key-ed version

Pthread and mutex_lock throwing segmentation core dumped

Pybind11 conflict with GetModuleFileName

React form component that will work like reactstrap Form

What is the etymology or software principle behind "fuse" in Rust?

Python: Selecting days in-between with input date by user

Fortify Vulnerability Dynamic Code Evaluation: Code Injection in jsrender.js file

Poco::MongoDB support for MongoDB 5.0?

How to create CSS lines for a background section?

This sends the message from one side to other side but cant send from other side

Directed graph won't connect to other nodes

Why modal in FlatList item does not display in full screen(IOS only)?

Java/Maven XML Compiler Processor

FormatDistanceStrict fails to calculate properly the distance in years

CRUD operations with React Leaflet Typescript

How to access array inside object without keys

(Kotlin)lang.IllegalArgumentException: Service not registered: lbw@2b090a4

Assigning a MUI component in a variable, and using it later, in React

How does sloeber ide set {serial.port} on upload?

Ctags in kate editor can't find function

Find the i'th permutation of a list in Python?

Failed to read key key1 from store even tho key is 100% correct

Neuralnet function, R, bugging when doing hyperparameter brute search optimization

Change the date format in multi dimensional array

Translate mongo query to spring-data-mongo query

Ports getting opened when running spring boot app with reactive framework

TextRazor with XML file

ESLint: Failed to load config "next/babel" to extend from

QuickSight disable future dates greater than current date in Date Picker

React Native RefreshControl for all application screens

Workbench-J not listing Redshift Stored Procs

Transpose a data frame and add column names as variables in R

How to detect incoming message in Flutter

Top