2018-06-10 03:57:12 +03:00
|
|
|
self: super:
|
|
|
|
|
|
|
|
let
|
|
|
|
callPackage = self.callPackage;
|
|
|
|
in
|
|
|
|
{
|
2018-06-13 05:06:24 +03:00
|
|
|
# Misc. tools.
|
|
|
|
# Keep sorted.
|
2018-07-07 05:43:03 +03:00
|
|
|
android-headers = callPackage ./android-headers { };
|
2018-06-13 05:06:24 +03:00
|
|
|
dtbTool = callPackage ./dtbtool { };
|
2018-06-17 20:50:32 +03:00
|
|
|
hard-reboot = callPackage ./misc/hard-reboot.nix { };
|
2018-06-13 05:06:24 +03:00
|
|
|
mkbootimg = callPackage ./mkbootimg { };
|
|
|
|
msm-fb-refresher = callPackage ./msm-fb-refresher { };
|
2018-07-07 02:53:57 +03:00
|
|
|
msm-fb-handle = callPackage ./msm-fb-handle { };
|
2018-06-13 05:06:24 +03:00
|
|
|
ply-image = callPackage ./ply-image { };
|
2018-06-10 03:57:12 +03:00
|
|
|
|
2018-06-13 05:06:24 +03:00
|
|
|
# Extra "libs"
|
|
|
|
mkExtraUtils = import ./lib/extra-utils.nix {
|
|
|
|
inherit (self)
|
|
|
|
runCommandCC
|
|
|
|
glibc
|
2018-06-26 04:02:35 +03:00
|
|
|
buildPackages
|
2018-06-26 07:08:04 +03:00
|
|
|
writeShellScriptBin
|
2018-06-26 04:02:35 +03:00
|
|
|
;
|
|
|
|
inherit (self.buildPackages)
|
|
|
|
nukeReferences
|
2018-06-13 05:06:24 +03:00
|
|
|
;
|
|
|
|
};
|
2018-06-13 03:07:36 +03:00
|
|
|
|
2018-06-13 05:06:24 +03:00
|
|
|
# Default set of kernel patches.
|
|
|
|
defaultKernelPatches = with self.kernelPatches; [
|
|
|
|
bridge_stp_helper
|
|
|
|
p9_fixes
|
|
|
|
lguest_entry-linkage
|
|
|
|
packet_fix_race_condition_CVE_2016_8655
|
|
|
|
DCCP_double_free_vulnerability_CVE-2017-6074
|
|
|
|
];
|
2018-07-04 06:50:16 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Overrides
|
|
|
|
#
|
|
|
|
|
|
|
|
# valgrind won't build cross.
|
|
|
|
libdrm = super.libdrm.overrideAttrs(oldAttrs: {
|
|
|
|
buildInputs = builtins.filter (
|
|
|
|
input: input != self.valgrind-light
|
|
|
|
) oldAttrs.buildInputs;
|
|
|
|
});
|
2018-06-10 03:57:12 +03:00
|
|
|
}
|