From 8c68e549d0ae4abc6662f7ae619444f107277fab Mon Sep 17 00:00:00 2001 From: Matthew Brecknell Date: Thu, 17 Mar 2022 08:24:19 +1100 Subject: [PATCH] cspec kernel.mk: always use TOOLPREFIX for objdump Some development environments set an environment variable OBJDUMP by default. With the previous version of kernel.mk, decompilation used the objdump indicated by that OBJDUMP variable. This could cause decompilation to fail if OBJDUMP did not match the TOOLPREFIX used for compilation. Since we don't currently have a need to specify a different objdump, we remove the ability to override via the OBJDUMP environment variable. With this commit, we always use TOOLPREFIX to locate a suitable objdump. Signed-off-by: Matthew Brecknell --- spec/cspec/c/kernel.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/cspec/c/kernel.mk b/spec/cspec/c/kernel.mk index caf79ecc1..9bb91f2b2 100644 --- a/spec/cspec/c/kernel.mk +++ b/spec/cspec/c/kernel.mk @@ -49,9 +49,7 @@ ifndef TOOLPREFIX endif endif -ifndef OBJDUMP - OBJDUMP := ${TOOLPREFIX}objdump -endif +OBJDUMP := ${TOOLPREFIX}objdump ifndef UMM_TYPES UMM_TYPES := ${KERNEL_BUILD_ROOT}/umm_types.txt