Loading scripts/prepare_instrumentation.sh +21 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,25 @@ fi rm -f $ifdef_list touch $ifdef_list # Add LC3plus feature defines to options.h so that they are stripped correctly if [ $INCLUDE_SPLIT -eq 1 ]; then # Generate list of active defines in LC3plus defines.h lc3plus_defines=$( gcc -E -dM $targetdir/lib_lc3plus/defines.h -I $targetdir/lib_com | sed '/^#define [[:alnum:]][[:alnum:]_]\+[[:space:]]*$/! d' | sed '/#define DEFINES_H/ d' ) # Append LC3plus defines to options.h echo " /* LC3plus switches */ #ifndef OPTIONS_H_LC3_DEFINES #define OPTIONS_H_LC3_DEFINES $lc3plus_defines #endif /* OPTIONS_H_LC3_DEFINES */ " >>$targetdir/lib_com/options.h fi # get switches from options.h and append it to $ifdef_list parse_options_opt="" if coan_exists; then Loading @@ -109,6 +128,8 @@ if coan_exists; then coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/lib_{com,dec,enc,isar,rend,util,debug}/!(wmc_auto*).[hc] coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/apps/*.[hc] coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/lib_lc3plus/!(wmc_auto*).[hc] coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/lib_lc3plus/fft/!(wmc_auto*).[hc] else ./strip_defines_cppp.sh $targetdir $ifdef_list fi Loading Loading
scripts/prepare_instrumentation.sh +21 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,25 @@ fi rm -f $ifdef_list touch $ifdef_list # Add LC3plus feature defines to options.h so that they are stripped correctly if [ $INCLUDE_SPLIT -eq 1 ]; then # Generate list of active defines in LC3plus defines.h lc3plus_defines=$( gcc -E -dM $targetdir/lib_lc3plus/defines.h -I $targetdir/lib_com | sed '/^#define [[:alnum:]][[:alnum:]_]\+[[:space:]]*$/! d' | sed '/#define DEFINES_H/ d' ) # Append LC3plus defines to options.h echo " /* LC3plus switches */ #ifndef OPTIONS_H_LC3_DEFINES #define OPTIONS_H_LC3_DEFINES $lc3plus_defines #endif /* OPTIONS_H_LC3_DEFINES */ " >>$targetdir/lib_com/options.h fi # get switches from options.h and append it to $ifdef_list parse_options_opt="" if coan_exists; then Loading @@ -109,6 +128,8 @@ if coan_exists; then coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/lib_{com,dec,enc,isar,rend,util,debug}/!(wmc_auto*).[hc] coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/apps/*.[hc] coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/lib_lc3plus/!(wmc_auto*).[hc] coan source --replace --no-transients -E -K --file $ifdef_list $targetdir/lib_lc3plus/fft/!(wmc_auto*).[hc] else ./strip_defines_cppp.sh $targetdir $ifdef_list fi Loading