From 08910729b54918b426bdc01e33171258f3889dce Mon Sep 17 00:00:00 2001 From: Eric Marsman Date: Fri, 30 Oct 2015 16:48:01 +0000 Subject: [PATCH 01/11] Bump to v7.1.1-dev in next --- CHANGELOG.mkd | 2 ++ README.rst | 4 ++-- docs/conf.py | 4 ++-- docs/index.rst | 2 +- src/config.cpp | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.mkd b/CHANGELOG.mkd index b947a5d94..f166861cf 100644 --- a/CHANGELOG.mkd +++ b/CHANGELOG.mkd @@ -1,5 +1,7 @@ # OpenXC Vehicle Interface Firmware Changelog +## v7.1.1-dev + ## v7.1.0 * Feature: Add support for new CrossChasm C5 Cellular platform. diff --git a/README.rst b/README.rst index 3c0a3ce15..9c55f9b41 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ OpenXC Vehicle Interface Firmware .. image:: /docs/_static/logo.png -:Version: 7.1.0 +:Version: 7.1.1-dev :Web: http://openxcplatform.com :Documentation: http://vi-firmware.openxcplatform.com :Source: http://github.com/openxc/vi-firmware @@ -68,7 +68,7 @@ Releasing next development release (one patch release up with the ``-dev`` suffix, e.g. ``v0.9.2-dev`` -- Also change ``script/pip-requirements.txt`` back to using the development +- Also change ``script/bootstrap/pip-requirements.txt`` back to using the development version from Git: ``-e git+https://github.com/openxc/openxc-python.git@next#egg=openxc`` - Go to https://github.com/openxc/vi-firmware/releases and promote the tag you diff --git a/docs/conf.py b/docs/conf.py index 11200c6c6..dcc0563b1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,9 +49,9 @@ # built documents. # # The short X.Y version. -version = '7.1.0' +version = '7.1.1-dev' # The full version, including alpha/beta/rc tags. -release = '7.1.0' +release = '7.1.1-dev' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/index.rst b/docs/index.rst index 0fe25729c..80f1f5667 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ OpenXC Vehicle Interface Firmware .. image:: /_static/logo.png -:Version: 7.1.0 +:Version: 7.1.1-dev :Web: http://openxcplatform.com :Documentation: http://vi-firmware.openxcplatform.com :Source: http://github.com/openxc/vi-firmware diff --git a/src/config.cpp b/src/config.cpp index b3a38a028..3eaa42700 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -88,7 +88,7 @@ openxc::telitHE910::TelitDevice telitDevice = { openxc::config::Configuration* openxc::config::getConfiguration() { static openxc::config::Configuration CONFIG = { messageSetIndex: 0, - version: "7.1.0", + version: "7.1.1-dev", payloadFormat: PayloadFormat::DEFAULT_OUTPUT_FORMAT, recurringObd2Requests: DEFAULT_RECURRING_OBD2_REQUESTS_STATUS, obd2BusAddress: DEFAULT_OBD2_BUS, From e3ff25f904334de14d85225be1bf785c51d574f6 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Thu, 21 Jan 2016 16:31:13 -0500 Subject: [PATCH 02/11] Update Nanopb Git repo URL since Google Code is gone. --- .gitmodules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index cd7ec07bf..d2c698a14 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,7 +22,7 @@ url = https://github.com/openxc/AT-commander [submodule "src/libs/nanopb"] path = src/libs/nanopb - url = https://code.google.com/p/nanopb/ + url = https://github.com/nanopb/nanopb.git [submodule "src/libs/openxc-message-format"] path = src/libs/openxc-message-format url = https://github.com/openxc/openxc-message-format From 8ed5af32590eb8b414ecb0c09edf15dff3181754 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Thu, 21 Jan 2016 16:40:38 -0500 Subject: [PATCH 03/11] Don't upgrade setuptools anymore, use current version. --- script/bootstrap/common.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/bootstrap/common.sh b/script/bootstrap/common.sh index 535487859..9e1cc3107 100644 --- a/script/bootstrap/common.sh +++ b/script/bootstrap/common.sh @@ -231,12 +231,12 @@ pre-configured Vagrant environment. See the docs for more information." echo "Installing Python..." _install "python" fi - + if [ $OS != "cygwin" ]; then echo "Installing Python development headers..." _install "python-dev" fi - + if ! command -v pip >/dev/null 2>&1; then echo "Installing Pip..." if ! command -v easy_install >/dev/null 2>&1; then @@ -256,7 +256,6 @@ pre-configured Vagrant environment. See the docs for more information." PIP_SUDO_CMD=$SUDO_CMD fi - $PIP_SUDO_CMD pip install --upgrade setuptools $PIP_SUDO_CMD pip install --src dependencies --pre -Ur $BOOTSTRAP_DIR/ci-requirements.txt if [ -z $CI ]; then $PIP_SUDO_CMD pip install --src dependencies --pre -Ur $BOOTSTRAP_DIR/pip-requirements.txt From db20d72cdffc93e3dda6139d3c4fff971933bfbe Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Fri, 22 Jan 2016 09:53:53 -0500 Subject: [PATCH 04/11] Don't upgrade python packages to latest available, use pinned only. This should fix an error in CI where we try to update setuptools to a newer version (because the protobuf package doesn't specify a version) while we are actively using it. --- script/bootstrap/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/bootstrap/common.sh b/script/bootstrap/common.sh index 9e1cc3107..4b1f3d59c 100644 --- a/script/bootstrap/common.sh +++ b/script/bootstrap/common.sh @@ -256,9 +256,9 @@ pre-configured Vagrant environment. See the docs for more information." PIP_SUDO_CMD=$SUDO_CMD fi - $PIP_SUDO_CMD pip install --src dependencies --pre -Ur $BOOTSTRAP_DIR/ci-requirements.txt + $PIP_SUDO_CMD pip install --src dependencies --pre -r $BOOTSTRAP_DIR/ci-requirements.txt if [ -z $CI ]; then - $PIP_SUDO_CMD pip install --src dependencies --pre -Ur $BOOTSTRAP_DIR/pip-requirements.txt + $PIP_SUDO_CMD pip install --src dependencies --pre -r $BOOTSTRAP_DIR/pip-requirements.txt fi COMMON_SOURCED=1 From 0409b3bcbe8f0d66176a6c2584a076040c937091 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Fri, 22 Jan 2016 10:04:58 -0500 Subject: [PATCH 05/11] Update ChipKIT network library URL and version. --- script/bootstrap/pic32.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/bootstrap/pic32.sh b/script/bootstrap/pic32.sh index 9b366fb5f..0254ac7e3 100644 --- a/script/bootstrap/pic32.sh +++ b/script/bootstrap/pic32.sh @@ -8,9 +8,9 @@ source $BOOTSTRAP_DIR/flashing_chipkit.sh ## chipKIT libraries for USB, CAN and Network -CHIPKIT_LIBRARY_AGREEMENT_URL="http://www.digilentinc.com/Agreement.cfm?DocID=DSD-0000318" -CHIPKIT_LIBRARY_DOWNLOAD_URL="http://www.digilentinc.com/Data/Documents/Product%20Documentation/chipKIT%20Network%20and%20USB%20Libs-20130724a.zip" -CHIPKIT_ZIP_FILE="chipkit-libraries-2013-07-24.zip" +CHIPKIT_LIBRARY_AGREEMENT_URL="https://reference.digilentinc.com/agreement" +CHIPKIT_LIBRARY_DOWNLOAD_URL="https://reference.digilentinc.com/_media/chipkit_network_and_usb_libs-20150115.zip" +CHIPKIT_ZIP_FILE="chipkit_network_and_usb_libs-20150115.zip" _pushd $DEPENDENCIES_FOLDER if ! test -e $CHIPKIT_ZIP_FILE From 010f929432db943354d43fda5b4ebc157d98ccbd Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Fri, 22 Jan 2016 10:51:20 -0500 Subject: [PATCH 06/11] Disable SSL cert checking (yikes) to get Digilent files. --- script/bootstrap/common.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/bootstrap/common.sh b/script/bootstrap/common.sh index 4b1f3d59c..b54170d8f 100644 --- a/script/bootstrap/common.sh +++ b/script/bootstrap/common.sh @@ -113,7 +113,11 @@ if [ -z $COMMON_SOURCED ]; then download() { url=$1 filename=$2 - curl $url -L -o $filename + # Disabling SSL cert checking (-k), which while strong discouraged, is + # used here because some dependency hosts CA bundle files are messed up, + # and this software doesn't store any secure data. If Digilent fixes + # their SSL certificate bundle we can remove it. + curl -k $url -L -o $filename } if [ `id -u` == 0 ]; then From 1bfc668fe2064f41b33ea0b34633287bec32e0f3 Mon Sep 17 00:00:00 2001 From: Charles Reitz Date: Tue, 26 Jan 2016 12:49:58 -0800 Subject: [PATCH 07/11] Fix typo --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9c55f9b41..7e2e13df5 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ OpenXC Vehicle Interface Firmware :target: http://vi-firmware.openxcplatform.com :alt: Documentation Status -The OpenXC vehicle interface (VI) firmware runs on an microcontroller connected +The OpenXC vehicle interface (VI) firmware runs on a microcontroller connected to one or more CAN buses. It receives either all CAN messages or a filtered subset, performs any unit conversion or factoring required and outputs a generic version to a USB interface. From 04b780531690893ce01b43a606e1f0b601d24e7a Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Mon, 1 Feb 2016 13:05:09 -0500 Subject: [PATCH 08/11] Fix link in README. --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7e2e13df5..f027034d1 100644 --- a/README.rst +++ b/README.rst @@ -36,7 +36,7 @@ Installation ============= For the full build instructions, see the `documentation -`_. +`_. Releasing From 3d84c029b054bcff1386f28300cc7ac3df55ce48 Mon Sep 17 00:00:00 2001 From: Eric Marsman Date: Wed, 17 Feb 2016 18:13:38 +0000 Subject: [PATCH 09/11] Updated docs for digilent ChipKIT dependencies --- docs/compile/dependencies.rst | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/docs/compile/dependencies.rst b/docs/compile/dependencies.rst index 47ddf6d76..15c11bcf2 100644 --- a/docs/compile/dependencies.rst +++ b/docs/compile/dependencies.rst @@ -96,30 +96,19 @@ in all terminals (and you probably do), you need to add these Digilent / Microchip Libraries ------------------------------ -It also requires some libraries from Microchip that we are unfortunately unable -to include or link to as a submodule from the source because of licensing -issues: - -- Microchip USB device library (download DSD-0000318 from the bottom of - the `Network Shield - page `_) -- Microchip CAN library (included in the same DSD-0000318 package as - the USB device library) - -You can read and accept Microchip's license and download both libraries on the -`Digilent download page -`_. - -Once you've downloaded the .zip file, extract it into the ``libs`` -directory in this project. It should look like this: +We also require some libraries from Microchip that are available from the bottom of the `Network Shield page `_. You can read and accept Microchip's license and download the libraries on the `Digilent download page `_. The bootstrap script does the above and then the ``libs`` directory should look like this: .. code-block:: sh - /Users/me/projects/vi-firmware/ - ---- libs/ - -------- chipKITUSBDevice/ - chipKitCAN/ - ... other libraries + -- src/ + --- libs/ + ---- + ... other libraries + chipKitCAN/ + chipKITEthernet/ + chipKITUSBDevice/ + ... other libraries .. _ftdi: From fd86b267d8302a45e8852c3bd5073245ff364852 Mon Sep 17 00:00:00 2001 From: Eric Marsman Date: Wed, 17 Feb 2016 18:14:12 +0000 Subject: [PATCH 10/11] Only disable curl SSL cert checking for digilent. launchpad (gcc-arm) complained if it was disabled. --- script/bootstrap.sh | 2 ++ script/bootstrap/common.sh | 15 ++++++++++----- script/bootstrap/pic32.sh | 9 ++++++++- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/script/bootstrap.sh b/script/bootstrap.sh index c197ecc07..1ba16c51c 100755 --- a/script/bootstrap.sh +++ b/script/bootstrap.sh @@ -27,3 +27,5 @@ else source $SCRIPTS_DIR/bootstrap/pic32.sh source $SCRIPTS_DIR/bootstrap/devel.sh; fi + +echo "Bootstrap complete" diff --git a/script/bootstrap/common.sh b/script/bootstrap/common.sh index b54170d8f..168ffb758 100644 --- a/script/bootstrap/common.sh +++ b/script/bootstrap/common.sh @@ -113,11 +113,16 @@ if [ -z $COMMON_SOURCED ]; then download() { url=$1 filename=$2 - # Disabling SSL cert checking (-k), which while strong discouraged, is - # used here because some dependency hosts CA bundle files are messed up, - # and this software doesn't store any secure data. If Digilent fixes - # their SSL certificate bundle we can remove it. - curl -k $url -L -o $filename + + #if 3rd arg exists, run curl and disable SSL cert checking. Added + #for digilent - see pic32.sh + if [ ! -z $3 ]; then + k_opt="-k" + else + k_opt="" + fi + echo "download() running 'curl $k_opt $url -L -o $filename'" + curl $k_opt $url -L -o $filename } if [ `id -u` == 0 ]; then diff --git a/script/bootstrap/pic32.sh b/script/bootstrap/pic32.sh index 0254ac7e3..e31ac6bf2 100644 --- a/script/bootstrap/pic32.sh +++ b/script/bootstrap/pic32.sh @@ -9,7 +9,14 @@ source $BOOTSTRAP_DIR/flashing_chipkit.sh ## chipKIT libraries for USB, CAN and Network CHIPKIT_LIBRARY_AGREEMENT_URL="https://reference.digilentinc.com/agreement" + +# Disabling SSL cert checking (-k), which while strong discouraged, is +# used here because some dependency hosts CA bundle files are messed up, +# and this software doesn't store any secure data. If Digilent fixes +# their SSL certificate bundle we can remove it. +NOT_SECURE="true" CHIPKIT_LIBRARY_DOWNLOAD_URL="https://reference.digilentinc.com/_media/chipkit_network_and_usb_libs-20150115.zip" + CHIPKIT_ZIP_FILE="chipkit_network_and_usb_libs-20150115.zip" _pushd $DEPENDENCIES_FOLDER @@ -21,7 +28,7 @@ then echo "Press Enter to verify you have read the license agreement." read fi - download $CHIPKIT_LIBRARY_DOWNLOAD_URL $CHIPKIT_ZIP_FILE + download $CHIPKIT_LIBRARY_DOWNLOAD_URL $CHIPKIT_ZIP_FILE $NOT_SECURE unzip $CHIPKIT_ZIP_FILE fi _popd From f63fd1312967069c2f395655d63c7d1f2aba835e Mon Sep 17 00:00:00 2001 From: Eric Marsman Date: Wed, 17 Feb 2016 18:34:14 +0000 Subject: [PATCH 11/11] version bump for release --- CHANGELOG.mkd | 7 ++++++- README.rst | 4 +++- docs/conf.py | 4 ++-- docs/index.rst | 2 +- src/config.cpp | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.mkd b/CHANGELOG.mkd index f166861cf..c2573fb3b 100644 --- a/CHANGELOG.mkd +++ b/CHANGELOG.mkd @@ -1,6 +1,11 @@ # OpenXC Vehicle Interface Firmware Changelog -## v7.1.1-dev +## v7.1.1 + +* Fix: Update nanpb repo location to Git. +* Fix: Keep same setuptools version. +* Fix: Update ChipKIT digitlent URL (requires disable SSL cert checks). +* Fix: Minor doc updates. ## v7.1.0 diff --git a/README.rst b/README.rst index f027034d1..278d32395 100644 --- a/README.rst +++ b/README.rst @@ -4,7 +4,7 @@ OpenXC Vehicle Interface Firmware .. image:: /docs/_static/logo.png -:Version: 7.1.1-dev +:Version: 7.1.1 :Web: http://openxcplatform.com :Documentation: http://vi-firmware.openxcplatform.com :Source: http://github.com/openxc/vi-firmware @@ -51,6 +51,8 @@ Releasing - Update the src/libs/openxc-message-format with ``git submodule update --remote`` +- Checkout next branch and make edits. + - Bump the version using `semantic versioning`_ in - ``CHANGELOG.mkd`` - ``README.rst`` diff --git a/docs/conf.py b/docs/conf.py index dcc0563b1..c8ac89d11 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -49,9 +49,9 @@ # built documents. # # The short X.Y version. -version = '7.1.1-dev' +version = '7.1.1' # The full version, including alpha/beta/rc tags. -release = '7.1.1-dev' +release = '7.1.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/index.rst b/docs/index.rst index 80f1f5667..cfc2466e1 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -4,7 +4,7 @@ OpenXC Vehicle Interface Firmware .. image:: /_static/logo.png -:Version: 7.1.1-dev +:Version: 7.1.1 :Web: http://openxcplatform.com :Documentation: http://vi-firmware.openxcplatform.com :Source: http://github.com/openxc/vi-firmware diff --git a/src/config.cpp b/src/config.cpp index 3eaa42700..2594a9743 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -88,7 +88,7 @@ openxc::telitHE910::TelitDevice telitDevice = { openxc::config::Configuration* openxc::config::getConfiguration() { static openxc::config::Configuration CONFIG = { messageSetIndex: 0, - version: "7.1.1-dev", + version: "7.1.1", payloadFormat: PayloadFormat::DEFAULT_OUTPUT_FORMAT, recurringObd2Requests: DEFAULT_RECURRING_OBD2_REQUESTS_STATUS, obd2BusAddress: DEFAULT_OBD2_BUS,