libgloss: csky: clean up unused m68k logic

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.
This commit is contained in:
Mike Frysinger 2022-02-08 23:51:17 -05:00
parent 8a95249d73
commit ad28934ad3
3 changed files with 2 additions and 1058 deletions

View File

@ -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}

1033
libgloss/csky/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -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