[Midnightbsd-cvs] src [10946] add some architectures

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Jun 15 09:30:05 EDT 2018


Revision: 10946
          http://svnweb.midnightbsd.org/src/?rev=10946
Author:   laffer1
Date:     2018-06-15 09:30:04 -0400 (Fri, 15 Jun 2018)
Log Message:
-----------
add some architectures

Modified Paths:
--------------
    trunk/gnu/usr.bin/binutils/ld/Makefile
    trunk/gnu/usr.bin/binutils/ld/Makefile.amd64
    trunk/gnu/usr.bin/binutils/ld/Makefile.i386
    trunk/gnu/usr.bin/binutils/ld/Makefile.sparc64

Added Paths:
-----------
    trunk/gnu/usr.bin/binutils/ld/Makefile.arm
    trunk/gnu/usr.bin/binutils/ld/Makefile.ia64
    trunk/gnu/usr.bin/binutils/ld/Makefile.mips
    trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc
    trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc64

Property Changed:
----------------
    trunk/gnu/usr.bin/binutils/ld/Makefile.amd64
    trunk/gnu/usr.bin/binutils/ld/Makefile.i386
    trunk/gnu/usr.bin/binutils/ld/Makefile.sparc64

Modified: trunk/gnu/usr.bin/binutils/ld/Makefile
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile	2018-06-15 13:19:26 UTC (rev 10945)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile	2018-06-15 13:30:04 UTC (rev 10946)
@@ -1,4 +1,5 @@
-# $FreeBSD: src/gnu/usr.bin/binutils/ld/Makefile,v 1.32 2007/09/26 01:31:28 marcel Exp $
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile 292898 2015-12-30 01:02:22Z emaste $
 
 ELF_SCR_EXT=	x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
 .include "../Makefile.inc0"
@@ -6,6 +7,10 @@
 
 .PATH: ${SRCDIR}/ld
 
+.if ${TARGET_ARCH} == "ia64"
+CFLAGS+= -O1
+.endif
+
 PROG=	ld
 SCRIPTDIR= /usr/libdata/ldscripts
 SRCS+=	ldcref.c \
@@ -28,7 +33,12 @@
 CFLAGS+= -DDEFAULT_EMULATION=\"${NATIVE_EMULATION}\"
 CFLAGS+= -DSCRIPTDIR=\"${TOOLS_PREFIX}/usr/libdata\"
 CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
-CFLAGS+= -DBINDIR=\"${BINDIR}\" -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\"
+CFLAGS+= -DBINDIR=\"${BINDIR}\"
+.if defined(TOOLS_PREFIX)
+CFLAGS+= -DTARGET_SYSTEM_ROOT=\"${TOOLS_PREFIX}\"
+.else
+CFLAGS+= -DTARGET_SYSTEM_ROOT=\"/\"
+.endif
 CFLAGS+= -DTOOLBINDIR=\"${TOOLS_PREFIX}/${BINDIR}/libexec\"
 CFLAGS+= -D_GNU_SOURCE
 CFLAGS+= -I${SRCDIR}/ld -I${SRCDIR}/bfd
@@ -41,10 +51,15 @@
 CLEANDIRS+=	ldscripts
 CLEANFILES+=	ldemul-list.h stringify.sed
 
+FILES=		${LDSCRIPTS:S|^|ldscripts/|}
+FILESDIR=	${SCRIPTDIR}
+LINKS=		${BINDIR}/ld ${BINDIR}/ld.bfd
+
 HOST=		${TARGET_TUPLE}
-LIBSEARCHPATH=	\"${TOOLS_PREFIX}/lib\":\"${TOOLS_PREFIX}/usr/lib\"
+LIBSEARCHPATH=	\"=/lib\":\"=/usr/lib\"
 .for ext in ${ELF_SCR_EXT}
 LDSCRIPTS+=	${NATIVE_EMULATION}.${ext}
+ldscripts/${NATIVE_EMULATION}.${ext}: e${NATIVE_EMULATION}.c
 .endfor
 
 EMXFR=
@@ -61,8 +76,4 @@
 stringify.sed:
 	ln -sf ${SRCDIR}/ld/emultempl/astring.sed ${.TARGET}
 
-afterinstall:
-	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
-	    ${LDSCRIPTS:S|^|ldscripts/|} ${DESTDIR}${SCRIPTDIR}
-
 .include <bsd.prog.mk>

