Skip to content

Commit

Permalink
2.08.01 release updates + Apache license
Browse files Browse the repository at this point in the history
Remove FW file
  • Loading branch information
Eman Copty committed Oct 8, 2018
1 parent fde1265 commit 0aaa3bd
Show file tree
Hide file tree
Showing 101 changed files with 4,846 additions and 1,710 deletions.
383 changes: 381 additions & 2 deletions ATTRIBUTIONS

Large diffs are not rendered by default.

225 changes: 32 additions & 193 deletions LICENSE

Large diffs are not rendered by default.

225 changes: 32 additions & 193 deletions api/LICENSE

Large diffs are not rendered by default.

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

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

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

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

NO_RESET ?= no
NO_BOOT ?= no

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

XLINK_CFLAGS= -I$(XLINK_BASE)/shared \
-I$(XLINK_BASE)/pc \
Expand All @@ -30,7 +33,12 @@ XLINK_CFLAGS= -I$(XLINK_BASE)/shared \
-I $(MV_COMMON_BASE)/shared/include/

CFLAGS+=$(XLINK_CFLAGS) -D__PC__ -DUSE_USB_VSC -DVERSION_NAME="\"$(VERSION_NUMBER)\""
#CFLAGS+=-DXLINK_NO_BOOT
ifeq ($(NO_BOOT), yes)
CFLAGS+=-DXLINK_NO_BOOT
endif
ifeq ($(NO_RESET), yes)
CFLAGS+=-DXLINK_NO_RESET
endif
CFLAGS+=-DDEVICE_SHELL_ENABLED

LIBS += -lpthread -lusb-1.0 -ldl
Expand All @@ -52,12 +60,15 @@ LDFLAGS += -shared
OBJS := $(SRCS:%.c=$(OBJDIR)/%.o)
OBJS += $(XLINK_SRCS:%.c=$(OBJDIR)/%.o)
DEPS := $(OBJS:.o=.d)
all: obj-$(ARCH)/libmvnc.so.0

.PHONY: get_mvcmd

all: $(OBJDIR)/$(OUT) get_mvcmd

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

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

-include $(DEPS)

get_mvcmd:
@./get_mvcmd.sh

basicinstall: $(OBJDIR)/$(OUT)
mkdir -p $(INSTALLDIR)/include/
mkdir -p $(INSTALLDIR)/include/mvnc2
mkdir -p $(INSTALLDIR)/lib/
cp $(OBJDIR)/$(OUT) $(INSTALLDIR)/lib/
ln -fs libmvnc.so.0 $(INSTALLDIR)/lib/libmvnc.so
ln -fs $(OUT) $(INSTALLDIR)/lib/$(LIB_NAME).so
cp ../include/mvnc.h $(INSTALLDIR)/include/mvnc2
ln -fs $(INSTALLDIR)/include/mvnc2/mvnc.h $(INSTALLDIR)/include/mvnc.h
mkdir -p $(INSTALLDIR)/lib/mvnc
Expand All @@ -90,11 +104,11 @@ postinstall:
udevadm trigger
ldconfig

install: basicinstall pythoninstall postinstall
install: get_mvcmd basicinstall pythoninstall postinstall

uninstall:
rm -f $(INSTALLDIR)/lib/libmvnc.so.0
rm -f $(INSTALLDIR)/lib/libmvnc.so
rm -f $(INSTALLDIR)/lib/$(OUT)
rm -f $(INSTALLDIR)/lib/$(LIB_NAME).so
rm -f $(INSTALLDIR)/include/mvnc.h
rm -f $(INSTALLDIR)/include/mvnc2/mvnc.h
rm -f $(INSTALLDIR)/lib/mvnc/MvNCAPI-*.mvcmd
Expand All @@ -107,4 +121,5 @@ clean:
rm -f $(OUT)
rm -f $(OBJS)
rm -rf $(OBJDIR)
rm -f libmvnc.so
rm -f $(LIB_NAME).so
find mvnc/ -type f -delete

This comment has been minimized.

Copy link
@rsippl

rsippl Oct 17, 2018

This fails when building Docker container:

find: 'mvnc/': No such file or directory
make: *** [clean] Error 1
Makefile:121: recipe for target 'clean' failed
The command '/bin/sh -c sudo make clean && sudo make get_mvcmd && sudo make basicinstall NO_BOOT=yes NO_RESET=yes && sudo make pythoninstall' returned a non-zero code: 2

This comment has been minimized.

Copy link
@rsippl

rsippl Oct 17, 2018

I created a pull request which fixes this.

Loading

0 comments on commit 0aaa3bd

Please sign in to comment.