mirror of
git://projects.qi-hardware.com/f32xbase.git
synced 2024-11-04 23:21:53 +02:00
Changed default target to "ben" and added Ben upload.
- f32x/Makefile: "ben" is now the default target - f32x/Makefile: made upload process target-dependent
This commit is contained in:
parent
e614d15fef
commit
13aa36be2b
@ -14,7 +14,7 @@
|
|||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
|
||||||
ifeq ($(TARGET),)
|
ifeq ($(TARGET),)
|
||||||
TARGET = om
|
TARGET = ben
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC_om = arm-angstrom-linux-gnueabi-gcc
|
CC_om = arm-angstrom-linux-gnueabi-gcc
|
||||||
@ -29,6 +29,9 @@ LDFLAGS_ben =
|
|||||||
OBJS_om = c2-om.o gpio-s3c24xx.o rt.o
|
OBJS_om = c2-om.o gpio-s3c24xx.o rt.o
|
||||||
OBJS_ben = c2-ben.o gpio-xburst.o
|
OBJS_ben = c2-ben.o gpio-xburst.o
|
||||||
|
|
||||||
|
UPLOAD_om = ssh lab neo 'cat \>f32x' <f32x
|
||||||
|
UPLOAD_ben = scp f32x ben:
|
||||||
|
|
||||||
NAME = f32x
|
NAME = f32x
|
||||||
CC = $(CC_$(TARGET))
|
CC = $(CC_$(TARGET))
|
||||||
CFLAGS = -Wall -Wshadow -g $(CFLAGS_$(TARGET))
|
CFLAGS = -Wall -Wshadow -g $(CFLAGS_$(TARGET))
|
||||||
@ -43,7 +46,7 @@ all: $(NAME)
|
|||||||
$(NAME): $(OBJS)
|
$(NAME): $(OBJS)
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
ssh lab neo 'cat \>f32x' <f32x
|
$(UPLOAD_$(TARGET))
|
||||||
|
|
||||||
install: $(NAME)
|
install: $(NAME)
|
||||||
install -D $(NAME) $(PREFIX)/bin/$(NAME)
|
install -D $(NAME) $(PREFIX)/bin/$(NAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user