Skip to content

Commit 0aaa3bd

Browse files
author
Eman Copty
committed
2.08.01 release updates + Apache license
Remove FW file
1 parent fde1265 commit 0aaa3bd

File tree

101 files changed

+4846
-1710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+4846
-1710
lines changed

ATTRIBUTIONS

Lines changed: 381 additions & 2 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 32 additions & 193 deletions
Large diffs are not rendered by default.

api/LICENSE

Lines changed: 32 additions & 193 deletions
Large diffs are not rendered by default.

api/include/mvnc.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
/*
2-
* Copyright 2018 Intel Corporation.
3-
* The source code, information and material ("Material") contained herein is
4-
* owned by Intel Corporation or its suppliers or licensors, and title to such
5-
* Material remains with Intel Corporation or its suppliers or licensors.
6-
* The Material contains proprietary information of Intel or its suppliers and
7-
* licensors. The Material is protected by worldwide copyright laws and treaty
8-
* provisions.
9-
* No part of the Material may be used, copied, reproduced, modified, published,
10-
* uploaded, posted, transmitted, distributed or disclosed in any way without
11-
* Intel's prior express written permission. No license under any patent,
12-
* copyright or other intellectual property rights in the Material is granted to
13-
* or conferred upon you, either expressly, by implication, inducement, estoppel
14-
* or otherwise.
15-
* Any license under such intellectual property rights must be express and
16-
* approved by Intel in writing.
2+
*
3+
* Copyright (c) 2017-2018 Intel Corporation. All Rights Reserved
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
1716
*/
1817

1918
#ifndef __NC_H_INCLUDED__

api/include/ncCommPrivate.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
/*
2-
* Copyright 2018 Intel Corporation.
3-
* The source code, information and material ("Material") contained herein is
4-
* owned by Intel Corporation or its suppliers or licensors, and title to such
5-
* Material remains with Intel Corporation or its suppliers or licensors.
6-
* The Material contains proprietary information of Intel or its suppliers and
7-
* licensors. The Material is protected by worldwide copyright laws and treaty
8-
* provisions.
9-
* No part of the Material may be used, copied, reproduced, modified, published,
10-
* uploaded, posted, transmitted, distributed or disclosed in any way without
11-
* Intel's prior express written permission. No license under any patent,
12-
* copyright or other intellectual property rights in the Material is granted to
13-
* or conferred upon you, either expressly, by implication, inducement, estoppel
14-
* or otherwise.
15-
* Any license under such intellectual property rights must be express and
16-
* approved by Intel in writing.
2+
*
3+
* Copyright (c) 2017-2018 Intel Corporation. All Rights Reserved
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
1716
*/
1817

1918
///

api/include/ncPrivateTypes.h

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
/*
2-
* Copyright 2018 Intel Corporation.
3-
* The source code, information and material ("Material") contained herein is
4-
* owned by Intel Corporation or its suppliers or licensors, and title to such
5-
* Material remains with Intel Corporation or its suppliers or licensors.
6-
* The Material contains proprietary information of Intel or its suppliers and
7-
* licensors. The Material is protected by worldwide copyright laws and treaty
8-
* provisions.
9-
* No part of the Material may be used, copied, reproduced, modified, published,
10-
* uploaded, posted, transmitted, distributed or disclosed in any way without
11-
* Intel's prior express written permission. No license under any patent,
12-
* copyright or other intellectual property rights in the Material is granted to
13-
* or conferred upon you, either expressly, by implication, inducement, estoppel
14-
* or otherwise.
15-
* Any license under such intellectual property rights must be express and
16-
* approved by Intel in writing.
2+
*
3+
* Copyright (c) 2017-2018 Intel Corporation. All Rights Reserved
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
1716
*/
1817

1918
///

api/python/mvnc/mvncapi.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# Copyright 2018 Intel Corporation.
2-
# The source code, information and material ("Material") contained herein is
3-
# owned by Intel Corporation or its suppliers or licensors, and title to such
4-
# Material remains with Intel Corporation or its suppliers or licensors.
5-
# The Material contains proprietary information of Intel or its suppliers and
6-
# licensors. The Material is protected by worldwide copyright laws and treaty
7-
# provisions.
8-
# No part of the Material may be used, copied, reproduced, modified, published,
9-
# uploaded, posted, transmitted, distributed or disclosed in any way without
10-
# Intel's prior express written permission. No license under any patent,
11-
# copyright or other intellectual property rights in the Material is granted to
12-
# or conferred upon you, either expressly, by implication, inducement, estoppel
13-
# or otherwise.
14-
# Any license under such intellectual property rights must be express and
15-
# approved by Intel in writing.
1+
# Copyright (c) 2017-2018 Intel Corporation. All Rights Reserved
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
1614
import os
1715
import sys
1816
import numpy

api/src/Makefile

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
ARCH := $(shell uname -m)
22

3+
NO_RESET ?= no
4+
NO_BOOT ?= no
35

