for now you must define BOARD.
I'd like it to be though that if board isn't defined then it makes everything.
This commit is contained in:
parent
cad32b268b
commit
dcc2d5299c
@ -1,7 +1,15 @@
|
|||||||
|
BOARDS = redbee-dev redbee-module redbee-r1 redbee-usb redbee-econotag
|
||||||
|
|
||||||
CFLAGS += -I obj_$(BOARD)_board
|
CFLAGS += -I obj_$(BOARD)_board
|
||||||
OBJDIR = obj_$(BOARD)_board
|
OBJDIR = obj_$(BOARD)_board
|
||||||
|
|
||||||
board:
|
board:
|
||||||
|
ifndef BOARD
|
||||||
|
${warning BOARD not defined}
|
||||||
|
${warning echo "make BOARD=foo"}
|
||||||
|
${warning "boards: $(BOARDS)"}
|
||||||
|
${error you must define BOARD}
|
||||||
|
endif
|
||||||
@echo "setup object directory for dev board"
|
@echo "setup object directory for dev board"
|
||||||
mkdir -p $(OBJDIR)
|
mkdir -p $(OBJDIR)
|
||||||
cp $(MC1322X)/board/$(BOARD).h $(OBJDIR)
|
cp $(MC1322X)/board/$(BOARD).h $(OBJDIR)
|
@ -2,4 +2,5 @@ MC1322X = ..
|
|||||||
|
|
||||||
include $(MC1322X)/Makefile.include
|
include $(MC1322X)/Makefile.include
|
||||||
|
|
||||||
all: blink-red
|
all: board blink-red_$(BOARD).elf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user