mc1322x: handle board file differently if cygwin
This commit is contained in:
parent
a7addf990f
commit
befbd4a479
1 changed files with 5 additions and 0 deletions
|
@ -72,7 +72,12 @@ CUSTOM_RULE_C_TO_O=yes
|
|||
CFLAGS += -I$(OBJECTDIR) -I$(CONTIKI_CPU)/board -DBOARD=$(TARGET)
|
||||
|
||||
$(OBJECTDIR)/board.h: $(OBJECTDIR)
|
||||
ifneq (,$(findstring cygdrive,$(shell pwd)))
|
||||
${info Cygwin detected.}
|
||||
ln -f $(CONTIKI_CPU)/board/$(TARGET).h $(OBJECTDIR)/board.h
|
||||
else
|
||||
ln -sf ../$(CONTIKI_CPU)/board/$(TARGET).h $(OBJECTDIR)/board.h
|
||||
endif
|
||||
|
||||
|
||||
$(OBJECTDIR)/isr.o: $(CONTIKI_CPU)/src/isr.c
|
||||
|
|
Loading…
Reference in a new issue