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 | \
|
@${DESTDIR}/${DISTDIR}/kernel.meta | \
|
||||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.txz
|
${XZ_CMD} > ${PACKAGEDIR}/kernel.txz
|
||||||
.endif
|
.endif
|
||||||
|
.if ${MK_DEBUG_FILES} != "no"
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
||||||
tar cvf - --include '*/*/*.debug' \
|
tar cvf - --include '*/*/*.debug' \
|
||||||
@${DESTDIR}/${DISTDIR}/kernel.meta | \
|
@${DESTDIR}/${DISTDIR}/kernel.meta | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel-dbg.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel-dbg.txz
|
||||||
|
.endif
|
||||||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
||||||
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||||
tar cvf - --exclude '*.debug' \
|
tar cvf - --exclude '*.debug' \
|
||||||
@${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
@${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
||||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.${_kernel}.txz
|
${XZ_CMD} > ${PACKAGEDIR}/kernel.${_kernel}.txz
|
||||||
|
.if ${MK_DEBUG_FILES} != "no"
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||||
tar cvf - --include '*/*/*.debug' \
|
tar cvf - --include '*/*/*.debug' \
|
||||||
@${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
@${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}-dbg.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}-dbg.txz
|
||||||
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
.else
|
.else
|
||||||
@ -1515,17 +1519,21 @@ packagekernel: .PHONY
|
|||||||
tar cvf - --exclude '*.debug' . | \
|
tar cvf - --exclude '*.debug' . | \
|
||||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.txz
|
${XZ_CMD} > ${PACKAGEDIR}/kernel.txz
|
||||||
.endif
|
.endif
|
||||||
|
.if ${MK_DEBUG_FILES} != "no"
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
||||||
tar cvf - --include '*/*/*.debug' $$(eval find .) | \
|
tar cvf - --include '*/*/*.debug' $$(eval find .) | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel-dbg.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel-dbg.txz
|
||||||
|
.endif
|
||||||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
||||||
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||||
tar cvf - --exclude '*.debug' . | \
|
tar cvf - --exclude '*.debug' . | \
|
||||||
${XZ_CMD} > ${PACKAGEDIR}/kernel.${_kernel}.txz
|
${XZ_CMD} > ${PACKAGEDIR}/kernel.${_kernel}.txz
|
||||||
|
.if ${MK_DEBUG_FILES} != "no"
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||||
tar cvf - --include '*/*/*.debug' $$(eval find .) | \
|
tar cvf - --include '*/*/*.debug' $$(eval find .) | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}-dbg.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}-dbg.txz
|
||||||
|
.endif
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
@ -1632,7 +1640,10 @@ create-world-package-${pkgname}: .PHONY
|
|||||||
create-kernel-packages: .PHONY
|
create-kernel-packages: .PHONY
|
||||||
_default_flavor= -default
|
_default_flavor= -default
|
||||||
.if exists(${KSTAGEDIR}/kernel.meta)
|
.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: create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}
|
||||||
create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap .PHONY
|
create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap .PHONY
|
||||||
@cd ${KSTAGEDIR}/${DISTDIR} ; \
|
@cd ${KSTAGEDIR}/${DISTDIR} ; \
|
||||||
@ -1663,7 +1674,10 @@ create-kernel-packages-flavor${flavor:C,^""$,${_default_flavor},}: _pkgbootstrap
|
|||||||
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
|
||||||
. for _kernel in ${BUILDKERNELS:[2..-1]}
|
. for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||||
. if exists(${KSTAGEDIR}/kernel.${_kernel}.meta)
|
. 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: create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kernel}
|
||||||
create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kernel}: _pkgbootstrap .PHONY
|
create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kernel}: _pkgbootstrap .PHONY
|
||||||
@cd ${KSTAGEDIR}/kernel.${_kernel} ; \
|
@cd ${KSTAGEDIR}/kernel.${_kernel} ; \
|
||||||
|
Loading…
Reference in New Issue
Block a user