mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-26 13:08:21 +01:00
u-boot-sunxi: fix compilation under gcc, newer than 4
This commit is contained in:
parent
802857ee59
commit
89be65d931
@ -20,8 +20,9 @@ UBOOT_MACHINE_meleg = "Mele_A1000G_config"
|
|||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
git://github.com/linux-sunxi/u-boot-sunxi.git;protocol=git;branch=sunxi \
|
git://github.com/linux-sunxi/u-boot-sunxi.git;protocol=git;branch=sunxi \
|
||||||
file://0002-gcc5-fixes.patch \
|
file://0001-gcc5-fixes.patch \
|
||||||
file://0003-gcc6-fixes.patch \
|
file://0002-gcc6-fixes.patch \
|
||||||
|
file://0003-No-gcc-version-specific-includes.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
PE = "1"
|
PE = "1"
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
From bc4aa5814cbedbfaa1c79dfe7ea2571fee7f2d51 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrey Lebedev <andrey@lebedev.lt>
|
||||||
|
Date: Wed, 22 Jan 2020 20:00:11 +0200
|
||||||
|
Subject: [PATCH] No gcc version-specific includes
|
||||||
|
|
||||||
|
In order to support gcc-5 and above. Fixes compilation errors like
|
||||||
|
|
||||||
|
linux/compiler-gcc9.h: No such file or directory
|
||||||
|
---
|
||||||
|
include/linux/compiler-gcc.h | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h
|
||||||
|
index 9896e547b9..5f0bd65f3a 100644
|
||||||
|
--- a/include/linux/compiler-gcc.h
|
||||||
|
+++ b/include/linux/compiler-gcc.h
|
||||||
|
@@ -90,4 +90,3 @@
|
||||||
|
#define __gcc_header(x) #x
|
||||||
|
#define _gcc_header(x) __gcc_header(linux/compiler-gcc##x.h)
|
||||||
|
#define gcc_header(x) _gcc_header(x)
|
||||||
|
-#include gcc_header(__GNUC__)
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user