mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-29 10:59:42 +02:00
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
This commit is contained in:
parent
2bb2e7b658
commit
0372d7d6cd
@ -1,6 +1,20 @@
|
||||
#
|
||||
# This Makefile just contains a few convenience commands, for development
|
||||
# prod/Makefile - Run the production test process (reference/development)
|
||||
#
|
||||
# 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
|
||||
|
||||
|
||||
.PHONY: all ben usb flash
|
||||
@ -8,13 +22,13 @@
|
||||
all: ben
|
||||
|
||||
ben: ben.profile
|
||||
./atben usb net:ben
|
||||
./atben $(ATBEN_REF) $(ATBEN_DUT)
|
||||
|
||||
usb: usb.profile
|
||||
./atusb net:ben usb
|
||||
./atusb $(ATUSB_REF) $(ATUSB_DUT)
|
||||
|
||||
flash:
|
||||
./atusb-flash net:ben usb
|
||||
./atusb-flash $(ATUSB_REF) $(ATUSB_DUT)
|
||||
|
||||
ben.profile:
|
||||
cp ../tools/atrf-path/profile.example $@
|
||||
|
@ -3,10 +3,13 @@
|
||||
. ./Common
|
||||
|
||||
|
||||
USB_ID=20b7:1540
|
||||
|
||||
|
||||
enumerate()
|
||||
{
|
||||
step "Enumeration"
|
||||
cmd "usbwait -t 5 20b7:1540 && echo okay"
|
||||
cmd "usbwait -t 5 $USB_ID && echo okay"
|
||||
expect okay
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user