Root/prod/Makefile

Source at commit b3b037e18d4ac2018cbef505b6ee3e01bfd24896 created 12 years 9 months ago.
By Werner Almesberger, TODO: update for switch to spi_atben
1#
2# prod/Makefile - Run the production test process (reference/development)
3#
4# Written 2011 by Werner Almesberger
5# Copyright 2011 Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13
14ATBEN_DUT=net:ben
15ATBEN_REF=usb
16ATUSB_DUT=usb
17ATUSB_REF=net:ben
18SPECTRUM_MARGIN=+5 +5
19
20GENPATHPROF=../tools/atrf-path/genpathprof
21
22
23.PHONY: all ben usb flash spectrum spotless
24
25all: ben
26
27ben: ben.profile
28    ./atben $(ATBEN_REF) $(ATBEN_DUT)
29
30usb: usb.profile
31    ./atusb $(ATUSB_REF) $(ATUSB_DUT)
32
33flash:
34    ./atusb-flash $(ATUSB_REF) $(ATUSB_DUT)
35
36spectrum:
37    @echo "$(ATBEN_REF) => $(ATBEN_DUT)"
38    atrf-path -g $(ATBEN_REF) $(ATBEN_DUT) 10 | \
39      $(GENPATHPROF) $(SPECTRUM_MARGIN) >ben.profile || \
40      { rm -rf ben.profile; exit 1; }
41    @echo "$(ATBEN_DUT) => $(ATBEN_BEN)"
42    atrf-path -g $(ATUSB_REF) $(ATUSB_DUT) 10 | \
43      $(GENPATHPROF) $(SPECTRUM_MARGIN) >usb.profile || \
44      { rm -rf usb.profile; exit 1; }
45
46ben.profile:
47    cp ../tools/atrf-path/profile.example $@
48
49usb.profile:
50    cp ../tools/atrf-path/profile.example $@
51
52spotless:
53    rm -f ben.profile usb.profile
54

Archive Download this file



interactive