Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/elftoolchain/dist/common Remove files that no l...



details:   https://anonhg.NetBSD.org/src/rev/ca274129bc77
branches:  trunk
changeset: 1020742:ca274129bc77
user:      jkoshy <jkoshy%NetBSD.org@localhost>
date:      Sat Apr 24 09:42:00 2021 +0000

description:
Remove files that no longer exist upstream.

diffstat:

 external/bsd/elftoolchain/dist/common/native-elf-format |  53 -----------------
 external/bsd/elftoolchain/dist/common/os.Linux.mk       |  15 ----
 2 files changed, 0 insertions(+), 68 deletions(-)

diffs (76 lines):

diff -r d294a4b39681 -r ca274129bc77 external/bsd/elftoolchain/dist/common/native-elf-format
--- a/external/bsd/elftoolchain/dist/common/native-elf-format   Sat Apr 24 09:18:44 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-#!/bin/sh
-#
-# Id: native-elf-format 3893 2020-11-20 17:11:04Z jkoshy
-#
-# Find the native ELF format for a host platform by compiling a
-# test object and examining the resulting object.
-#
-# This script is used if there is no easy way to determine this
-# information statically at compile time.
-
-program=`basename $0`
-tmp_c=`mktemp ${MAKEOBJDIRPREFIX+"-p ${MAKEOBJDIRPREFIX}"} -u nefXXXXXX`.c
-tmp_o=`echo ${tmp_c} | sed -e 's/.c$/.o/'`
-
-trap "rm -f ${tmp_c} ${tmp_o}" 0 1 2 3 15
-
-touch ${tmp_c}
-
-echo "/* Generated by ${program} on `date` */"
-
-cc -c ${tmp_c} -o ${tmp_o}
-LC_ALL=C readelf -h ${tmp_o} | awk '
-$1 ~ "Class:" {
-        sub("ELF","",$2); elfclass = $2;
-    }
-$1 ~ "Data:"  {
-        if (match($0, "little")) {
-            elfdata = "LSB";
-       } else {
-            elfdata = "MSB";
-       }
-    }
-$1 ~ "Machine:" {
-        if (match($0, "Intel.*386")) {
-            elfarch = "EM_386";
-        } else if (match($0, "MIPS")) {
-            elfarch = "EM_MIPS";
-        } else if (match($0, ".*[xX]86[-_]64")) {
-            elfarch = "EM_X86_64";
-        } else if (match($0, "PowerPC64")) {
-            elfarch = "EM_PPC64";
-       } else if (match($0, "ARM")) {
-           elfarch = "EM_ARM";
-        } else {
-            elfarch = "unknown";
-        }
-    }
-END {
-    printf("#define    ELFTC_CLASS     ELFCLASS%s\n", elfclass);
-    printf("#define    ELFTC_ARCH      %s\n", elfarch);
-    printf("#define    ELFTC_BYTEORDER ELFDATA2%s\n", elfdata);
-}'
-
diff -r d294a4b39681 -r ca274129bc77 external/bsd/elftoolchain/dist/common/os.Linux.mk
--- a/external/bsd/elftoolchain/dist/common/os.Linux.mk Sat Apr 24 09:18:44 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#
-# Build recipes for Linux based operating systems.
-#
-# Id: os.Linux.mk 3594 2018-04-11 18:26:50Z jkoshy
-
-_NATIVE_ELF_FORMAT = native-elf-format
-
-.if !make(obj)
-.BEGIN:        ${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h
-
-${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h:
-       ${.CURDIR}/${_NATIVE_ELF_FORMAT} > ${.TARGET} || rm ${.TARGET}
-.endif
-
-CLEANFILES += ${.OBJDIR}/${_NATIVE_ELF_FORMAT}.h



Home | Main Index | Thread Index | Old Index