[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#573176: linux-kbuild-2.6.33



Just a FYI for those noticing this bug report:  There are excellent
instructions on how to build a linux-kbuild-2.6.33 package yourself on 
http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage#Thestoryoflinux-kbuild-2.6

Something like the attached hack is necessary due to changes in
scripts/mod/modpost.c in 2.6.33, but other than that the 2.6.32 kbuild
source should do just fine.


Bjørn

ref http://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage#Thestoryoflinux-kbuild-2.6

This patch seems necessary for 2.6.33 because scripts/mod/modpost.c 
now includes <generated/autoconf.h>

It only does 

/* Some toolchains use a `_' prefix for all user symbols. */
#ifdef CONFIG_SYMBOL_PREFIX
#define MODULE_SYMBOL_PREFIX CONFIG_SYMBOL_PREFIX
#else
#define MODULE_SYMBOL_PREFIX ""
#endif

based on it, so the following patch should be safe on Debian


Index: debian/bin/genorig.py
===================================================================
--- a/debian/bin/genorig.py	(revision 15501)
+++ b/debian/bin/genorig.py	(working copy)
@@ -97,10 +97,12 @@
         orig = os.path.join(self.dir, self.orig, 'kbuild')
         temp = os.path.join(self.dir, 'temp')
         os.makedirs(os.path.join(orig, 'include', 'linux'))
+        os.makedirs(os.path.join(orig, 'include', 'generated'))
         for i in 'COPYING', 'Kbuild', 'Makefile':
             shutil.copyfile(os.path.join(temp, i), os.path.join(orig, i))
         for i in 'input.h', 'license.h', 'mod_devicetable.h':
             shutil.copyfile(os.path.join(temp, 'include', 'linux', i), os.path.join(orig, 'include', 'linux', i))
+        shutil.copyfile('/dev/null', os.path.join(orig, 'include', 'generated', 'autoconf.h'))
         shutil.copytree(os.path.join(temp, 'scripts'), os.path.join(orig, 'scripts'))
 
     def tar(self):

Reply to: