forked from LineageOS/android_kernel_oneplus_sm8250
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
30 lines (27 loc) · 777 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
description = "build kernel";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
};
in
{
devShells.x86_64-linux.default =
let aarch64 = pkgs.pkgsCross.aarch64-multiplatform;
in
aarch64.linux_4_19.overrideAttrs (old: {
nativeBuildInputs =
old.nativeBuildInputs ++
(with pkgs;[
llvmPackages_14.bintools-unwrapped
buildPackages.binutils
clang_14
lld_14
]);
})
;
# make ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE CROSS_COMPILE_ARM32=CROSS_COMPILE_ARM32 LLVM=1 LLVM_IAS=1 O=$O CC=$CC -j23
};
}