diff maintainers_build_lkm_in_gnu99.patch @ 87:e9736ab70995

Add a couple of patches to the build system and WIP on the e1000 code architecture to implement the tranmission
author Louis Opter <louis@lse.epitech.net>
date Mon, 24 Sep 2012 09:13:15 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/maintainers_build_lkm_in_gnu99.patch	Mon Sep 24 09:13:15 2012 +0200
@@ -0,0 +1,15 @@
+# HG changeset patch
+# Parent c53df313fbe2c5f971327b697cfcf506941b9b80
+maintainers: use the gnu99 "standard" to build Linux kernel modules
+
+diff --git a/maintainers/CMakeScripts/Templates/MakefileLKM.in b/maintainers/CMakeScripts/Templates/MakefileLKM.in
+--- a/maintainers/CMakeScripts/Templates/MakefileLKM.in
++++ b/maintainers/CMakeScripts/Templates/MakefileLKM.in
+@@ -1,6 +1,6 @@
+ # Disable this "coding-style" warning (seriously, you have to compile with
+ # -pedantic to get it...)
+-EXTRA_CFLAGS	= -Wno-declaration-after-statement
++EXTRA_CFLAGS	= -Wno-declaration-after-statement -std=gnu99
+ 
+ KDIR		= /lib/modules/$(shell uname -r)/build
+ obj-m		:= @LKM_OBJECTS@