aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-16 02:27:38 -0500
committerMike Frysinger <vapier@gentoo.org>2021-04-03 14:49:50 -0400
commita0e674c1ce2c877426f8a861c5294c535c5d49e6 (patch)
tree4a567f1db4f4312c5ab30bd837b893c2ee2e3d88 /sim/ppc
parentb6b1c790843087e67e85e7cfd3327a872c03c6bc (diff)
downloadgdb-a0e674c1ce2c877426f8a861c5294c535c5d49e6.zip
gdb-a0e674c1ce2c877426f8a861c5294c535c5d49e6.tar.gz
gdb-a0e674c1ce2c877426f8a861c5294c535c5d49e6.tar.bz2
sim: add preliminary support for --enable-targets
This doesn't actually create one `run` program like other projects, but creates multiple `run-$arch` targets. While it might not seem that useful initially, this has some nice properties: - Allows us to quickly build all sim targets in a single tree. - Positions us better for converting targets over to a proper multitarget build+install. We don't have the ability to actually run tests against them, but that's due to a limitation in gas: it doesn't support multitarget. If that ever changes, we should be able to turn on our tests too. We can improve the test framework to fallback to a system toolchain if available to help mitigate that.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/ChangeLog5
-rw-r--r--sim/ppc/Makefile.in4
2 files changed, 9 insertions, 0 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index 16b3ab7..539d317 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,8 @@
+2021-04-03 Mike Frysinger <vapier@gentoo.org>
+
+ * Makefile.in (install): Install as run-ppc when not the primary arch.
+ (install-strip): Likewise.
+
2021-03-13 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (BUILD_LDFLAGS): Rename to ...
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index ae99dc3..d2bd1d3 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -885,11 +885,15 @@ config.status: configure
check:
install: installdirs
+ a=`basename "$$(pwd)"`; \
n=`echo run | sed '$(program_transform_name)'`; \
+ [ "$(SIM_PRIMARY_TARGET)" = "$$a" ] || n="$$n-$$a"; \
$(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
install-strip: installdirs
+ a=`basename "$$(pwd)"`; \
n=`echo run | sed '$(program_transform_name)'`; \
+ [ "$(SIM_PRIMARY_TARGET)" = "$$a" ] || n="$$n-$$a"; \
$(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
$(STRIP) $(DESTDIR)$(bindir)/$$n$(EXEEXT)