aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-08-16 13:22:57 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-08-16 13:22:57 +0000
commit80335781ad772b2f53b9a307e0a987cb2dfcc2fd (patch)
treeaf182f370efa5c5caf039516f667baeb85eea617 /stand
parentdc26651a96b77e7df1abdb29793b4103f2f200ba (diff)
downloadsrc-80335781ad772b2f53b9a307e0a987cb2dfcc2fd.tar.gz
src-80335781ad772b2f53b9a307e0a987cb2dfcc2fd.zip
stand: push LIBC_SRC up into defs.mk
Other parts of stand/ that don't use libsa will need to grab bits from libc shortly. Push LIBC_SRC up to defs.mk in advance of this so that they can use it, and rename it to LIBCSRC to match the convention of the rest of the *SRC variables in this file. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21282
Notes
Notes: svn path=/head/; revision=351119
Diffstat (limited to 'stand')
-rw-r--r--stand/defs.mk1
-rw-r--r--stand/libsa/Makefile17
2 files changed, 9 insertions, 9 deletions
diff --git a/stand/defs.mk b/stand/defs.mk
index 0d66fba0cf69..ebf0848b6a10 100644
--- a/stand/defs.mk
+++ b/stand/defs.mk
@@ -33,6 +33,7 @@ SASRC= ${BOOTSRC}/libsa
SYSDIR= ${SRCTOP}/sys
UBOOTSRC= ${BOOTSRC}/uboot
ZFSSRC= ${SASRC}/zfs
+LIBCSRC= ${SRCTOP}/lib/libc
BOOTOBJ= ${OBJTOP}/stand
diff --git a/stand/libsa/Makefile b/stand/libsa/Makefile
index 72a9775298d0..5de3a63aa006 100644
--- a/stand/libsa/Makefile
+++ b/stand/libsa/Makefile
@@ -9,7 +9,6 @@
.include <bsd.init.mk>
LIBSA_CPUARCH?=${MACHINE_CPUARCH}
-LIBC_SRC= ${SRCTOP}/lib/libc
LIB?= sa
@@ -21,12 +20,12 @@ SRCS+= gzguts.h zutil.h __main.c abort.c assert.c bcd.c environment.c getopt.c g
# private (pruned) versions of libc string functions
SRCS+= strcasecmp.c
-.PATH: ${LIBC_SRC}/net
+.PATH: ${LIBCSRC}/net
SRCS+= ntoh.c
# string functions from libc
-.PATH: ${LIBC_SRC}/string
+.PATH: ${LIBCSRC}/string
SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
memccpy.c memchr.c memcmp.c memcpy.c memmove.c memset.c \
qdivrem.c strcat.c strchr.c strcmp.c strcpy.c stpcpy.c stpncpy.c \
@@ -34,7 +33,7 @@ SRCS+= bcmp.c bcopy.c bzero.c ffs.c fls.c \
strnlen.c strpbrk.c strrchr.c strsep.c strspn.c strstr.c strtok.c swab.c
# stdlib functions from libc
-.PATH: ${LIBC_SRC}/stdlib
+.PATH: ${LIBCSRC}/stdlib
SRCS+= abs.c strtol.c strtoll.c strtoul.c strtoull.c
# common boot code
@@ -42,7 +41,7 @@ SRCS+= abs.c strtol.c strtoll.c strtoul.c strtoull.c
SRCS+= subr_boot.c
.if ${MACHINE_CPUARCH} == "arm"
-.PATH: ${LIBC_SRC}/arm/gen
+.PATH: ${LIBCSRC}/arm/gen
# Do not generate movt/movw, because the relocation fixup for them does not
# translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
@@ -68,22 +67,22 @@ SRCS+= aeabi_memcmp.S aeabi_memcpy.S aeabi_memmove.S aeabi_memset.S
.endif
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "riscv"
-.PATH: ${LIBC_SRC}/${MACHINE_CPUARCH}/gen
+.PATH: ${LIBCSRC}/${MACHINE_CPUARCH}/gen
.endif
.if ${MACHINE_CPUARCH} == "powerpc"
-.PATH: ${LIBC_SRC}/quad
+.PATH: ${LIBCSRC}/quad
SRCS+= ashldi3.c ashrdi3.c lshrdi3.c
SRCS+= syncicache.c
.endif
.if ${MACHINE_CPUARCH} == "mips"
-.PATH: ${LIBC_SRC}/quad
+.PATH: ${LIBCSRC}/quad
SRCS+= ashldi3.c ashrdi3.c lshrdi3.c
.endif
# uuid functions from libc
-.PATH: ${LIBC_SRC}/uuid
+.PATH: ${LIBCSRC}/uuid
SRCS+= uuid_create_nil.c uuid_equal.c uuid_from_string.c uuid_is_nil.c uuid_to_string.c
# _setjmp/_longjmp