Skip to content

Commit df5a8f9

Browse files
committed
updates for devkitPPC r32
1 parent 0778d42 commit df5a8f9

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

build-devkit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22
#---------------------------------------------------------------------------------
33
# devkitARM release 49
4-
# devkitPPC release 31
4+
# devkitPPC release 32
55
# devkitA64 release 10
66
#---------------------------------------------------------------------------------
77

8-
if [ 1 -eq 1 ] ; then
8+
if [ 0 -eq 1 ] ; then
99
echo "Please use the latest release buildscripts unless advised otherwise by devkitPro staff."
1010
echo "https://github.com/devkitPro/buildscripts/releases/latest"
1111
echo

dkppc/patches/newlib-3.0.0.patch

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7407,17 +7407,16 @@ index eb645868b..b9a006453 100644
74077407
powerpc*-*-linux* | \
74087408
powerpc*-*-rtem* | \
74097409
diff --git a/newlib/libc/include/sys/dirent.h b/newlib/libc/include/sys/dirent.h
7410-
index a3fb5c02c..8ddd10867 100644
7410+
index a3fb5c02c..b42f0b3b1 100644
74117411
--- a/newlib/libc/include/sys/dirent.h
74127412
+++ b/newlib/libc/include/sys/dirent.h
7413-
@@ -4,10 +4,57 @@
7413+
@@ -4,10 +4,56 @@
74147414
not support <dirent.h>, we will get this file which uses #error to force
74157415
an error. */
74167416

74177417
+#ifndef _dirent_h_
74187418
+#define _dirent_h_
74197419
+
7420-
+#include <sys/iosupport.h>
74217420
+#include <sys/types.h>
74227421
+#include <sys/syslimits.h>
74237422
+
@@ -7446,7 +7445,7 @@ index a3fb5c02c..8ddd10867 100644
74467445
+
74477446
+ typedef struct {
74487447
+ long int position;
7449-
+ DIR_ITER* dirData;
7448+
+ void* dirData;
74507449
+ struct dirent fileData;
74517450
+ } DIR;
74527451
+

dkppc/scripts/build-gcc.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ then
9797
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
9898
--prefix=$prefix\
9999
--with-system-zlib\
100-
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 31" \
100+
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 32" \
101101
$CROSS_PARAMS \
102102
$CROSS_GCC_PARAMS \
103103
CFLAGS_FOR_TARGET="-O2 -ffunction-sections -fdata-sections" \
@@ -139,7 +139,6 @@ then
139139
--target=$target \
140140
--prefix=$prefix \
141141
--enable-newlib-mb \
142-
--enable-newlib-hw-fp \
143142
|| { echo "Error configuring newlib"; exit 1; }
144143
touch configured-newlib
145144
fi
@@ -203,7 +202,8 @@ if [ ! -f configured-gdb ]
203202
then
204203
CFLAGS="$cflags" LDFLAGS="$ldflags" ../../gdb-$GDB_VER/configure \
205204
--disable-nls --prefix=$prefix --target=$target --disable-werror \
206-
$CROSS_PARAMS || { echo "Error configuring gdb"; exit 1; }
205+
$CROSS_PARAMS \
206+
$CROSS_GCC_PARAMS || { echo "Error configuring gdb"; exit 1; }
207207
touch configured-gdb
208208
fi
209209

0 commit comments

Comments
 (0)