Date:2011-05-28 12:03:20 (12 years 10 months ago)
Author:Werner Almesberger
Commit:0372d7d6cd18aaf76785fa1fbe01bdbe81d14c84
Message:prod/: moved more configurable items to variables

- Makefile: define driver names depending on device role
- Makefile: changed title comment to indicate that this Makefile is no
longer considered just a convenience hack
- atusb: define USB_ID via a variable instead of hard-coding it
Files: prod/Makefile (2 diffs)
prod/atusb (1 diff)

Change Details

prod/Makefile
11#
2# This Makefile just contains a few convenience commands, for development
2# prod/Makefile - Run the production test process (reference/development)
33#
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
418
519
620.PHONY: all ben usb flash
...... 
822all: ben
923
1024ben: ben.profile
11    ./atben usb net:ben
25    ./atben $(ATBEN_REF) $(ATBEN_DUT)
1226
1327usb: usb.profile
14    ./atusb net:ben usb
28    ./atusb $(ATUSB_REF) $(ATUSB_DUT)
1529
1630flash:
17    ./atusb-flash net:ben usb
31    ./atusb-flash $(ATUSB_REF) $(ATUSB_DUT)
1832
1933ben.profile:
2034    cp ../tools/atrf-path/profile.example $@
prod/atusb
33. ./Common
44
55
6USB_ID=20b7:1540
7
8
69enumerate()
710{
811    step "Enumeration"
9    cmd "usbwait -t 5 20b7:1540 && echo okay"
12    cmd "usbwait -t 5 $USB_ID && echo okay"
1013    expect okay
1114}
1215

Archive Download the corresponding diff file



interactive