mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 11:14:18 +01:00
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:
parent
04a036601e
commit
fb5ff7384c
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user