From 6f63b88c60f4d7b5e8b2ca3b736c30ef8274ebf8 Mon Sep 17 00:00:00 2001 From: bbracker Date: Mon, 25 Apr 2022 07:36:59 -0700 Subject: [PATCH] upgrade Buildroot Makefile to also copy over vmlinux --- linux/buildroot-config-src/wally/rootfs_overlay/.profile | 2 +- linux/buildroot-scripts/Makefile | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/linux/buildroot-config-src/wally/rootfs_overlay/.profile b/linux/buildroot-config-src/wally/rootfs_overlay/.profile index 658242f7..eecc0d42 100644 --- a/linux/buildroot-config-src/wally/rootfs_overlay/.profile +++ b/linux/buildroot-config-src/wally/rootfs_overlay/.profile @@ -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 diff --git a/linux/buildroot-scripts/Makefile b/linux/buildroot-scripts/Makefile index 29dbfa10..41ceacb4 100644 --- a/linux/buildroot-scripts/Makefile +++ b/linux/buildroot-scripts/Makefile @@ -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