Skip to content

Commit

Permalink
Kernel framework & USB driver package update (SynoCommunity#5746)
Browse files Browse the repository at this point in the history
* kernel: Remove building modules for DSM-6.1

* kernel: Divide configure in sub-mk file

* kernel: Migrate make kernelversion to kernel-configure.mk

* kernel: Divide kernel module compilation in sub-mk file

* kernel-rtd1296: Patch to remove duplicate YYLTYPE declaration

* kernel-geminilake: Patch to remove duplicate YYLTYPE declaration

* kernel: Move REQUIRE_KERNEL_MODULE to spksrc.kernel-module.mk

* kernel-configure.mk: Add variables comments

* kernel.mk: Always configure the kernel sources

* kernel-configure.mk: Be less verbose using @

* kernel.mk: Install kernel headers in include/linux/<arch>-<version>

* kernel-module.mk: Remove additional printouts

* kernel: Various build fixes

* kernel: Add syno-broadwellntbap-7.0

* archs.mk: Add syno-broadwellntbap-7.0 to x64_ARCHS

* synokernel-cdrom: Bump package version and changelog

* synokernel-usbserial: Bump package version and changelog
  • Loading branch information
th0ma7 authored May 25, 2023
1 parent 0590cb5 commit a225e89
Show file tree
Hide file tree
Showing 40 changed files with 714 additions and 82 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000
@@ -1196,7 +1196,7 @@ int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Location data for the lookahead symbol. */
-YYLTYPE yylloc
+//YYLTYPE yylloc
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
= { 1, 1, 1, 1 }
# endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000
@@ -1196,7 +1196,7 @@ int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Location data for the lookahead symbol. */
-YYLTYPE yylloc
+//YYLTYPE yylloc
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
= { 1, 1, 1, 1 }
# endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
7 changes: 7 additions & 0 deletions kernel/syno-broadwellntbap-7.0/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
KERNEL_ARCH = broadwellntbap
KERNEL_VERS = 7.0
KERNEL_BUILD = 41890
KERNEL_DIST = linux-4.4.x
KERNEL_BASE_ARCH = x86

include ../../mk/spksrc.kernel.mk
3 changes: 3 additions & 0 deletions kernel/syno-broadwellntbap-7.0/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
broadwellntbap-linux-4.4.x.txz SHA1 22d72eccaaab71eef8d15ae8d0ffc5b2beed5ffa
broadwellntbap-linux-4.4.x.txz SHA256 ec02e154d98cc9cbc4729e8ca2f9d3b5ae3e67a9fc3185ddb8f4b5359840afbb
broadwellntbap-linux-4.4.x.txz MD5 cf0196f6e85e3ace976cd1b390d216e7
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000
@@ -1196,7 +1196,7 @@ int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Location data for the lookahead symbol. */
-YYLTYPE yylloc
+//YYLTYPE yylloc
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
= { 1, 1, 1, 1 }
# endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:10:09.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-23 23:22:41.400125887 +0000
@@ -1196,7 +1196,7 @@ int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Location data for the lookahead symbol. */
-YYLTYPE yylloc
+//YYLTYPE yylloc
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
= { 1, 1, 1, 1 }
# endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
per_cpu_load_addr is only used for 64-bit relocations, but is declared
in both configurations of relocs.c - with different types. This has
undefined behaviour in general. GNU ld is documented to use the
larger size in this case, but other tools may differ and some warn
about this.

References: https://bugs.debian.org/748577
Reported-by: Michael Tautschnig <[email protected]>
Signed-off-by: Ben Hutchings <[email protected]>

--- arch/x86/tools/relocs.c.orig 2021-07-01 14:26:53.000000000 +0000
+++ arch/x86/tools/relocs.c 2023-05-24 22:57:21.794016972 +0000
@@ -695,7 +695,7 @@ static void walk_relocs(int (*process)(s
*
*/
static int per_cpu_shndx = -1;
-Elf_Addr per_cpu_load_addr;
+static Elf_Addr per_cpu_load_addr;

static void percpu_init(void)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- scripts/dtc/dtc-parser.tab.c_shipped.orig 2021-02-17 07:08:23.000000000 +0000
+++ scripts/dtc/dtc-parser.tab.c_shipped 2023-05-24 21:48:52.259896446 +0000
@@ -73,7 +73,7 @@
#include "dtc.h"
#include "srcpos.h"

-YYLTYPE yylloc;
+extern YYLTYPE yylloc;

extern int yylex(void);
extern void print_error(char const *fmt, ...);
Loading

0 comments on commit a225e89

Please sign in to comment.