uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, stdenv, fetchFromGitHub, opencl-headers, cmake, withTracing ? false }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "khronos-ocl-icd-loader";
|
||||
version = "2022.01.04";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KhronosGroup";
|
||||
repo = "OpenCL-ICD-Loader";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-T2tBoN0yv41W+UksFABVjsetdkXlnEFUINfxumGgC04=";
|
||||
};
|
||||
|
||||
patches = lib.optional withTracing ./tracing.patch;
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ opencl-headers ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Offical Khronos OpenCL ICD Loader";
|
||||
homepage = "https://github.com/KhronosGroup/OpenCL-ICD-Loader";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ davidtwco ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/loader/icd.h b/loader/icd.h
|
||||
index 34751e9..01a33fd 100644
|
||||
--- a/loader/icd.h
|
||||
+++ b/loader/icd.h
|
||||
@@ -123,7 +123,7 @@ void khrIcdContextPropertiesGetPlatform(
|
||||
cl_platform_id *outPlatform);
|
||||
|
||||
// internal tracing macros
|
||||
-#if 0
|
||||
+#if 1
|
||||
#include <stdio.h>
|
||||
#define KHR_ICD_TRACE(...) \
|
||||
do \
|
||||
Loading…
Add table
Add a link
Reference in a new issue