]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-small_fixes.patch
- rel 2; fix build with gcc 8
[packages/kernel.git] / kernel-small_fixes.patch
1 --- linux-2.6.33/scripts/mod/modpost.c~ 2010-02-24 19:52:17.000000000 +0100
2 +++ linux-2.6.33/scripts/mod/modpost.c  2010-03-07 14:26:47.242168558 +0100
3 @@ -15,7 +15,8 @@
4  #include <stdio.h>
5  #include <ctype.h>
6  #include "modpost.h"
7 -#include "../../include/generated/autoconf.h"
8 +// PLD architectures don't use CONFIG_SYMBOL_PREFIX
9 +//#include "../../include/generated/autoconf.h"
10  #include "../../include/linux/license.h"
11  
12  /* Some toolchains use a `_' prefix for all user symbols. */
13
14 --- linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh~       2011-07-22 04:17:23.000000000 +0200
15 +++ linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh        2011-08-25 21:26:04.799150642 +0200
16 @@ -9,6 +9,12 @@
17                         $cc -print-file-name=lib${lib}.${ext} | grep -q /
18                         if [ $? -eq 0 ]; then
19                                 echo "-l${lib}"
20 +                               for libt in tinfow tinfo ; do
21 +                                       $cc -print-file-name=lib${libt}.${ext} | grep -q /
22 +                                       if [ $? -eq 0 ]; then
23 +                                               echo "-l${libt}"
24 +                                       fi
25 +                               done
26                                 exit
27                         fi
28                 done
29 commit 80d172431696482d9acd8d2c4ea78fed8956e2a1
30 Author: valdis.kletnieks@vt.edu <valdis.kletnieks@vt.edu>
31 Date:   Sun Feb 4 12:01:43 2018 -0500
32
33     gcc-plugins: Add include required by GCC release 8
34     
35     GCC requires another #include to get the gcc-plugins to build cleanly.
36     
37     Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
38     Signed-off-by: Kees Cook <keescook@chromium.org>
39
40 diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h
41 index ffd1dfaa1cc1..f46750053377 100644
42 --- a/scripts/gcc-plugins/gcc-common.h
43 +++ b/scripts/gcc-plugins/gcc-common.h
44 @@ -97,6 +97,10 @@
45  #include "predict.h"
46  #include "ipa-utils.h"
47  
48 +#if BUILDING_GCC_VERSION >= 8000
49 +#include "stringpool.h"
50 +#endif
51 +
52  #if BUILDING_GCC_VERSION >= 4009
53  #include "attribs.h"
54  #include "varasm.h"
This page took 0.023612 seconds and 3 git commands to generate.