projects
/
b43-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fwcutter: Add two new sources for 478.104 firmware
[b43-tools.git]
/
assembler
/
b43-asm
diff --git
a/assembler/b43-asm
b/assembler/b43-asm
index f910a6b0f3ec846c3ca08d82c3f1b503e3723e99..9585b1c2a34805715ad7d8449706d922b087cb40 100755
(executable)
--- a/
assembler/b43-asm
+++ b/
assembler/b43-asm
@@
-10,7
+10,7
@@
# The b43-asm backend binary
B43_ASM="b43-asm.bin"
# The C preprocessor binary
# The b43-asm backend binary
B43_ASM="b43-asm.bin"
# The C preprocessor binary
-CPP="
cpp
"
+CPP="
gcc -E
"
# This variable is changed by the installer scripts.
# This variable is changed by the installer scripts.
@@
-41,11
+41,25
@@
shift
outfile="$1"
shift
outfile="$1"
shift
+cpp_args=
+if [ "$1" == "--cpp-args" ]; then
+ shift
+ while [ "$1" != "--" ]; do
+ if [ $# -eq 0 ]; then
+ echo "ERROR: --cpp-args must be terminated by --"
+ exit 4
+ fi
+ cpp_args="$cpp_args $1"
+ shift
+ done
+ shift
+fi
+
if [ "$infile" != "-" ]; then
if ! [ -r "$infile" ]; then
echo "ERROR: Can not read input file \"$infile\""
if [ "$infile" != "-" ]; then
if ! [ -r "$infile" ]; then
echo "ERROR: Can not read input file \"$infile\""
- exit
4
+ exit
5
fi
fi
fi
fi
-$CPP -
traditional-cpp "$infile" | $B43_ASM "-" "$out
file" $@
+$CPP -
x c++ -traditional-cpp $cpp_args "$infile" | $B43_ASM "-" "$outfile" --__real_infile "$in
file" $@