mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-16 10:18:23 +01:00
Merge pull request #279 from kedder/zeus
Backport linux-sunxi compilation fixes to Zeus
This commit is contained in:
commit
26ecaec7cb
@ -29,6 +29,7 @@ If you want to switch back to sunxi versions for some reasons (no device tree av
|
|||||||
PREFERRED_PROVIDER_u-boot="u-boot-sunxi"
|
PREFERRED_PROVIDER_u-boot="u-boot-sunxi"
|
||||||
PREFERRED_PROVIDER_virtual/bootloader="u-boot-sunxi"
|
PREFERRED_PROVIDER_virtual/bootloader="u-boot-sunxi"
|
||||||
PREFERRED_PROVIDER_virtual/kernel="linux-sunxi"
|
PREFERRED_PROVIDER_virtual/kernel="linux-sunxi"
|
||||||
|
KERNEL_DEVICETREE = ""
|
||||||
|
|
||||||
If you already have built the mainline versions it might be necessary to reset the build directories with:
|
If you already have built the mainline versions it might be necessary to reset the build directories with:
|
||||||
|
|
||||||
|
@ -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"
|
||||||
@ -35,3 +36,7 @@ S = "${WORKDIR}/git"
|
|||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
SPL_BINARY="u-boot-sunxi-with-spl.bin"
|
SPL_BINARY="u-boot-sunxi-with-spl.bin"
|
||||||
|
|
||||||
|
do_configure () {
|
||||||
|
oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
|
||||||
|
}
|
||||||
|
@ -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
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
From 25a7e85eb0d58479f7d8895b1b29a648bd07d60e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrey Lebedev <andrey@lebedev.lt>
|
||||||
|
Date: Mon, 20 Jan 2020 23:19:51 +0200
|
||||||
|
Subject: [PATCH 2/2] Fix asm error in put_user under gcc version 8 and above
|
||||||
|
|
||||||
|
Fixes these errors during compilation of linux-sunxi-3.4 kernel:
|
||||||
|
/tmp/ccCGMQmS.s:648: Error: .err encountered
|
||||||
|
|
||||||
|
Taken from https://patchwork.kernel.org/patch/10546809/
|
||||||
|
---
|
||||||
|
arch/arm/include/asm/uaccess.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h
|
||||||
|
index b04850fd..abfafbbf 100644
|
||||||
|
--- a/arch/arm/include/asm/uaccess.h
|
||||||
|
+++ b/arch/arm/include/asm/uaccess.h
|
||||||
|
@@ -159,7 +159,7 @@ extern int __put_user_8(void *, unsigned long long);
|
||||||
|
({ \
|
||||||
|
unsigned long __limit = current_thread_info()->addr_limit - 1; \
|
||||||
|
const typeof(*(p)) __user *__tmp_p = (p); \
|
||||||
|
- register const typeof(*(p)) __r2 asm("r2") = (x); \
|
||||||
|
+ register typeof(*(p)) __r2 asm("r2") = (x); \
|
||||||
|
register const typeof(*(p)) __user *__p asm("r0") = __tmp_p; \
|
||||||
|
register unsigned long __l asm("r1") = __limit; \
|
||||||
|
register int __e asm("r0"); \
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
25
recipes-kernel/linux/linux-sunxi/0005-silence-warning.patch
Normal file
25
recipes-kernel/linux/linux-sunxi/0005-silence-warning.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 302604ee4a2011871cb26deaf69d567cf57d0fe3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Andrey Lebedev <andrey@lebedev.lt>
|
||||||
|
Date: Mon, 20 Jan 2020 23:20:07 +0200
|
||||||
|
Subject: [PATCH 1/2] Silence annoying warning
|
||||||
|
|
||||||
|
---
|
||||||
|
include/linux/log2.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/include/linux/log2.h b/include/linux/log2.h
|
||||||
|
index fd7ff3d9..14458fdd 100644
|
||||||
|
--- a/include/linux/log2.h
|
||||||
|
+++ b/include/linux/log2.h
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
/*
|
||||||
|
* deal with unrepresentable constant logarithms
|
||||||
|
*/
|
||||||
|
-extern __attribute__((const, noreturn))
|
||||||
|
+extern __attribute__((const))
|
||||||
|
int ____ilog2_NaN(void);
|
||||||
|
|
||||||
|
/*
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
@ -14,9 +14,12 @@ MACHINE_KERNEL_PR_append = "a"
|
|||||||
SRC_URI += "git://github.com/linux-sunxi/linux-sunxi.git;branch=sunxi-3.4;protocol=git \
|
SRC_URI += "git://github.com/linux-sunxi/linux-sunxi.git;branch=sunxi-3.4;protocol=git \
|
||||||
file://0001-compiler-gcc-integrate-the-various-compiler-gcc-345-.patch \
|
file://0001-compiler-gcc-integrate-the-various-compiler-gcc-345-.patch \
|
||||||
file://0002-use-static-inline-in-ARM-ftrace.patch \
|
file://0002-use-static-inline-in-ARM-ftrace.patch \
|
||||||
file://0001-gcc5-fixes.patch \
|
file://0003-gcc5-fixes.patch \
|
||||||
|
file://0004-arm-put-user-asm-fix.patch \
|
||||||
|
file://0005-silence-warning.patch \
|
||||||
file://defconfig \
|
file://defconfig \
|
||||||
"
|
"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user