public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libgloss: csky: clean up unused m68k logic
@ 2022-02-09  5:16 Mike Frysinger
  2022-02-09  7:39 ` [PATCH] libgloss: merge csky configure script up a level Mike Frysinger
  2022-02-10 15:02 ` [PATCH] libgloss: csky: clean up unused m68k logic Corinna Vinschen
  0 siblings, 2 replies; 3+ messages in thread
From: Mike Frysinger @ 2022-02-09  5:16 UTC (permalink / raw)
  To: newlib

It looks like csky was created by copying & pasting the m68k port,
but m68k-specific stuff was left over related to target selection.
The makefile doesn't do anything with it, so punt it all to make
the file much simpler.
---
 libgloss/csky/Makefile.in  |    6 +-
 libgloss/csky/configure    | 1033 +-----------------------------------
 libgloss/csky/configure.ac |   21 -
 3 files changed, 2 insertions(+), 1058 deletions(-)

diff --git a/libgloss/csky/Makefile.in b/libgloss/csky/Makefile.in
index b0af7d653891..911dd40add39 100644
--- a/libgloss/csky/Makefile.in
+++ b/libgloss/csky/Makefile.in
@@ -61,8 +61,6 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
 	then echo ${objroot}/../binutils/objcopy ; \
 	else t='$(program_transform_name)'; echo objcopy | sed -e $$t ; fi`
 
-DO = @DO@
-
 CRT0=crt0.S
 
 #
@@ -101,12 +99,10 @@ crt0.o: $(CRT0)
 	$(CC) $(CFLAGS_FOR_TARGET) $(CFLAGS) -c $< -o $@
 
 .PHONY: install info dvi doc install-info clean-info
-install:: $(DO:%=install_%) crt0.o
+install:: install_hosted crt0.o
 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
 	$(INSTALL_PROGRAM) crt0.o $(DESTDIR)$(tooldir)/lib${MULTISUBDIR}/$(crt0.o)
 
-$(DO:%=install_%): install_hosted
-
 .PHONY:install_hosted
 install_hosted::
 	${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR}
diff --git a/libgloss/csky/configure.ac b/libgloss/csky/configure.ac
index bb9a9195df97..ad29287ecf64 100644
--- a/libgloss/csky/configure.ac
+++ b/libgloss/csky/configure.ac
@@ -30,27 +30,6 @@ AC_SUBST(LD)
 AC_PROG_RANLIB
 LIB_AM_PROG_AS
 
-AC_MSG_CHECKING([target cpu family])
-DO=csky
-dnl Temporarily modify LDFLAGS so that link tests will succeed without
-dnl a C library.  Note that we may not have a C librabry yet and that
-dnl autoconf automatically adds script to check whether we can create
-dnl an executable or not.
-dnl
-saved_LDFLAGS="$LDFLAGS"
-LDFLAGS="-nostdlib -e main"
-AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mcoldfire__
-		#error we are not coldfire
-		#endif])],
-	       DO="cf",)
-AC_PREPROC_IFELSE([AC_LANG_PROGRAM([#ifndef __mfido__
-		#error we are not fido
-		#endif])],
-	       DO="fido",)
-LDFLAGS=$saved_LDFLAGS
-AC_MSG_RESULT($DO)
-AC_SUBST(DO)
-     
 host_makefile_frag=${srcdir}/../config/default.mh
 target_makefile_frag=${srcdir}/../config/default.mt
 
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-10 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09  5:16 [PATCH] libgloss: csky: clean up unused m68k logic Mike Frysinger
2022-02-09  7:39 ` [PATCH] libgloss: merge csky configure script up a level Mike Frysinger
2022-02-10 15:02 ` [PATCH] libgloss: csky: clean up unused m68k logic Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).