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 21, 2019
1 parent b6bbfeb commit 28a0963
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-XMLs.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
From ba5eef2430e25143768974c538579acbd391a6dc Mon Sep 17 00:00:00 2001
From: Luis Fernandez <[email protected]>
Date: Thu, 25 Apr 2019 23:42:42 -0500
Subject: [PATCH] Add 0.25MB to Bootloader Kernel, remove 0.25MB from Payload.

---
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 f4ca275..2ec16c4 100755
--- a/p8Layouts/defaultPnorLayoutSingleSide.xml
+++ b/p8Layouts/defaultPnorLayoutSingleSide.xml
@@ -192,18 +192,18 @@ Layout Description
<reprovision/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x961000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0xA61000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0xA21000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
diff --git a/p8Layouts/defaultPnorLayoutWithGoldenSide.xml b/p8Layouts/defaultPnorLayoutWithGoldenSide.xml
index 44a0580..1c302ca 100755
--- a/p8Layouts/defaultPnorLayoutWithGoldenSide.xml
+++ b/p8Layouts/defaultPnorLayoutWithGoldenSide.xml
@@ -194,18 +194,18 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0xCA9000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0xDA9000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0xD69000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
@@ -389,22 +389,22 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x2C80000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<side>B</side>
<readOnly/>
<compressed>
<algorithm>xz</algorithm>
- <uncompressedSize>0x100000</uncompressedSize>
+ <uncompressedSize>0xC0000</uncompressedSize>
</compressed>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2D80000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0x2D40000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>B</side>
<readOnly/>
</section>
diff --git a/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml b/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml
index 90646d4..63c1ef9 100755
--- a/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml
+++ b/p8Layouts/defaultPnorLayoutWithoutGoldenSide.xml
@@ -193,18 +193,18 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0xCA9000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0xDA9000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0xD69000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>A</side>
<readOnly/>
</section>
@@ -387,22 +387,22 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x2C80000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<side>B</side>
<readOnly/>
<compressed>
<algorithm>xz</algorithm>
- <uncompressedSize>0x100000</uncompressedSize>
+ <uncompressedSize>0xC0000</uncompressedSize>
</compressed>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2D80000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0x2D40000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>B</side>
<readOnly/>
</section>
diff --git a/p9Layouts/axonePnorLayout_64.xml b/p9Layouts/axonePnorLayout_64.xml
index 4c2d576..ff5fde9 100644
--- a/p9Layouts/axonePnorLayout_64.xml
+++ b/p9Layouts/axonePnorLayout_64.xml
@@ -178,19 +178,19 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x1F81000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<sha512Version/>
<side>sideless</side>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x2081000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0x2041000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>sideless</side>
<sha512Version/>
<readOnly/>
diff --git a/p9Layouts/defaultPnorLayout_64.xml b/p9Layouts/defaultPnorLayout_64.xml
index c25a621..b5a5683 100644
--- a/p9Layouts/defaultPnorLayout_64.xml
+++ b/p9Layouts/defaultPnorLayout_64.xml
@@ -213,19 +213,19 @@ Layout Description
<ecc/>
</section>
<section>
- <description>Payload (1MB)</description>
+ <description>Payload (0.75MB)</description>
<eyeCatch>PAYLOAD</eyeCatch>
<physicalOffset>0x1EC1000</physicalOffset>
- <physicalRegionSize>0x100000</physicalRegionSize>
+ <physicalRegionSize>0xC0000</physicalRegionSize>
<side>A</side>
<sha512Version/>
<readOnly/>
</section>
<section>
- <description>Bootloader Kernel (15MB)</description>
+ <description>Bootloader Kernel (15.25MB)</description>
<eyeCatch>BOOTKERNEL</eyeCatch>
- <physicalOffset>0x1FC1000</physicalOffset>
- <physicalRegionSize>0xF00000</physicalRegionSize>
+ <physicalOffset>0x1F81000</physicalOffset>
+ <physicalRegionSize>0xF40000</physicalRegionSize>
<side>A</side>
<sha512Version/>
<readOnly/>
--
1.8.3.1

0 comments on commit 28a0963

Please sign in to comment.