2011-04-20 14:13:27 +03:00
|
|
|
#
|
2011-05-28 13:03:20 +03:00
|
|
|
# prod/Makefile - Run the production test process (reference/development)
|
2011-04-20 14:13:27 +03:00
|
|
|
#
|
2011-05-28 13:03:20 +03:00
|
|
|
# Written 2011 by Werner Almesberger
|
|
|
|
# Copyright 2011 Werner Almesberger
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
ATBEN_DUT=net:ben
|
|
|
|
ATBEN_REF=usb
|
|
|
|
ATUSB_DUT=usb
|
|
|
|
ATUSB_REF=net:ben
|
2011-05-28 19:06:33 +03:00
|
|
|
SPECTRUM_MARGIN=+5 +5
|
2011-04-20 14:13:27 +03:00
|
|
|
|
2011-05-28 19:06:33 +03:00
|
|
|
GENPATHPROF=../tools/atrf-path/genpathprof
|
2011-04-20 14:13:27 +03:00
|
|
|
|
2011-05-28 19:06:33 +03:00
|
|
|
|
|
|
|
.PHONY: all ben usb flash spectrum spotless
|
2011-04-20 14:13:27 +03:00
|
|
|
|
|
|
|
all: ben
|
|
|
|
|
|
|
|
ben: ben.profile
|
2011-05-28 13:03:20 +03:00
|
|
|
./atben $(ATBEN_REF) $(ATBEN_DUT)
|
2011-04-20 14:13:27 +03:00
|
|
|
|
|
|
|
usb: usb.profile
|
2011-05-28 13:03:20 +03:00
|
|
|
./atusb $(ATUSB_REF) $(ATUSB_DUT)
|
2011-04-20 14:13:27 +03:00
|
|
|
|
2011-05-21 17:08:46 +03:00
|
|
|
flash:
|
2011-05-28 13:03:20 +03:00
|
|
|
./atusb-flash $(ATUSB_REF) $(ATUSB_DUT)
|
2011-05-21 17:08:46 +03:00
|
|
|
|
2011-05-28 19:06:33 +03:00
|
|
|
spectrum:
|
2011-06-07 14:09:20 +03:00
|
|
|
@echo "$(ATBEN_REF) => $(ATBEN_DUT)"
|
|
|
|
atrf-path -g $(ATBEN_REF) $(ATBEN_DUT) 10 | \
|
2011-05-28 19:06:33 +03:00
|
|
|
$(GENPATHPROF) $(SPECTRUM_MARGIN) >ben.profile || \
|
|
|
|
{ rm -rf ben.profile; exit 1; }
|
2011-06-07 14:09:20 +03:00
|
|
|
@echo "$(ATBEN_DUT) => $(ATBEN_BEN)"
|
|
|
|
atrf-path -g $(ATUSB_REF) $(ATUSB_DUT) 10 | \
|
2011-05-28 19:06:33 +03:00
|
|
|
$(GENPATHPROF) $(SPECTRUM_MARGIN) >usb.profile || \
|
|
|
|
{ rm -rf usb.profile; exit 1; }
|
|
|
|
|
2011-04-20 14:13:27 +03:00
|
|
|
ben.profile:
|
|
|
|
cp ../tools/atrf-path/profile.example $@
|
|
|
|
|
|
|
|
usb.profile:
|
|
|
|
cp ../tools/atrf-path/profile.example $@
|
2011-05-28 19:06:33 +03:00
|
|
|
|
|
|
|
spotless:
|
|
|
|
rm -f ben.profile usb.profile
|