about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-09-07 13:28:41 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-09-07 13:28:41 +0200
commit2c89ed63ee4b04ce5f2346ef59e7e98d3ac709e0 (patch)
treead24f2c7a9883a828306a95548567c4255dffd7b
parent963d1a9ed2f611f4c11299b7e5eeb8221a034060 (diff)
hardware/rtl8192cu: Disable some hardening flags
These flags are applied via the kernel config, so if we add it using our
compiler wrapper the kernel build process is unable to detect these
flags and the build will fail.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--modules/hardware/rtl8192cu/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/hardware/rtl8192cu/default.nix b/modules/hardware/rtl8192cu/default.nix
index 2acfa0ec..0dfb7d53 100644
--- a/modules/hardware/rtl8192cu/default.nix
+++ b/modules/hardware/rtl8192cu/default.nix
@@ -18,6 +18,8 @@ let
     patches = lib.optional (lib.versionAtLeast kernel.version "4.0")
       ./kernel-4.x.patch;
 
+    hardeningDisable = [ "stackprotector" "pic" ];
+
     postPatch = ''
       substituteInPlace Makefile --replace /sbin/depmod :
     '';