diff --git a/build/make/rtcd.sh b/build/make/rtcd.sh index c79bf9b84..6cc36843b 100755 --- a/build/make/rtcd.sh +++ b/build/make/rtcd.sh @@ -196,8 +196,9 @@ filter() { # Helper functions for generating the arch specific RTCD files # common_top() { - outfile_basename=$(basename ${symbol:-rtcd.h}) - include_guard=$(echo $outfile_basename | tr '[a-z]' '[A-Z]' | tr -c '[A-Z]' _) + outfile_basename=$(basename ${symbol:-rtcd}) + include_guard=$(echo $outfile_basename | tr '[a-z]' '[A-Z]' | \ + tr -c '[A-Z0-9]' _)H_ cat <