mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-12-28 12:40:49 +02:00
prod/Makefile: target "spectrum" to generate reference spectrum; target spotless
This commit is contained in:
parent
0eec747510
commit
680086b2fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user