1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-07-05 03:25:09 +03: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
ATUSB_DUT=usb
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
@ -30,8 +33,19 @@ usb: usb.profile
flash:
./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:
cp ../tools/atrf-path/profile.example $@
usb.profile:
cp ../tools/atrf-path/profile.example $@
spotless:
rm -f ben.profile usb.profile