nixpkgs/pkgs/os-specific/linux/amdgpu-pro/patches/0001-add-OS-detection-for-arch.patch
2016-10-11 14:19:38 -03:00

26 lines
697 B
Diff

From e78ede724fff53fc0220999f6381242142ce8c33 Mon Sep 17 00:00:00 2001
From: David McFarland <corngood@gmail.com>
Date: Sun, 21 Aug 2016 16:30:25 -0300
Subject: [PATCH 1/8] add OS detection for arch
---
amd/backport/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/amd/backport/Makefile b/amd/backport/Makefile
index 0c285ef..6447a15 100644
--- a/amd/backport/Makefile
+++ b/amd/backport/Makefile
@@ -17,6 +17,9 @@ else ifeq ("ubuntu",$(OS_NAME))
ccflags-y += -DOS_NAME_UBUNTU
else ifeq ("steamos",$(OS_NAME))
ccflags-y += -DOS_NAME_STEAMOS
+else ifeq ("arch",$(OS_NAME))
+ccflags-y += -DOS_NAME_ARCH
+OS_VERSION = "0.0"
else
ccflags-y += -DOS_NAME_UNKNOWN
endif
--
2.9.3