umiddelb / armhf

interesting stuff about arm devices (Utilite, SolidRun, Odroid)
732 stars 113 forks source link

ARCH=arm? #34

Closed sorganov closed 4 years ago

sorganov commented 5 years ago

Hello!

Regarding the

umiddelb/armhf/wiki/How-To-compile-a-custom-Linux-kernel-for-your-ARM-device

I wonder how does it work without ever specifying ARCH=arm in any make invocation, or ever mentioning it at all?

I doubt the tutorial expects the kernel is being built on some ARM host, so the host is likely x86, and we are building cross.

In this case, in particular, the recipe:

cd linux make less .config

will try to find in arch/x86 rather than in arch/arm, and should fail.

If ARCH=arm should be set in the environment, it should better be explicitly stated in the tutorial, I think.

What do I miss?

umiddelb commented 4 years ago

Hi,

thank you for your remark. There are some words in the introduction, mentioning that this tutorial addresses a native build:

"Recent ARM devices have become quite powerful, so I prefer to compile the kernel on the target device directly instead of cross compiling (which adds some extra level of complexity)."