Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/freebsd-src.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonrad Witaszczyk <def@FreeBSD.org>2022-08-31 13:57:50 +0300
committerKonrad Witaszczyk <def@FreeBSD.org>2022-11-11 18:53:57 +0300
commitf0d1225734519a74e04b482fe54ae33d08627bcd (patch)
tree0fc24c487d8030475cb10a6ca3e84429f4829d81
parentcb25444c05071463d7f690590ed6288b015ec0fb (diff)
Remove dead code in the cscope target
arm64 is the only currently supported architecture that has ${MACHINE_CPUARCH} set to a different value (aarch64) than ${MACHINE} (arm64), as described in arch(7). However, there is no source directory associated with arm64 that has a name set to ${MACHINE_CPUARCH}. Remove the dead code that adds a directory with a name set to ${MACHINE_CPUARCH} to a list of directories indexed with cscope. This change allows to use the cscope target on arm64. Discussed with: jhb Reviewed by: imp jhb Approved by: oshogbo (mentor) Differential Revision: https://reviews.freebsd.org/D36402
-rw-r--r--sys/Makefile3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/Makefile b/sys/Makefile
index a193bbc2b29d..18e0b7e5281b 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -11,9 +11,6 @@ CSCOPEDIRS= bsm cam cddl compat conf contrib crypto ddb dev fs gdb \
CSCOPE_ARCHDIR = amd64 arm arm64 i386 powerpc riscv x86
.else
CSCOPE_ARCHDIR = ${MACHINE}
-.if ${MACHINE} != ${MACHINE_CPUARCH}
-CSCOPE_ARCHDIR += ${MACHINE_CPUARCH}
-.endif
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CSCOPE_ARCHDIR += x86
.endif