From dcf0210b156b03d83849cf5c3e2f8b78072fc2f0 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Tue, 30 Oct 2012 11:30:21 +0000 Subject: [PATCH] usb: Made the usb example optional Downloading extra sources is against debian policy and was a blocker to get simavr in debian. Made the board_usb example optional, it will require an explicit make. Signed-off-by: Michel Pollet --- examples/Makefile | 12 +++++++----- examples/{board_usb => extra_board_usb}/.gitignore | 0 examples/{board_usb => extra_board_usb}/Makefile | 0 examples/{board_usb => extra_board_usb}/README | 0 .../at90usb162_cdc_loopback.c | 0 .../at90usb162_cdc_loopback.h | 0 examples/{board_usb => extra_board_usb}/simusb.c | 0 7 files changed, 7 insertions(+), 5 deletions(-) rename examples/{board_usb => extra_board_usb}/.gitignore (100%) rename examples/{board_usb => extra_board_usb}/Makefile (100%) rename examples/{board_usb => extra_board_usb}/README (100%) rename examples/{board_usb => extra_board_usb}/at90usb162_cdc_loopback.c (100%) rename examples/{board_usb => extra_board_usb}/at90usb162_cdc_loopback.h (100%) rename examples/{board_usb => extra_board_usb}/simusb.c (100%) diff --git a/examples/Makefile b/examples/Makefile index 680d0b7..3fd6771 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,11 +1,6 @@ boards_base=${wildcard board_*} -# remove vhci example on anything but linux -ifneq (${shell uname}, Linux) -boards=${subst board_usb,,$(boards_base)} -else boards=$(boards_base) -endif all: for bi in ${boards}; do $(MAKE) -C $$bi; done @@ -13,3 +8,10 @@ all: clean: for bi in ${boards}; do $(MAKE) -C $$bi clean; done +# +# The USB example is not made by default, as it downloads stuff +# for the vhci library, it fails the debian policy on being able +# to build offline. +# +extra_board_usb: + make -C extra_board_usb diff --git a/examples/board_usb/.gitignore b/examples/extra_board_usb/.gitignore similarity index 100% rename from examples/board_usb/.gitignore rename to examples/extra_board_usb/.gitignore diff --git a/examples/board_usb/Makefile b/examples/extra_board_usb/Makefile similarity index 100% rename from examples/board_usb/Makefile rename to examples/extra_board_usb/Makefile diff --git a/examples/board_usb/README b/examples/extra_board_usb/README similarity index 100% rename from examples/board_usb/README rename to examples/extra_board_usb/README diff --git a/examples/board_usb/at90usb162_cdc_loopback.c b/examples/extra_board_usb/at90usb162_cdc_loopback.c similarity index 100% rename from examples/board_usb/at90usb162_cdc_loopback.c rename to examples/extra_board_usb/at90usb162_cdc_loopback.c diff --git a/examples/board_usb/at90usb162_cdc_loopback.h b/examples/extra_board_usb/at90usb162_cdc_loopback.h similarity index 100% rename from examples/board_usb/at90usb162_cdc_loopback.h rename to examples/extra_board_usb/at90usb162_cdc_loopback.h diff --git a/examples/board_usb/simusb.c b/examples/extra_board_usb/simusb.c similarity index 100% rename from examples/board_usb/simusb.c rename to examples/extra_board_usb/simusb.c -- 2.39.5