mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 22:41:09 +02:00
sys-apps/kexec-tools: Apply CoreOS changes
Just add a fix for arm64. This package can be moved back to portage-stable when syncing to a newer upstream release.
This commit is contained in:
parent
4d5448fd40
commit
58cddda609
@ -0,0 +1,27 @@
|
||||
From 9d291e5a9425e23dd90c6fd79081bafd5bcd4c32 Mon Sep 17 00:00:00 2001
|
||||
From: David Michael <david.michael@coreos.com>
|
||||
Date: Sun, 7 Jan 2018 11:05:06 -0500
|
||||
Subject: [PATCH] arm64: Set -fno-PIC along with -mcmodel=large
|
||||
|
||||
As seen in GCC's gcc/config/aarch64/aarch64.c, -fPIC with large
|
||||
code model is unsupported. This fixes the "sorry, unimplemented"
|
||||
errors when building with compilers defaulting to -fPIC.
|
||||
---
|
||||
purgatory/arch/arm64/Makefile | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/purgatory/arch/arm64/Makefile b/purgatory/arch/arm64/Makefile
|
||||
index 636abea..80068ca 100644
|
||||
--- a/purgatory/arch/arm64/Makefile
|
||||
+++ b/purgatory/arch/arm64/Makefile
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
arm64_PURGATORY_EXTRA_CFLAGS = \
|
||||
-mcmodel=large \
|
||||
+ -fno-PIC \
|
||||
-fno-stack-protector \
|
||||
-fno-asynchronous-unwind-tables \
|
||||
-Wundef \
|
||||
--
|
||||
2.14.3
|
||||
|
@ -33,6 +33,7 @@ CONFIG_CHECK="~KEXEC"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
|
||||
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
|
||||
"${FILESDIR}"/${P}-arm64-no-PIC.patch
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user