4-
OUT := libmvnc.so.0
6+
LIB_NAME:= libmvnc
7+
OUT := $(LIB_NAME).so.0
58
OBJDIR := obj-$(ARCH)
69
INSTALLDIR := ${DESTDIR}/usr/local
710
PYTHON3DIST := $(shell python3 -c "import site; print(site.getsitepackages()[0])")
@@ -21,7 +24,7 @@ XLINK_SRCS=$(XLINK_BASE)/pc/usb_boot.c
2124
XLINK_SRCS+=$(XLINK_BASE)/shared/XLink.c
2225
XLINK_SRCS+=$(XLINK_BASE)/shared/XLinkDispatcher.c
2326
XLINK_SRCS+=$(XLINKCONSOLE_BASE)/pc/XLinkConsole.c
24-
XLINK_SRCS+=$(XLINK_BASE)/pc/UsbLinkPlatform.c
27+
XLINK_SRCS+=$(XLINK_BASE)/pc/XLinkPlatform.c
2528

2629
XLINK_CFLAGS= -I$(XLINK_BASE)/shared \
2730
-I$(XLINK_BASE)/pc \
@@ -30,7 +33,12 @@ XLINK_CFLAGS= -I$(XLINK_BASE)/shared \
3033
-I $(MV_COMMON_BASE)/shared/include/
3134

3235
CFLAGS+=$(XLINK_CFLAGS) -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"$(VERSION_NUMBER)\""
33-
#CFLAGS+=-DXLINK_NO_BOOT
36+
ifeq ($(NO_BOOT), yes)
37+
CFLAGS+=-DXLINK_NO_BOOT
38+
endif
39+
ifeq ($(NO_RESET), yes)
40+
CFLAGS+=-DXLINK_NO_RESET
41+
endif
3442
CFLAGS+=-DDEVICE_SHELL_ENABLED
3543

3644
LIBS += -lpthread -lusb-1.0 -ldl
@@ -52,12 +60,15 @@ LDFLAGS += -shared
5260
OBJS := $(SRCS:%.c=$(OBJDIR)/%.o)
5361
OBJS += $(XLINK_SRCS:%.c=$(OBJDIR)/%.o)
5462
DEPS := $(OBJS:.o=.d)
55-
all: obj-$(ARCH)/libmvnc.so.0
63+
64+
.PHONY: get_mvcmd
65+
66+
all: $(OBJDIR)/$(OUT) get_mvcmd
5667

5768
$(OBJDIR)/$(OUT): $(OBJS)
5869
if [ ! -e ./version.txt ] ; then echo "missing version.txt file"; exit 1; fi;
5970
$(CC) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
60-
ln -fs $(OBJDIR)/$(OUT) libmvnc.so
71+
ln -fs $(OBJDIR)/$(OUT) $(LIB_NAME).so
6172
ln -fs $(OBJDIR)/$(OUT) $(OUT)
6273

6374
$(OBJDIR)/%.o: %.c
@@ -66,12 +77,15 @@ $(OBJDIR)/%.o: %.c
6677

6778
-include $(DEPS)
6879

80+
get_mvcmd:
81+
@./get_mvcmd.sh
82+
6983
basicinstall: $(OBJDIR)/$(OUT)
7084
mkdir -p $(INSTALLDIR)/include/
7185
mkdir -p $(INSTALLDIR)/include/mvnc2
7286
mkdir -p $(INSTALLDIR)/lib/
7387
cp $(OBJDIR)/$(OUT) $(INSTALLDIR)/lib/
74-
ln -fs libmvnc.so.0 $(INSTALLDIR)/lib/libmvnc.so
88+
ln -fs $(OUT) $(INSTALLDIR)/lib/$(LIB_NAME).so
7589
cp ../include/mvnc.h $(INSTALLDIR)/include/mvnc2
7690
ln -fs $(INSTALLDIR)/include/mvnc2/mvnc.h $(INSTALLDIR)/include/mvnc.h
7791
mkdir -p $(INSTALLDIR)/lib/mvnc
@@ -90,11 +104,11 @@ postinstall:
90104
udevadm trigger
91105
ldconfig
92106

93-
install: basicinstall pythoninstall postinstall
107+
install: get_mvcmd basicinstall pythoninstall postinstall
94108

95109
uninstall:
96-
rm -f $(INSTALLDIR)/lib/libmvnc.so.0
97-
rm -f $(INSTALLDIR)/lib/libmvnc.so
110+
rm -f $(INSTALLDIR)/lib/$(OUT)
111+
rm -f $(INSTALLDIR)/lib/$(LIB_NAME).so
98112
rm -f $(INSTALLDIR)/include/mvnc.h
99113
rm -f $(INSTALLDIR)/include/mvnc2/mvnc.h
100114
rm -f $(INSTALLDIR)/lib/mvnc/MvNCAPI-*.mvcmd
@@ -107,4 +121,5 @@ clean:
107121
rm -f $(OUT)
108122
rm -f $(OBJS)
109123
rm -rf $(OBJDIR)
110-
rm -f libmvnc.so
124+
rm -f $(LIB_NAME).so
125+
find mvnc/ -type f -delete

0 commit comments

Comments
 (0)