upgrade Buildroot Makefile to also copy over vmlinux

This commit is contained in:
bbracker 2022-04-25 07:36:59 -07:00
parent cd70175e5a
commit 6f63b88c60
2 changed files with 6 additions and 2 deletions

View File

@ -17,7 +17,7 @@ cd myDir
ln -s ../myScript.sh symLinkToMyScript.sh
echo "Created symLinkToMyScript.sh. Running it yields:"
./symLinkToMyScript.sh
echo "Now let\'s remove all these example files and scripts"
echo "Now let's remove all these example files and scripts"
cd /
rm -r myDir
rm myScript.sh

View File

@ -1,4 +1,5 @@
IMAGES := ${RISCV}/buildroot/output/images
BUILDROOT := ${RISCV}/buildroot
IMAGES := ${BUILDROOT}/output/images
DIS := ${IMAGES}/disassembly
all:
@ -21,6 +22,9 @@ disassemble:
${DIS}/fw_jump.objdump: ${IMAGES}/fw_jump.elf
riscv64-unknown-elf-objdump -S ${IMAGES}/fw_jump.elf >> ${DIS}/fw_jump.objdump
${IMAGES}/vmlinux: ${BUILDROOT}/output/build/linux-5.10.7/vmlinux
cp ${BUILDROOT}/output/build/linux-5.10.7/vmlinux ${IMAGES}/vmlinux
${DIS}/vmlinux.objdump: ${IMAGES}/vmlinux
riscv64-unknown-elf-objdump -S ${IMAGES}/vmlinux >> ${DIS}/vmlinux.objdump