Build Linux on M1 with macOS

Working on the rust-for-linux project, I wanted to have a way to develop the linux kernel on my daily driver MPB 13” with the M1 chip. (In the optimal case without requiring an internet connection, and being as energy efficient and fast as possible.) What I did before getting linux to build on macOS CLion Some time ago, I just used the CLion IDE from jetbrains. That IDE is capable of loading the kernel project, although the initial loading is quite slow. Clion supports uploading the project on every change to a remote host, and also calling make on the remote host. But the initial upload to a remote host took multiple hours and sometimes CLion lost its state, therefor requiering a full rebuild. ...

06.07.2022 · 5 min · kloenk