Commit 3691c9a3 authored by Michael Büsch's avatar Michael Büsch

Rename bcm43xx -> b43

Signed-off-by: Michael Büsch's avatarMichael Buesch <mb@bu3sch.de>
parent b9e19faa
...@@ -5,7 +5,7 @@ PREFIX = /usr/local ...@@ -5,7 +5,7 @@ PREFIX = /usr/local
CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE -D_GNU_SOURCE CFLAGS = -std=c99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE -D_GNU_SOURCE
LDFLAGS = -lfl LDFLAGS = -lfl
BINARY = bcm43xx-asm.bin BINARY = b43-asm.bin
OBJECTS = parser.o scanner.o main.o initvals.o util.o args.o OBJECTS = parser.o scanner.o main.o initvals.o util.o args.o
# YACC related CFLAGS # YACC related CFLAGS
...@@ -38,10 +38,10 @@ $(BINARY): $(OBJECTS) ...@@ -38,10 +38,10 @@ $(BINARY): $(OBJECTS)
install: all install: all
-install -o 0 -g 0 -m 755 $(BINARY) $(PREFIX)/bin/ -install -o 0 -g 0 -m 755 $(BINARY) $(PREFIX)/bin/
-cp bcm43xx-asm bcm43xx-asm.inst -cp b43-asm b43-asm.inst
-sed -i -e 's/installed=0/installed=1/' bcm43xx-asm.inst -sed -i -e 's/installed=0/installed=1/' b43-asm.inst
-install -o 0 -g 0 -m 755 bcm43xx-asm.inst $(PREFIX)/bin/bcm43xx-asm -install -o 0 -g 0 -m 755 b43-asm.inst $(PREFIX)/bin/b43-asm
-rm -f bcm43xx-asm.inst -rm -f b43-asm.inst
clean: clean:
-rm -f *~ *.o *.orig *.rej $(BINARY) scanner.c scanner.h parser.c parser.h -rm -f *~ *.o *.orig *.rej $(BINARY) scanner.c scanner.h parser.c parser.h
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
installed=0 installed=0
if [ -z "$BCM43xx_ASM" ]; then if [ -z "$B43_ASM" ]; then
if [ $installed -eq 0 ] && [ -x "./bcm43xx-asm.bin" ]; then if [ $installed -eq 0 ] && [ -x "./b43-asm.bin" ]; then
BCM43xx_ASM="./bcm43xx-asm.bin" B43_ASM="./b43-asm.bin"
else else
BCM43xx_ASM="bcm43xx-asm.bin" B43_ASM="b43-asm.bin"
fi fi
fi fi
...@@ -15,7 +15,7 @@ if [ -z "$CPP" ]; then ...@@ -15,7 +15,7 @@ if [ -z "$CPP" ]; then
fi fi
if [ $# -lt 2 ]; then if [ $# -lt 2 ]; then
$BCM43xx_ASM --help $B43_ASM --help
exit 1 exit 1
fi fi
...@@ -24,4 +24,4 @@ shift ...@@ -24,4 +24,4 @@ shift
outfile="$1" outfile="$1"
shift shift
cat "$infile" | $CPP -traditional-cpp | $BCM43xx_ASM "-" "$outfile" $@ cat "$infile" | $CPP -traditional-cpp | $B43_ASM "-" "$outfile" $@
...@@ -3,7 +3,7 @@ PREFIX = /usr/local ...@@ -3,7 +3,7 @@ PREFIX = /usr/local
CFLAGS = -std=gnu99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE -D_GNU_SOURCE CFLAGS = -std=gnu99 -O2 -fomit-frame-pointer -Wall -D_BSD_SOURCE -D_GNU_SOURCE
LDFLAGS = LDFLAGS =
BINARY = bcm43xx-dasm.bin BINARY = b43-dasm.bin
OBJECTS = main.o util.o OBJECTS = main.o util.o
all: $(BINARY) all: $(BINARY)
...@@ -17,10 +17,10 @@ $(BINARY): $(OBJECTS) ...@@ -17,10 +17,10 @@ $(BINARY): $(OBJECTS)
install: all install: all
-install -o 0 -g 0 -m 755 $(BINARY) $(PREFIX)/bin/ -install -o 0 -g 0 -m 755 $(BINARY) $(PREFIX)/bin/
-cp bcm43xx-dasm bcm43xx-dasm.inst -cp b43-dasm b43-dasm.inst
-sed -i -e 's/installed=0/installed=1/' bcm43xx-dasm.inst -sed -i -e 's/installed=0/installed=1/' b43-dasm.inst
-install -o 0 -g 0 -m 755 bcm43xx-dasm.inst $(PREFIX)/bin/bcm43xx-dasm -install -o 0 -g 0 -m 755 b43-dasm.inst $(PREFIX)/bin/b43-dasm
-rm -f bcm43xx-dasm.inst -rm -f b43-dasm.inst
clean: clean:
-rm -f *~ *.o *.orig *.rej $(BINARY) -rm -f *~ *.o *.orig *.rej $(BINARY)
...@@ -7,16 +7,16 @@ if [ $# -ne 2 ]; then ...@@ -7,16 +7,16 @@ if [ $# -ne 2 ]; then
exit 1 exit 1
fi fi
if [ -z "$BCM43xx_DASM" ]; then if [ -z "$B43_DASM" ]; then
if [ $installed -eq 0 ] && [ -x "./bcm43xx-dasm.bin" ]; then if [ $installed -eq 0 ] && [ -x "./b43-dasm.bin" ]; then
BCM43xx_DASM="./bcm43xx-dasm.bin" B43_DASM="./b43-dasm.bin"
else else
BCM43xx_DASM="bcm43xx-dasm.bin" B43_DASM="b43-dasm.bin"
fi fi
fi fi
infile="$1" infile="$1"
outfile="$2" outfile="$2"
cat "$infile" | $BCM43xx_DASM "$outfile" cat "$infile" | $B43_DASM "$outfile"
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