Avoid creating kernel-dbg.txz distribution sets and kernel-debug
packages when MK_DEBUG_FILES is 'no'. MFC after: 5 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a92a2f00b1
commit
33f8570d0c
@ -1493,20 +1493,24 @@ packagekernel: .PHONY
|
||||
@${DESTDIR}/${DISTDIR}/kernel.meta | \
|
||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.txz
|
||||
.endif
|
||||
.if ${MK_DEBUG_FILES} != "no"
|
||||
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
||||
tar cvf - --include '*/*/*.debug' \
|
||||
@${DESTDIR}/${DISTDIR}/kernel.meta | \
|
||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel-dbg.txz
|
||||
.endif
|
||||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
||||
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||
tar cvf - --exclude '*.debug' \
|
||||
@${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.${_kernel}.txz
|
||||
.if ${MK_DEBUG_FILES} != "no"
|
||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||
tar cvf - --include '*/*/*.debug' \
|
||||
@${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}-dbg.txz
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
.else
|
||||
@ -1515,17 +1519,21 @@ packagekernel: .PHONY
|
||||
tar cvf - --exclude '*.debug' . | \
|
||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.txz
|
||||
.endif
|
||||
.if ${MK_DEBUG_FILES} != "no"
|
||||
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
||||
tar cvf - --include '*/*/*.debug' $$(eval find .) | \
|
||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel-dbg.txz
|
||||
.endif
|
||||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
||||
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||
tar cvf - --exclude '*.debug' . | \
|
||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.${_kernel}.txz
|
||||
.if ${MK_DEBUG_FILES} != "no"
|
||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||
tar cvf - --include '*/*/*.debug' $$(eval find .) | \
|
||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}-dbg.txz
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
.endif
|
||||
@ -1632,7 +1640,10 @@ create-world-package-${pkgname}: .PHONY
|
||||
create-kernel-packages: .PHONY
|
||||
_default_flavor= -default
|
||||
.if exists(${KSTAGEDIR}/kernel.meta)
|
||||
. for flavor in "" -debug
|
||||
.if ${MK_DEBUG_FILES} != "no"
|
||||
_debug=-debug
|
||||
.endif
|
||||
. for flavor in "" ${_debug}
|
||||
create-kernel-packages: create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}
|
||||
create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap .PHONY
|
||||
@cd ${KSTAGEDIR}/${DISTDIR} ; \
|
||||
@ -1663,7 +1674,10 @@ create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap
|
||||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
||||
. for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||
. if exists(${KSTAGEDIR}/kernel.${_kernel}.meta)
|
||||
. for flavor in "" -debug
|
||||
. if ${MK_DEBUG_FILES} != "no"
|
||||
_debug=-debug
|
||||
. endif
|
||||
. for flavor in "" ${_debug}
|
||||
create-kernel-packages: create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kernel}
|
||||
create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kernel}: _pkgbootstrap .PHONY
|
||||
@cd ${KSTAGEDIR}/kernel.${_kernel} ; \
|
||||
|
Loading…
Reference in New Issue
Block a user