Commit 66a87859 authored by Jan Kiene's avatar Jan Kiene
Browse files

remove INCLUDE_SPLIT from instr script as it is obsolete

parent 4a395668
Loading
Loading
Loading
Loading
Loading
+21 −30
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@ function usage {
    exit
}

INCLUDE_SPLIT=1

wmc_opt=""
if [ $# -eq 1 ]; then
    mode=$1
@@ -95,16 +93,12 @@ cp -R ../apps $targetdir
cp -R ../Makefile $targetdir
cp -R ../CMakeLists.txt $targetdir
cp -R ../Workspace_msvc $targetdir
if [ $INCLUDE_SPLIT -eq 0 ]; then
    ./strip_split_rendering.sh $targetdir
fi

# back up #ifdef-list
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 -I $targetdir/lib_debug |
@@ -130,7 +124,6 @@ if [ $INCLUDE_SPLIT -eq 1 ]; then
$lc3plus_defines_filtered
#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=""
@@ -167,10 +160,8 @@ find $targetdir -name "*.[ch]" -exec sed -i.bak -e "s/\(0x[0-9a-fA-F]*\)UL/\(\(u
# run wmc_tool
"tools/$system/wmc_tool" $wmc_opt -m "$targetdir/apps/encoder.c" "$targetdir/lib_enc/*.c" "$targetdir/lib_com/*.c"  >> /dev/null
"tools/$system/wmc_tool" $wmc_opt -m "$targetdir/apps/decoder.c" "$targetdir/lib_dec/*.c" "$targetdir/lib_rend/*.c" >> /dev/null
if [ $INCLUDE_SPLIT -eq 1 ]; then
"tools/$system/wmc_tool" $wmc_opt -m "$targetdir/apps/renderer.c" "$targetdir/lib_rend/*.c" "$targetdir/lib_lc3plus/*.c" "$targetdir/lib_lc3plus/fft/*.c" >> /dev/null
"tools/$system/wmc_tool" $wmc_opt -m "$targetdir/apps/isar_post_rend.c" "$targetdir/lib_isar/*.c" "$targetdir/lib_lc3plus/*.c" "$targetdir/lib_lc3plus/fft/*.c" >> /dev/null
fi

# automatically enable #define WMOPS in options.h
sed -i.bak -e "s/\/\*[[:space:]]*\(#define[[:space:]]*WMOPS\)[[:space:]]*\*\//\1/g" $targetdir/lib_com/options.h