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
This commit is contained in:
Konrad Witaszczyk 2022-08-31 10:57:50 +00:00
parent cb25444c05
commit f0d1225734
No known key found for this signature in database
GPG key ID: E1C1225B0B26A4F0

View file

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