Commit 50771d41 authored by James Zern's avatar James Zern
Browse files

rtcd: make include guard unique

prior numbers were removed resulting in the same include guard for
vp[89]_rtcd

Change-Id: If2741e5b0cbdda7390c20e865e9f05992caff93e
parent e4ef8508
...@@ -196,8 +196,9 @@ filter() { ...@@ -196,8 +196,9 @@ filter() {
# Helper functions for generating the arch specific RTCD files # Helper functions for generating the arch specific RTCD files
# #
common_top() { common_top() {
outfile_basename=$(basename ${symbol:-rtcd.h}) outfile_basename=$(basename ${symbol:-rtcd})
include_guard=$(echo $outfile_basename | tr '[a-z]' '[A-Z]' | tr -c '[A-Z]' _) include_guard=$(echo $outfile_basename | tr '[a-z]' '[A-Z]' | \
tr -c '[A-Z0-9]' _)H_
cat <<EOF cat <<EOF
#ifndef ${include_guard} #ifndef ${include_guard}
#define ${include_guard} #define ${include_guard}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment