Clean up debug knobs.
This commit is contained in:
parent
4a8d8a88f8
commit
930c6ee6c5
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile,v 1.77 2009/12/11 15:25:05 uebayasi Exp $
|
# $NetBSD: Makefile,v 1.78 2009/12/15 06:18:07 uebayasi Exp $
|
||||||
|
|
||||||
# The `all' target must appear before bsd.own.mk is pulled in.
|
# The `all' target must appear before bsd.own.mk is pulled in.
|
||||||
all:
|
all:
|
||||||
@ -8,8 +8,7 @@ all:
|
|||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||||
|
|
||||||
SETSCMD= cd ${.CURDIR} && \
|
SETSENV= DESTDIR=${DESTDIR:Q} \
|
||||||
DESTDIR=${DESTDIR:Q} \
|
|
||||||
MACHINE=${MACHINE:Q} \
|
MACHINE=${MACHINE:Q} \
|
||||||
MACHINE_ARCH=${MACHINE_ARCH:Q} \
|
MACHINE_ARCH=${MACHINE_ARCH:Q} \
|
||||||
AWK=${TOOL_AWK:Q} \
|
AWK=${TOOL_AWK:Q} \
|
||||||
@ -22,7 +21,9 @@ SETSCMD= cd ${.CURDIR} && \
|
|||||||
PAX=${TOOL_PAX:Q} \
|
PAX=${TOOL_PAX:Q} \
|
||||||
PKG_CREATE=${TOOL_PKG_CREATE:Q} \
|
PKG_CREATE=${TOOL_PKG_CREATE:Q} \
|
||||||
SED=${TOOL_SED:Q} \
|
SED=${TOOL_SED:Q} \
|
||||||
TSORT=${TSORT:Q} \
|
TSORT=${TSORT:Q}
|
||||||
|
SETSCMD= cd ${.CURDIR} && \
|
||||||
|
${SETSENV} \
|
||||||
${HOST_SH}
|
${HOST_SH}
|
||||||
|
|
||||||
MAKETARS_FLAGS=
|
MAKETARS_FLAGS=
|
||||||
@ -68,8 +69,12 @@ print_object_fmt: .PHONY
|
|||||||
print_toolchain_missing: .PHONY
|
print_toolchain_missing: .PHONY
|
||||||
@echo "${TOOLCHAIN_MISSING}"
|
@echo "${TOOLCHAIN_MISSING}"
|
||||||
|
|
||||||
print_mkvars: .PHONY
|
print_mkvars \
|
||||||
@env SETS_SUBR_DEBUG=dumpmkvars rundir="${.CURDIR}" ${HOST_SH} sets.subr
|
print_set_lists_base print_set_lists_x print_set_lists_ext \
|
||||||
|
list_set_lists_base list_set_lists_x list_set_lists_ext \
|
||||||
|
list_set_files_base list_set_files_x list_set_files_ext \
|
||||||
|
: .PHONY
|
||||||
|
@${SETSENV}; rundir="${.CURDIR}"; . ./sets.subr; ${.TARGET}
|
||||||
|
|
||||||
#
|
#
|
||||||
# METALOG MANIPULATION TARGETS
|
# METALOG MANIPULATION TARGETS
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: sets.subr,v 1.116 2009/12/15 05:11:08 uebayasi Exp $
|
# $NetBSD: sets.subr,v 1.117 2009/12/15 06:18:07 uebayasi Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -126,16 +126,9 @@ IFS=$oIFS
|
|||||||
|
|
||||||
MKVARS="$( ${MAKE} -B -f ${rundir}/mkvars.mk mkvars | sed -e 's,=.*,,' | xargs )"
|
MKVARS="$( ${MAKE} -B -f ${rundir}/mkvars.mk mkvars | sed -e 's,=.*,,' | xargs )"
|
||||||
|
|
||||||
if [ "$SETS_SUBR_DEBUG" = "dumpmkvars" ]; then
|
|
||||||
for v in $MKVARS; do
|
|
||||||
eval echo $v=\$$v
|
|
||||||
done
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
#####
|
#####
|
||||||
|
|
||||||
setsdir=${0%/*}
|
setsdir=${rundir}
|
||||||
obsolete=0
|
obsolete=0
|
||||||
module=yes
|
module=yes
|
||||||
if [ "${MKKMOD}" = "no" ]; then
|
if [ "${MKKMOD}" = "no" ]; then
|
||||||
@ -173,7 +166,7 @@ SUBST="${SUBST};s#@MACHINE@#${MACHINE}#g"
|
|||||||
# In each file, a record consists of a path and a System Package name,
|
# In each file, a record consists of a path and a System Package name,
|
||||||
# separated by whitespace. E.g.,
|
# separated by whitespace. E.g.,
|
||||||
#
|
#
|
||||||
# # $NetBSD: sets.subr,v 1.116 2009/12/15 05:11:08 uebayasi Exp $
|
# # $NetBSD: sets.subr,v 1.117 2009/12/15 06:18:07 uebayasi Exp $
|
||||||
# . base-sys-root [keyword[,...]]
|
# . base-sys-root [keyword[,...]]
|
||||||
# ./altroot base-sys-root
|
# ./altroot base-sys-root
|
||||||
# ./bin base-sys-root
|
# ./bin base-sys-root
|
||||||
@ -379,6 +372,7 @@ list_set_lists()
|
|||||||
list_set_lists_shl $setname
|
list_set_lists_shl $setname
|
||||||
list_set_lists_module $setname
|
list_set_lists_module $setname
|
||||||
list_set_lists_rescue $setname
|
list_set_lists_rescue $setname
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
list_set_lists_mi()
|
list_set_lists_mi()
|
||||||
@ -507,3 +501,27 @@ all:
|
|||||||
@echo \${TARGET_ENDIANNESS}
|
@echo \${TARGET_ENDIANNESS}
|
||||||
EOMAKE
|
EOMAKE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#####
|
||||||
|
|
||||||
|
# print_mkvars
|
||||||
|
print_mkvars()
|
||||||
|
{
|
||||||
|
for v in $MKVARS; do
|
||||||
|
eval echo $v=\$$v
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# print_set_lists_{base,x,ext}
|
||||||
|
# list_set_lists_{base,x,ext}
|
||||||
|
# list_set_files_{base,x,ext}
|
||||||
|
for func in print_set_lists list_set_lists list_set_files; do
|
||||||
|
for x in base x ext; do
|
||||||
|
if [ $x = base ]; then
|
||||||
|
list=nlists
|
||||||
|
else
|
||||||
|
list=${x}lists
|
||||||
|
fi
|
||||||
|
eval ${func}_${x} \(\) \{ $func \$$list \; \}
|
||||||
|
done
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user