Add option to rename symbols in Nature DSP library (#2509)
BUG=b/327609938
diff --git a/tensorflow/lite/micro/tools/make/ext_libs/xtensa_ndsp_download.sh b/tensorflow/lite/micro/tools/make/ext_libs/xtensa_ndsp_download.sh
index ef7acfa..81bf848 100755
--- a/tensorflow/lite/micro/tools/make/ext_libs/xtensa_ndsp_download.sh
+++ b/tensorflow/lite/micro/tools/make/ext_libs/xtensa_ndsp_download.sh
@@ -100,6 +100,9 @@
create_git_repo ./
apply_patch_to_folder ./ "../../ext_libs/ndsplib-${2}.patch" "TFLM patch"
fi
+ # Rename the strings in __renaming__.h to names that are traceable to TFLM.
+ # Note that renaming is disabled by default and must be enabled with -D__RENAMING__
+ sed -i 's/NatureDSP_/NatureDSP_TFLM_/' library/include_private/__renaming__.h
fi
fi