1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-29 13:42:47 +02:00

prod/Makefile: target "spectrum" to generate reference spectrum; target spotless

This commit is contained in:
Werner Almesberger 2011-05-28 13:06:33 -03:00
parent 0eec747510
commit 680086b2fa

View File

@ -15,9 +15,12 @@ ATBEN_DUT=net:ben
ATBEN_REF=usb ATBEN_REF=usb
ATUSB_DUT=usb ATUSB_DUT=usb
ATUSB_REF=net:ben ATUSB_REF=net:ben
SPECTRUM_MARGIN=+5 +5
GENPATHPROF=../tools/atrf-path/genpathprof
.PHONY: all ben usb flash .PHONY: all ben usb flash spectrum spotless
all: ben all: ben
@ -30,8 +33,19 @@ usb: usb.profile
flash: flash:
./atusb-flash $(ATUSB_REF) $(ATUSB_DUT) ./atusb-flash $(ATUSB_REF) $(ATUSB_DUT)
spectrum:
atrf-path -g -T +0.5 $(ATBEN_REF) $(ATBEN_DUT) 10 | \
$(GENPATHPROF) $(SPECTRUM_MARGIN) >ben.profile || \
{ rm -rf ben.profile; exit 1; }
atrf-path -g -T +0.5 $(ATUSB_REF) $(ATUSB_DUT) 10 | \
$(GENPATHPROF) $(SPECTRUM_MARGIN) >usb.profile || \
{ rm -rf usb.profile; exit 1; }
ben.profile: ben.profile:
cp ../tools/atrf-path/profile.example $@ cp ../tools/atrf-path/profile.example $@
usb.profile: usb.profile:
cp ../tools/atrf-path/profile.example $@ cp ../tools/atrf-path/profile.example $@
spotless:
rm -f ben.profile usb.profile