Skip to content

Commit

Permalink
Configuration updates to compile with GCC 8
Browse files Browse the repository at this point in the history
Added space saving linux patch by Nick.
Added PNOR partition sizing patch.

Signed-off-by: Luis Fernandez <[email protected]>
  • Loading branch information
LF-Luis committed May 30, 2019
1 parent 27a0b10 commit 95ba593
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openpower/configs/p9dsu_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BR2_powerpc64le=y
BR2_powerpc_power8=y
BR2_BINUTILS_EXTRA_CONFIG_OPTIONS="--enable-targets=powerpc64-linux"
BR2_GCC_VERSION_6_X=y
BR2_GCC_VERSION_8_X=y
BR2_EXTRA_GCC_CONFIG_OPTIONS="--enable-targets=powerpc64-linux --disable-libsanitizer"
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="skiroot"
Expand Down
2 changes: 1 addition & 1 deletion openpower/configs/romulus_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BR2_powerpc64le=y
BR2_powerpc_power8=y
BR2_BINUTILS_EXTRA_CONFIG_OPTIONS="--enable-targets=powerpc64-linux"
BR2_GCC_VERSION_6_X=y
BR2_GCC_VERSION_8_X=y
BR2_EXTRA_GCC_CONFIG_OPTIONS="--enable-targets=powerpc64-linux --disable-libsanitizer"
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="skiroot"
Expand Down
2 changes: 1 addition & 1 deletion openpower/configs/witherspoon_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BR2_powerpc64le=y
BR2_powerpc_power8=y
BR2_BINUTILS_EXTRA_CONFIG_OPTIONS="--enable-targets=powerpc64-linux"
BR2_GCC_VERSION_6_X=y
BR2_GCC_VERSION_8_X=y
BR2_EXTRA_GCC_CONFIG_OPTIONS="--enable-targets=powerpc64-linux --disable-libsanitizer"
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="skiroot"
Expand Down
2 changes: 1 addition & 1 deletion openpower/configs/zaius_defconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BR2_powerpc64le=y
BR2_powerpc_power8=y
BR2_BINUTILS_EXTRA_CONFIG_OPTIONS="--enable-targets=powerpc64-linux"
BR2_GCC_VERSION_6_X=y
BR2_GCC_VERSION_8_X=y
BR2_EXTRA_GCC_CONFIG_OPTIONS="--enable-targets=powerpc64-linux --disable-libsanitizer"
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="skiroot"
Expand Down
13 changes: 13 additions & 0 deletions openpower/linux/0003-space-saving-compile-options.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Makefile b/Makefile
index 46b6081..efa2361 100644
--- a/Makefile
+++ b/Makefile
@@ -444,7 +444,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \
-fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \
-Werror=implicit-function-declaration -Werror=implicit-int \
-Wno-format-security \
- -std=gnu89
+ -std=gnu89 -fno-asynchronous-unwind-tables -g0 -fno-shrink-wrap
KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
216 changes: 216 additions & 0 deletions openpower/package/openpower-pnor/0001-Edit-PNOR.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
From cb6cbe301eb196dc438d36aae491725e77856070 Mon Sep 17 00:00:00 2001
From: Luis Fernandez <[email protected]>
Date: Thu, 30 May 2019 09:14:23 -0500
Subject: [PATCH] 0.5 MB Payload, 15.5MB Bootkernel

---
p8Layouts/defaultPnorLayoutSingleSide.xml | 10 +++++-----
p8Layouts/defaultPnorLayoutWithGoldenSide.xml | 22 +++++++++++-----------
p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml | 22 +++++++++++-----------
p9Layouts/axonePnorLayout_64.xml | 10 +++++-----
p9Layouts/defaultPnorLayout_64.xml | 10 +++++-----
5 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/p8Layouts/defaultPnorLayoutSingleSide.xml b/p8Layouts/defaultPnorLayoutSingleSide.xml
index 2ec16c4..d8120d6 100755
--- a/p8Layouts/defaultPnorLayoutSingleSide.xml
+++ b/p8Layouts/defaultPnorLayoutSingleSide.xml
@@ -192,18 +192,18 @@ Layout Description
<reprovision/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x961000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0xA21000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0x9E1000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
diff --git a/p8Layouts/defaultPnorLayoutWithGoldenSide.xml b/p8Layouts/defaultPnorLayoutWithGoldenSide.xml
index 1c302ca..1079d41 100755
--- a/p8Layouts/defaultPnorLayoutWithGoldenSide.xml
+++ b/p8Layouts/defaultPnorLayoutWithGoldenSide.xml
@@ -194,18 +194,18 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0xCA9000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0xD69000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0xD29000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
@@ -389,22 +389,22 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x2C80000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<side>B</side>
<readOnly/>
<compressed>
<algorithm>xz</algorithm>
- <uncompressedSize>0xC0000</uncompressedSize>
+ <uncompressedSize>0x80000</uncompressedSize>
</compressed>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2D40000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0x2D00000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>B</side>
<readOnly/>
</section>
diff --git a/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml b/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml
index 63c1ef9..81af04e 100755
--- a/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml
+++ b/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml
@@ -193,18 +193,18 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0xCA9000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0xD69000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0xD29000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
@@ -387,22 +387,22 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x2C80000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<side>B</side>
<readOnly/>
<compressed>
<algorithm>xz</algorithm>
- <uncompressedSize>0xC0000</uncompressedSize>
+ <uncompressedSize>0x80000</uncompressedSize>
</compressed>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2D40000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0x2D00000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>B</side>
<readOnly/>
</section>
diff --git a/p9Layouts/axonePnorLayout_64.xml b/p9Layouts/axonePnorLayout_64.xml
index 4e21234..ffee1bd 100644
--- a/p9Layouts/axonePnorLayout_64.xml
+++ b/p9Layouts/axonePnorLayout_64.xml
@@ -178,19 +178,19 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x2081000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<sha512Version/>
<side>sideless</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2141000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0x2101000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>sideless</side>
<sha512Version/>
<readOnly/>
diff --git a/p9Layouts/defaultPnorLayout_64.xml b/p9Layouts/defaultPnorLayout_64.xml
index aa3f746..544b2c2 100644
--- a/p9Layouts/defaultPnorLayout_64.xml
+++ b/p9Layouts/defaultPnorLayout_64.xml
@@ -213,19 +213,19 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (0.75MB)</description>
+ <description>Payload (0.5MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x20C1000</physicalOffset>
- <physicalRegionSize>0xC0000</physicalRegionSize>
+ <physicalRegionSize>0x80000</physicalRegionSize>
<side>A</side>
<sha512Version/>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15.25MB)</description>
+ <description>Bootloader Kernel (15.5MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2181000</physicalOffset>
- <physicalRegionSize>0xF40000</physicalRegionSize>
+ <physicalOffset>0x2141000</physicalOffset>
+ <physicalRegionSize>0xF80000</physicalRegionSize>
<side>A</side>
<sha512Version/>
<readOnly/>
--
1.8.3.1

0 comments on commit 95ba593

Please sign in to comment.