asus-x018d: Update usage of kernel builder
, buildPackages
}:
-let
- inherit (buildPackages) dtc;
-in
-(mobile-nixos.kernel-builder-gcc49 {
+mobile-nixos.kernel-builder-gcc49 {
version = "3.18.35";
configfile = ./config.aarch64;
- file = "Image.gz-dtb";
- hasDTB = true;
-
src = fetchFromGitHub {
owner = "mobile-nixos";
repo = "linux";
@@ -32,23 +26,11 @@ in
./0002-E262L-Green-LED-now-defaults-to-on.patch
];
- makeFlags = [
- "DTC_EXT=${dtc}/bin/dtc"
- ];
-
- isModular = false;
-
- postPatch = ''
- patchShebangs tools
- '';
-
nativeBuildInputs = [
+ # Needed for tools/dct/DrvGen.py
python2
];
-}).overrideAttrs({ postInstall ? "", ... }: {
- installTargets = [ "zinstall" "Image.gz-dtb" "install" ];
- postInstall = postInstall + ''
- cp -v "$buildRoot/arch/arm64/boot/Image.gz-dtb" "$out/"
- '';
-})
+ isImageGzDtb = true;
+ isModular = false;
+}
