[kernel] r17877 - in dists/trunk/linux-tools/debian: . patches
Bastian Blank
waldi at alioth.debian.org
Sun Jul 31 11:32:32 UTC 2011
Author: waldi
Date: Sun Jul 31 11:32:31 2011
New Revision: 17877
Log:
* debian/changelog: Update.
* debian/patches: Add patch.
* debian/rules: Remove now unneeded autoconf.h handling.
Added:
dists/trunk/linux-tools/debian/patches/
dists/trunk/linux-tools/debian/patches/modpost-symbol-prefix.patch
dists/trunk/linux-tools/debian/patches/series
Modified:
dists/trunk/linux-tools/debian/changelog
dists/trunk/linux-tools/debian/rules
Modified: dists/trunk/linux-tools/debian/changelog
==============================================================================
--- dists/trunk/linux-tools/debian/changelog Sun Jul 31 11:27:34 2011 (r17876)
+++ dists/trunk/linux-tools/debian/changelog Sun Jul 31 11:32:31 2011 (r17877)
@@ -2,6 +2,7 @@
* Rename to linux-tools.
* Use 3.0 (quilt) source format.
+ * Properly patch modpost symbol prefix setting.
-- Bastian Blank <waldi at debian.org> Sun, 31 Jul 2011 12:36:15 +0200
Added: dists/trunk/linux-tools/debian/patches/modpost-symbol-prefix.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-tools/debian/patches/modpost-symbol-prefix.patch Sun Jul 31 11:32:31 2011 (r17877)
@@ -0,0 +1,19 @@
+--- a/scripts/mod/modpost.c
++++ b/scripts/mod/modpost.c
+@@ -16,15 +16,11 @@
+ #include <ctype.h>
+ #include <string.h>
+ #include "modpost.h"
+-#include "../../include/generated/autoconf.h"
+ #include "../../include/linux/license.h"
+
+ /* Some toolchains use a `_' prefix for all user symbols. */
+-#ifdef CONFIG_SYMBOL_PREFIX
+-#define MODULE_SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX
+-#else
++/* No Debian architecture currently does this. */
+ #define MODULE_SYMBOL_PREFIX ""
+-#endif
+
+
+ /* Are we using CONFIG_MODVERSIONS? */
Added: dists/trunk/linux-tools/debian/patches/series
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-tools/debian/patches/series Sun Jul 31 11:32:31 2011 (r17877)
@@ -0,0 +1 @@
+modpost-symbol-prefix.patch
Modified: dists/trunk/linux-tools/debian/rules
==============================================================================
--- dists/trunk/linux-tools/debian/rules Sun Jul 31 11:27:34 2011 (r17876)
+++ dists/trunk/linux-tools/debian/rules Sun Jul 31 11:32:31 2011 (r17877)
@@ -11,7 +11,7 @@
include debian/rules.defs
build: debian/control $(STAMPS_DIR)/build-base
-$(STAMPS_DIR)/build-base: $(STAMPS_DIR) include/generated/autoconf.h
+$(STAMPS_DIR)/build-base: $(STAMPS_DIR)
dh_testdir
$(MAKE) -f debian/rules.gen build
touch $@
@@ -19,12 +19,6 @@
$(STAMPS_DIR):
@[ -d $@ ] || mkdir $@
-# modpost needs CONFIG_SYMBOL_PREFIX from autoconf.h, but this is undefined
-# for all Debian architectures.
-include/generated/autoconf.h:
- @mkdir -p $(@D)
- @[ -f $@ ] || touch $@
-
DIR_ORIG = ../orig/$(SOURCE)-$(VERSION)
TAR_ORIG_NAME = $(SOURCE)_$(VERSION).orig.tar.gz
TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME)))
@@ -47,7 +41,7 @@
clean: debian/control
dh_testdir
make -C $(BUILD_DIR) clean top_srcdir=$(CURDIR)
- rm -rf $(STAMPS_DIR) debian/lib/python/debian_linux/*.pyc include/generated
+ rm -rf $(STAMPS_DIR) debian/lib/python/debian_linux/*.pyc
dh_clean
binary-indep:
More information about the Kernel-svn-changes
mailing list