aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fee1108..8595734 100644
--- a/Makefile
+++ b/Makefile
@@ -75,8 +75,17 @@ test_all:
@for i in $(STD_BOARDS); do make distclean $$i; done
driver:
- DRIVER=1 make -C board-$(BOARD) driver
- @$(RM) -f .crc_flash .boot_xdr.ffs
+ @echo "******** Building $(BOARD) system ********"
+ @b=`echo $(BOARD) | grep "-"`; \
+ if [ -n "$$b" ]; then \
+ subboard=$${b##*-}; \
+ board=$${b%%-*}; \
+ DRIVER=1 make -C board-$$board SUBBOARD=$$subboard driver; \
+ else \
+ DRIVER=1 make -C board-$(BOARD) driver; \
+ fi
+ @$(RM) -f .crc_flash .boot_xdr.ffs
+
cli:
make -C clients