diff --git a/scripts/rkp_cfp/instrument.py b/scripts/rkp_cfp/instrument.py index e98c449e52ad..aa7342c1ecf0 100644 --- a/scripts/rkp_cfp/instrument.py +++ b/scripts/rkp_cfp/instrument.py @@ -70,7 +70,7 @@ Here comes the ugly part For SLSI kernel, CROSS_COMPILE contains the whole path For QC kernel, CROSS_COMPILE only have aarch64-linux-android- ''' -CROSS_COMPILE = os.environ.get('CROSS_COMPILE') +CROSS_COMPILE = re.sub('^.*ccache\s+', '', os.environ.get('CROSS_COMPILE')) assert CROSS_COMPILE is not None OBJDUMP = CROSS_COMPILE+"objdump"