u-boot-armada: integrated remove-redundant-YYLOC-declaration patch
This commit holds also the following patch: Same as the upstream fix for building dtc with gcc 10. Signed-off-by: Peter Robinson <pbrobinson@gmail.com> Whereas an additional file needed to be patched too to get rid of this multiple definition compile error. Part of yocto upgrade from dunfell to kirkstone Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
1e7b74e76c
commit
26bb7e72f6
|
|
@ -0,0 +1,44 @@
|
|||
From 52c3ac31426131c555093542d51f1e6e0623507c Mon Sep 17 00:00:00 2001
|
||||
From: Marc Mattmueller <marc.mattmueller@netmodule.com>
|
||||
Date: Mon, 18 Jul 2022 19:26:59 +0200
|
||||
Subject: [PATCH] u-boot-armada: Remove redundant YYLOC global declaration
|
||||
|
||||
Same as the upstream fix for building dtc with gcc 10.
|
||||
|
||||
After having consulted the team, this patch is only applied to
|
||||
the armada bootloader as this one is used on the core os
|
||||
environment build-up.
|
||||
|
||||
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
|
||||
---
|
||||
scripts/dtc/dtc-lexer.l | 1 -
|
||||
scripts/dtc/dtc-lexer.lex.c_shipped | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
|
||||
index fd825ebba6..24af549977 100644
|
||||
--- a/scripts/dtc/dtc-lexer.l
|
||||
+++ b/scripts/dtc/dtc-lexer.l
|
||||
@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n
|
||||
#include "srcpos.h"
|
||||
#include "dtc-parser.tab.h"
|
||||
|
||||
-YYLTYPE yylloc;
|
||||
extern bool treesource_error;
|
||||
|
||||
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
||||
diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped
|
||||
index 3934d8624d..22f6e0d1f8 100644
|
||||
--- a/scripts/dtc/dtc-lexer.lex.c_shipped
|
||||
+++ b/scripts/dtc/dtc-lexer.lex.c_shipped
|
||||
@@ -639,7 +639,6 @@ char *yytext;
|
||||
#include "srcpos.h"
|
||||
#include "dtc-parser.tab.h"
|
||||
|
||||
-YYLTYPE yylloc;
|
||||
extern bool treesource_error;
|
||||
|
||||
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
|
@ -1,14 +1,17 @@
|
|||
require u-boot-nm.inc
|
||||
|
||||
# Be aware github/netmodule git
|
||||
SRC_URI = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;protocol=ssh;user=git;branch=2017.11/standard/armada-385"
|
||||
SRC_URI = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;protocol=ssh;user=git;branch=2017.11/standard/armada-385 \
|
||||
file://0001-remove-redundant-YYLOC-declaration.patch;name=yylloc \
|
||||
"
|
||||
SRC_URI[yylloc.md5sum] = "504cb5b73a174a32e55c58f60608925d"
|
||||
|
||||
DEPENDS += "bc-native"
|
||||
|
||||
# Should be updated when a new U-Boot Version is available
|
||||
#SRCREV ?= "68d28424cf41e141207d9d8af76c5bc5e01a55e2"
|
||||
SRCREV ?= "68d28424cf41e141207d9d8af76c5bc5e01a55e2"
|
||||
|
||||
|
||||
UBOOT_SUFFIX = "kwb"
|
||||
UBOOT_BINARY = "u-boot-spl.${UBOOT_SUFFIX}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue