summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2022-12-31 05:44:25 +0000
committermrg <mrg@NetBSD.org>2022-12-31 05:44:25 +0000
commitd10901c35bc3ee768fdeb8e0e349b59108e4f831 (patch)
tree52e397f4c897c5ffbb9ddbadead039e2d30c0220 /tools
parentee059f8a0824b894411ee31baa4003b03c8bd50d (diff)
fix the binutils build with read-only source trees
don't play with m68k-parse.c in tools/binutils/Makefile but disable the rules that rebuild it so we always use the upstream version, using the standard "NetBSD_DISABLED" method. this was necessary to build on linux in 2014 (which may or may not still ne necessary), but it also avoids triggering rebuild rules based upon the timestamps on .y vs .c. tested with amiga, amd64, and i386 "build.sh tools" builds.
Diffstat (limited to 'tools')
-rw-r--r--tools/binutils/Makefile17
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/binutils/Makefile b/tools/binutils/Makefile
index f1ad79c3eb8..77a131abf63 100644
--- a/tools/binutils/Makefile
+++ b/tools/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2022/12/25 17:25:22 christos Exp $
+# $NetBSD: Makefile,v 1.36 2022/12/31 05:44:25 mrg Exp $
.include <bsd.hostinit.mk>
@@ -16,21 +16,6 @@ CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \
--disable-werror --enable-initfini-array=yes \
${BRANDING}
-.if exists(${GNUHOSTDIST}/gas/config/m68k-parse.c)
-M68K_PARSE=${GNUHOSTDIST}/gas/config/m68k-parse.c
-.elif exists(${GNUHOSTDIST}/gas/m68k-parse.c)
-M68K_PARSE=${GNUHOSTDIST}/gas/m68k-parse.c
-.else
-.error "Can't find m68k-parse.c
-.endif
-
-build/gas/m68k-parse.c: ${M68K_PARSE}
- @mkdir build 2>/dev/null || true
- @mkdir build/gas 2>/dev/null || true
- cat ${M68K_PARSE} > ${.TARGET}
-
-.configure_done: build/gas/m68k-parse.c
-
MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q}
ALL_TARGET= all-binutils all-gas all-ld