-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update synocli-devel - update strace to v6.5 - add and fix gdb for qoriq arch - add llvm-9.0 for qoric arch - add binutils-2.32 for OLD_PPC_ARCHS * use prebuilt native/llvm-9.0 - use self hosted prebuilt native/llvm-9.0 - add native/llvm-9.0-build to keep the build code * adjust gdb version selection - choose gdb-latest based on gcc version with c++11 support only * gdb: disable sim for PPC - gdb-latest: disable sim for PPC
- Loading branch information
Showing
24 changed files
with
348 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
PKG_NAME = binutils | ||
PKG_VERS = 2.32 | ||
PKG_EXT = tar.xz | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://ftp.gnu.org/gnu/binutils | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
DEPENDS = cross/zlib cross/mpfr | ||
|
||
HOMEPAGE = https://www.gnu.org/software/binutils/ | ||
COMMENT = GNU Binutils | ||
LICENSE = GPLv2/LGPLv2 | ||
|
||
GNU_CONFIGURE = 1 | ||
|
||
CONFIGURE_ARGS += --enable-host-shared | ||
CONFIGURE_ARGS += --with-system-zlib | ||
CONFIGURE_ARGS += --enable-gold=yes | ||
|
||
include ../../mk/spksrc.archs.mk | ||
|
||
# embedspu is a tool to "Embed an SPU ELF executable into a PowerPC object file" | ||
# and hence built only for PPC_ARCHS. | ||
ifneq ($(findstring $(ARCH),$(PPC_ARCHS)),$(ARCH)) | ||
PLIST_TRANSFORM = sed -e '/bin\/embedspu/d' | ||
endif | ||
|
||
include ../../mk/spksrc.cross-cc.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
bin:bin/addr2line | ||
bin:bin/ar | ||
bin:bin/as | ||
bin:bin/c++filt | ||
bin:bin/dwp | ||
bin:bin/elfedit | ||
bin:bin/embedspu | ||
bin:bin/gprof | ||
bin:bin/ld | ||
bin:bin/ld.bfd | ||
bin:bin/ld.gold | ||
bin:bin/nm | ||
bin:bin/objcopy | ||
bin:bin/objdump | ||
bin:bin/ranlib | ||
bin:bin/readelf | ||
bin:bin/size | ||
bin:bin/strings | ||
bin:bin/strip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
binutils-2.32.tar.xz SHA1 cd45a512af1c8a508976c1beb4f5825b3bb89f4d | ||
binutils-2.32.tar.xz SHA256 0ab6c55dd86a92ed561972ba15b9b70a8b9f75557f896446c82e8b36e473ee04 | ||
binutils-2.32.tar.xz MD5 0d174cdaf85721c5723bf52355be41e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
PKG_NAME = binutils | ||
PKG_VERS = 2.40 | ||
PKG_EXT = tar.xz | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://ftp.gnu.org/gnu/binutils | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
DEPENDS = cross/zlib cross/mpfr | ||
|
||
HOMEPAGE = https://www.gnu.org/software/binutils/ | ||
COMMENT = GNU Binutils | ||
LICENSE = GPLv2/LGPLv2 | ||
|
||
GNU_CONFIGURE = 1 | ||
|
||
CONFIGURE_ARGS += --enable-host-shared | ||
CONFIGURE_ARGS += --with-system-zlib | ||
CONFIGURE_ARGS += --enable-gold=yes | ||
|
||
include ../../mk/spksrc.archs.mk | ||
|
||
# embedspu is a tool to "Embed an SPU ELF executable into a PowerPC object file" | ||
# and hence built only for PPC_ARCHS. | ||
# gprofng fails to build on i686 and does not build on other 32-bit archs. | ||
ifeq ($(findstring $(ARCH),$(64bit_ARCHS)),$(ARCH)) | ||
PLIST_TRANSFORM = sed -e '/bin\/embedspu/d' | ||
else | ||
CONFIGURE_ARGS += --disable-gprofng | ||
PLIST_TRANSFORM = sed -e '/bin\/gprofng/d' -e '/bin\/gp\-/d' -e '/lib\/gprofng/d' | ||
ifneq ($(findstring $(ARCH),$(PPC_ARCHS)),$(ARCH)) | ||
PLIST_TRANSFORM += -e '/bin\/embedspu/d' | ||
endif | ||
endif | ||
|
||
# Avoid conflicts with gdb | ||
CONFIGURE_ARGS += --includedir=$(INSTALL_PREFIX)/include/binutils | ||
|
||
include ../../mk/spksrc.cross-cc.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,12 @@ | ||
PKG_NAME = binutils | ||
PKG_VERS = 2.40 | ||
PKG_EXT = tar.xz | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://ftp.gnu.org/gnu/binutils | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
PKG_NAME = binutils-main | ||
|
||
DEPENDS = cross/zlib cross/gmp cross/mpfr | ||
OPTIONAL_DEPENDS = cross/binutils-latest | ||
OPTIONAL_DEPENDS += cross/binutils-2.32 | ||
|
||
HOMEPAGE = https://www.gnu.org/software/binutils/ | ||
COMMENT = GNU Binutils | ||
LICENSE = GPLv2/LGPLv2 | ||
include ../../mk/spksrc.main-depends.mk | ||
|
||
GNU_CONFIGURE = 1 | ||
|
||
include ../../mk/spksrc.archs.mk | ||
|
||
CONFIGURE_ARGS += --enable-host-shared | ||
CONFIGURE_ARGS += --with-system-zlib | ||
CONFIGURE_ARGS += --enable-gold=yes | ||
|
||
# Fails to build on i686 and does not build on other 32-bit archs | ||
ifneq ($(findstring $(ARCH),$(64bit_ARCHS)),$(ARCH)) | ||
CONFIGURE_ARGS += --disable-gprofng | ||
PLIST_TRANSFORM = sed -e '/bin\/gprofng/d' -e '/bin\/gp\-/d' -e '/lib\/gprofng/d' | ||
ifeq ($(findstring $(ARCH),$(OLD_PPC_ARCHS)),$(ARCH)) | ||
DEPENDS = cross/binutils-2.32 | ||
else | ||
DEPENDS = cross/binutils-latest | ||
endif | ||
|
||
# Avoid conflicts with gdb | ||
CONFIGURE_ARGS += --includedir=$(INSTALL_PREFIX)/include/binutils | ||
|
||
include ../../mk/spksrc.cross-cc.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
cross/gdb-7.12/patches/001-fix-sim-ppc-duplicate-symbols.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# fix duplicate symbols in sim/ppc sources | ||
# - declare 'extern' to avoid allocation of the symbols for each file that includes sim/ppc/ld-insn.h | ||
# - allocate those variables in sim/ppc/ld-insn.c only | ||
# | ||
--- sim/ppc/ld-insn.h.orig 2014-06-11 16:34:42.000000000 +0000 | ||
+++ sim/ppc/ld-insn.h 2023-09-12 13:47:17.677392900 +0000 | ||
@@ -200,25 +200,25 @@ | ||
table_include *includes, | ||
cache_table **cache_rules); | ||
|
||
-model *models; | ||
-model *last_model; | ||
+extern model *models; | ||
+extern model *last_model; | ||
|
||
-insn *model_macros; | ||
-insn *last_model_macro; | ||
+extern insn *model_macros; | ||
+extern insn *last_model_macro; | ||
|
||
-insn *model_functions; | ||
-insn *last_model_function; | ||
+extern insn *model_functions; | ||
+extern insn *last_model_function; | ||
|
||
-insn *model_internal; | ||
-insn *last_model_internal; | ||
+extern insn *model_internal; | ||
+extern insn *last_model_internal; | ||
|
||
-insn *model_static; | ||
-insn *last_model_static; | ||
+extern insn *model_static; | ||
+extern insn *last_model_static; | ||
|
||
-insn *model_data; | ||
-insn *last_model_data; | ||
+extern insn *model_data; | ||
+extern insn *last_model_data; | ||
|
||
-int max_model_fields_len; | ||
+extern int max_model_fields_len; | ||
|
||
extern void insn_table_insert_insn | ||
(insn_table *table, | ||
--- sim/ppc/ld-insn.c.orig 2014-06-11 16:34:42.000000000 +0000 | ||
+++ sim/ppc/ld-insn.c 2023-09-12 14:04:28.924210287 +0000 | ||
@@ -28,6 +28,26 @@ | ||
|
||
#include "igen.h" | ||
|
||
+model *models; | ||
+model *last_model; | ||
+ | ||
+insn *model_macros; | ||
+insn *last_model_macro; | ||
+ | ||
+insn *model_functions; | ||
+insn *last_model_function; | ||
+ | ||
+insn *model_internal; | ||
+insn *last_model_internal; | ||
+ | ||
+insn *model_static; | ||
+insn *last_model_static; | ||
+ | ||
+insn *model_data; | ||
+insn *last_model_data; | ||
+ | ||
+int max_model_fields_len; | ||
+ | ||
static void | ||
update_depth(insn_table *entry, | ||
lf *file, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# fix configure for sim/ppc | ||
# - avoid the use of target CPPFLAGS for build | ||
# | ||
--- sim/ppc/configure.orig 2016-08-01 15:50:21.000000000 +0000 | ||
+++ sim/ppc/configure 2023-09-13 10:14:14.609339863 +0000 | ||
@@ -7707,7 +7707,7 @@ | ||
*) realsrcdir=../${srcdir};; | ||
esac | ||
saved_CFLAGS="${CFLAGS}" | ||
- CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ | ||
+ CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" CPPFLAGS="" \ | ||
LDFLAGS="${LDFLAGS_FOR_BUILD}" \ | ||
${realsrcdir}/configure \ | ||
--enable-languages=${enable_languages-all} \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.