arm64: Use FULLKERNEL instead of .ALLSRC in .bin target

Using .ALLSRC may get additional arguments that we may not want
and could cause the objcopy to fail.

Reviewed by:	emaste
Obtained from:	Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D39639
This commit is contained in:
Steve Kiernan 2023-01-19 18:07:38 -08:00 committed by Stephen J. Kiernan
parent 04a036601e
commit fb5ff7384c

View File

@ -93,8 +93,8 @@ CLEAN+= ${KERNEL_KO}.bin
# and the temp file together to make the kernel.bin file.
${KERNEL_KO}.bin: ${FULLKERNEL}
@${OBJCOPY} --wildcard --strip-symbol='$$[adtx]*' \
--output-target=binary ${.ALLSRC} ${.TARGET}.temp
@{ ${NM} ${.ALLSRC} | \
--output-target=binary ${FULLKERNEL} ${.TARGET}.temp
@{ ${NM} ${FULLKERNEL} | \
${AWK} -f $S/tools/arm_kernel_boothdr.awk -v hdrtype=v8booti && \
cat ${.TARGET}.temp; \
} > ${.TARGET}