Linux kernel: Difference between revisions
Copy edit |
|||
Line 150: | Line 150: | ||
{{bc|note: keeping build directory '/tmp/nix-build-linux-config-4.19.0-mptcp_v0.94.1.drv-0'}} | {{bc|note: keeping build directory '/tmp/nix-build-linux-config-4.19.0-mptcp_v0.94.1.drv-0'}} | ||
== Embedded Linux Cross-compile | == Embedded Linux Cross-compile == | ||
To configure and cross-compile Linux kernels for embedded development, often distributed separately instead of using the stock kernel, you can setup a development environment as shown below: | |||
< | {{file|shell.nix|nix|<nowiki> | ||
let | let | ||
pkgs = import <nixpkgs> { }; | pkgs = import <nixpkgs> { }; | ||
Line 180: | Line 180: | ||
''; | ''; | ||
}).env | }).env | ||
</ | </nowiki>}} | ||
Clone the kernel sources, enter the environment using {{ic|nix-shell}}, and then do development normally. | |||
== make menuconfig == | == make menuconfig == |