Modified: trunk/gnu/usr.bin/binutils/ld/Makefile.amd64
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.amd64	2018-06-15 13:19:26 UTC (rev 10945)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.amd64	2018-06-15 13:30:04 UTC (rev 10946)
@@ -1,4 +1,5 @@
-# $FreeBSD$
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.amd64 289241 2015-10-13 18:31:23Z bdrewery $
 
 NATIVE_EMULATION= elf_x86_64_fbsd
 
@@ -16,6 +17,7 @@
 EMS+=		${X86_EMULATION}
 .for ext in ${ELF_SCR_EXT}
 LDSCRIPTS+=	${X86_EMULATION}.${ext}
+ldscripts/${X86_EMULATION}.${ext}: e${X86_EMULATION}.c
 .endfor
 
 SRCS+=		e${X86_EMULATION}.c


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.amd64
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/gnu/usr.bin/binutils/ld/Makefile.arm
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.arm	                        (rev 0)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.arm	2018-06-15 13:30:04 UTC (rev 10946)
@@ -0,0 +1,18 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.arm 239272 2012-08-15 03:21:56Z gonzo $
+
+.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb"
+NATIVE_EMULATION= armelfb_fbsd
+.else
+NATIVE_EMULATION= armelf_fbsd
+.endif
+
+SRCS+=		e${NATIVE_EMULATION}.c
+CLEANFILES+=	e${NATIVE_EMULATION}.c
+e${NATIVE_EMULATION}.c: ${.CURDIR}/${NATIVE_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSEARCHPATH} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE} \
+	    ${.CURDIR}/${NATIVE_EMULATION}.sh


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.arm
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/gnu/usr.bin/binutils/ld/Makefile.i386
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.i386	2018-06-15 13:19:26 UTC (rev 10945)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.i386	2018-06-15 13:30:04 UTC (rev 10946)
@@ -1,4 +1,5 @@
-# $FreeBSD$
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.i386 219811 2011-03-21 04:03:55Z marcel $
 
 NATIVE_EMULATION= elf_i386_fbsd
 


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.i386
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/gnu/usr.bin/binutils/ld/Makefile.ia64
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.ia64	                        (rev 0)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.ia64	2018-06-15 13:30:04 UTC (rev 10946)
@@ -0,0 +1,25 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.ia64 219876 2011-03-22 17:19:35Z marcel $
+
+NATIVE_EMULATION= elf64_ia64_fbsd
+
+SRCS+=		e${NATIVE_EMULATION}.c
+CLEANFILES+=	e${NATIVE_EMULATION}.c
+e${NATIVE_EMULATION}.c: ${.CURDIR}/${NATIVE_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSEARCHPATH} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${NATIVE_EMULATION} "" no ${NATIVE_EMULATION} ${TARGET_TUPLE} \
+	    ${.CURDIR}/${NATIVE_EMULATION}.sh
+
+#XXX	EMS+=	eelf64_ia64
+
+SRCS+=	eelf64_ia64.c
+CLEANFILES+=	eelf64_ia64.c
+eelf64_ia64.c: emulparams/elf64_ia64.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSEARCHPATH} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    elf64_ia64 "" no elf64_ia64 ${TARGET_TUPLE}


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.ia64
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/gnu/usr.bin/binutils/ld/Makefile.mips
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.mips	                        (rev 0)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.mips	2018-06-15 13:30:04 UTC (rev 10946)
@@ -0,0 +1,38 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.mips 289241 2015-10-13 18:31:23Z bdrewery $
+
+.if ${TARGET_ARCH:Mmips*el} != ""
+_EMULATION_ENDIAN=l
+.else
+_EMULATION_ENDIAN=b
+.endif
+
+.if ${TARGET_ARCH:Mmips64*} != ""
+NATIVE_EMULATION=elf64${_EMULATION_ENDIAN}tsmip_fbsd
+.elif ${TARGET_ARCH:Mmipsn32*} != ""
+NATIVE_EMULATION=elf32${_EMULATION_ENDIAN}tsmipn32_fbsd
+.else
+NATIVE_EMULATION?=elf32${_EMULATION_ENDIAN}tsmip_fbsd
+.endif
+
+MIPS_ABIS=elf32btsmip_fbsd elf32ltsmip_fbsd elf64btsmip_fbsd elf64ltsmip_fbsd \
+    elf32btsmipn32_fbsd elf32ltsmipn32_fbsd
+.for abi in ${MIPS_ABIS}
+#.if (${abi} != ${NATIVE_EMULATION})
+EMS+= ${abi}
+#.endif
+.for ext in ${ELF_SCR_EXT}
+LDSCRIPTS+= ${abi}.${ext}
+ldscripts/${abi}.${ext}: e${abi}.c
+.endfor
+SRCS+=	e${abi}.c 
+CLEANFILES+=	e${abi}.c
+# nb: elf32 handles both elf32 and elf64 targets
+e${abi}.c:	${.CURDIR}/${abi}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSEARCHPATH} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${abi} ""  no ${abi} ${TARGET_TUPLE} \
+	    ${.CURDIR}/${abi}.sh
+.endfor


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.mips
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc	                        (rev 0)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc	2018-06-15 13:30:04 UTC (rev 10946)
@@ -0,0 +1,13 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.powerpc 227739 2011-11-19 19:25:57Z andreast $
+
+NATIVE_EMULATION=	elf32ppc_fbsd
+
+SRCS+=		e${NATIVE_EMULATION}.c
+CLEANFILES+=	e${NATIVE_EMULATION}.c
+e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed ldemul-list.h
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSEARCHPATH} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${NATIVE_EMULATION} ""  no ${NATIVE_EMULATION} ${TARGET_TUPLE}


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc64
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc64	                        (rev 0)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc64	2018-06-15 13:30:04 UTC (rev 10946)
@@ -0,0 +1,31 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.powerpc64 289241 2015-10-13 18:31:23Z bdrewery $
+
+NATIVE_EMULATION=	elf64ppc_fbsd
+
+SRCS+=		e${NATIVE_EMULATION}.c
+CLEANFILES+=	e${NATIVE_EMULATION}.c
+e${NATIVE_EMULATION}.c: emulparams/${NATIVE_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed ldemul-list.h
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${LIBSEARCHPATH} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${NATIVE_EMULATION} ""  no ${NATIVE_EMULATION} ${TARGET_TUPLE}
+
+PPC32_EMULATION= elf32ppc_fbsd
+_ppc32_path=	\"${TOOLS_PREFIX}/usr/lib32\"
+EMS+=		${PPC32_EMULATION}
+.for ext in ${ELF_SCR_EXT}
+LDSCRIPTS+=	${PPC32_EMULATION}.${ext}
+ldscripts/${PPC32_EMULATION}.${ext}: e${PPC32_EMULATION}.c
+.endfor
+
+SRCS+=		e${PPC32_EMULATION}.c
+CLEANFILES+=	e${PPC32_EMULATION}.c
+e${PPC32_EMULATION}.c: emulparams/${PPC32_EMULATION}.sh emultempl/elf32.em \
+    scripttempl/elf.sc genscripts.sh stringify.sed ldemul-list.h
+	sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_ppc32_path} \
+	    ${TOOLS_PREFIX}/usr \
+	    ${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
+	    ${PPC32_EMULATION} "" no ${PPC32_EMULATION} ${TARGET_TUPLE}
+


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.powerpc64
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/gnu/usr.bin/binutils/ld/Makefile.sparc64
===================================================================
--- trunk/gnu/usr.bin/binutils/ld/Makefile.sparc64	2018-06-15 13:19:26 UTC (rev 10945)
+++ trunk/gnu/usr.bin/binutils/ld/Makefile.sparc64	2018-06-15 13:30:04 UTC (rev 10946)
@@ -1,4 +1,5 @@
-# $FreeBSD$
+# $MidnightBSD$
+# $FreeBSD: stable/10/gnu/usr.bin/binutils/ld/Makefile.sparc64 289241 2015-10-13 18:31:23Z bdrewery $
 
 NATIVE_EMULATION= elf64_sparc_fbsd
 
@@ -17,6 +18,7 @@
 EMS+=		elf${BITS}_sparc
 .for ext in ${ELF_SCR_EXT}
 LDSCRIPTS+=	elf${BITS}_sparc.${ext}
+ldscripts/elf${BITS}_sparc.${ext}: eelf${BITS}_sparc.c
 .endfor
 
 SRCS+=		eelf${BITS}_sparc.c


Property changes on: trunk/gnu/usr.bin/binutils/ld/Makefile.sparc64
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list