From owner-svn-ports-all@freebsd.org Mon Mar 26 14:33:12 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2609FF718CF; Mon, 26 Mar 2018 14:33:12 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFF988096D; Mon, 26 Mar 2018 14:33:11 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B76CF6361; Mon, 26 Mar 2018 14:33:11 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2QEXBrM036516; Mon, 26 Mar 2018 14:33:11 GMT (envelope-from lev@FreeBSD.org) Received: (from lev@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2QEXBp3036512; Mon, 26 Mar 2018 14:33:11 GMT (envelope-from lev@FreeBSD.org) Message-Id: <201803261433.w2QEXBp3036512@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lev set sender to lev@FreeBSD.org using -f From: "Lev A. Serebryakov" Date: Mon, 26 Mar 2018 14:33:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r465598 - in head/devel/msp430-debug-stack: . files X-SVN-Group: ports-head X-SVN-Commit-Author: lev X-SVN-Commit-Paths: in head/devel/msp430-debug-stack: . files X-SVN-Commit-Revision: 465598 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2018 14:33:12 -0000 Author: lev Date: Mon Mar 26 14:33:11 2018 New Revision: 465598 URL: https://svnweb.freebsd.org/changeset/ports/465598 Log: Fix patches. Modified: head/devel/msp430-debug-stack/Makefile head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_DLL430_OldApiV3.cpp head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerFet.cpp head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerMSP_FET430.cpp Modified: head/devel/msp430-debug-stack/Makefile ============================================================================== --- head/devel/msp430-debug-stack/Makefile Mon Mar 26 14:05:54 2018 (r465597) +++ head/devel/msp430-debug-stack/Makefile Mon Mar 26 14:33:11 2018 (r465598) @@ -2,7 +2,7 @@ PORTNAME= msp430-debug-stack PORTVERSION= 3.12.000.004 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://www.ti.com/lit/sw/slac460x/ \ http://www.ti.com/lit/ug/slau320ac/:doc1 \ @@ -25,7 +25,7 @@ USES= compiler:c++11-lib dos2unix gmake zip:infozip USE_LDCONFIG= yes WRKSRC= ${WRKDIR} -DOS2UNIX_REGEX= .*\.(cpp|h) +DOS2UNIX_REGEX= .*/Makefile|.*\.(cpp|h) MAKE_ARGS+= BOOST_DIR=${LOCALBASE} \ HIDAPI_DIR=${LOCALBASE} Modified: head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_DLL430_OldApiV3.cpp ============================================================================== --- head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_DLL430_OldApiV3.cpp Mon Mar 26 14:05:54 2018 (r465597) +++ head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_DLL430_OldApiV3.cpp Mon Mar 26 14:33:11 2018 (r465598) @@ -1,6 +1,6 @@ ---- DLL430_v3/src/DLL430_OldApiV3.cpp.orig 2017-12-05 18:38:46.037302000 +0300 -+++ DLL430_v3/src/DLL430_OldApiV3.cpp 2017-12-05 18:40:21.357777000 +0300 -@@ -191,7 +191,7 @@ void DLL430_OldApiV3::event(DebugEventTa +--- DLL430_v3/src/DLL430_OldApiV3.cpp.orig 2018-03-26 17:21:18.500487000 +0300 ++++ DLL430_v3/src/DLL430_OldApiV3.cpp 2018-03-26 17:22:50.850255000 +0300 +@@ -191,7 +191,7 @@ //With trace/variable watch enabled, give storage events on same trigger time to be reported if (trace_storage.trControl == TR_ENABLE) { @@ -9,7 +9,25 @@ } db_man->pausePolling(); } -@@ -1524,7 +1524,7 @@ bool DLL430_OldApiV3::Erase(int32_t type +@@ -330,7 +330,7 @@ + catch (const std::runtime_error& e) + { + #ifndef NDEBUG +- ofstream("xml_error.log") << e.what() << endl; ++ std::ofstream("xml_error.log") << e.what() << endl; + #endif + log(LogTarget::ERR, DEVICE_DB_ERR, e.what()); + return false; +@@ -356,7 +356,7 @@ + catch (const std::runtime_error& e) + { + #ifndef NDEBUG +- ofstream("xml_error.log") << e.what() << endl; ++ std::ofstream("xml_error.log") << e.what() << endl; + #endif + log(LogTarget::ERR, DEVICE_DB_ERR, e.what()); + return false; +@@ -1569,7 +1569,7 @@ log(LogTarget::ERR, ERASE_ERR, ""); return false; } @@ -18,7 +36,7 @@ return true; } -@@ -1538,7 +1538,7 @@ bool DLL430_OldApiV3::Erase(int32_t type +@@ -1583,7 +1583,7 @@ } if (singleDevice) { @@ -27,7 +45,7 @@ return true; } } -@@ -1923,7 +1923,7 @@ bool DLL430_OldApiV3::Reset(int32_t meth +@@ -1987,7 +1987,7 @@ if (devArchitecture != MSP432_M4) { db_man->resumePolling(); @@ -36,16 +54,25 @@ db_man->pausePolling(); } if (!State(&state, true, &pCPUCycles)) -@@ -3781,7 +3781,7 @@ bool DLL430_OldApiV3::FET_FwUpdate( +@@ -3848,7 +3848,7 @@ + int timeout = 50; + while (timeout-- && !this->Initialize(&port[0], &version)) + { +- this_thread::sleep_for(chrono::seconds(1)); ++ this_thread::sleep_for(std::chrono::seconds(1)); + } + if (!handle) + { +@@ -3873,7 +3873,7 @@ + #endif + UpdateLog.append("\n---------------------Firmware upate end--------------------------\n"); - if (!handle) - { -- this_thread::sleep_for(chrono::seconds(3)); -+ this_thread::sleep_for(std::chrono::seconds(3)); - this->Initialize(&port[0], &version); +- ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog; ++ std::ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog; + } + } } - -@@ -4179,7 +4179,7 @@ bool DLL430_OldApiV3::writeToExternalMem +@@ -4272,7 +4272,7 @@ Run(FREE_RUN, true); // start execution of loader code Modified: head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerFet.cpp ============================================================================== --- head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerFet.cpp Mon Mar 26 14:05:54 2018 (r465597) +++ head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerFet.cpp Mon Mar 26 14:33:11 2018 (r465598) @@ -1,7 +1,15 @@ ---- DLL430_v3/src/TI/DLL430/UpdateManagerFet.cpp.orig 2017-12-05 18:47:14.471473000 +0300 -+++ DLL430_v3/src/TI/DLL430/UpdateManagerFet.cpp 2017-12-05 18:47:14.610002000 +0300 -@@ -128,7 +128,7 @@ bool UpdateManagerFet::updateCore(Memory - intCallback(BL_DATA_BLOCK_PROGRAMMED, (uint32_t)( 100-(requiredCoreUpdates)*requiredCoreUpdates), 0); +--- DLL430_v3/src/TI/DLL430/UpdateManagerFet.cpp.orig 2018-03-26 17:23:13.431436000 +0300 ++++ DLL430_v3/src/TI/DLL430/UpdateManagerFet.cpp 2018-03-26 17:25:33.815661000 +0300 +@@ -68,6 +68,7 @@ + + #include "../../../../Bios/include/MSP_FetDcdc.h" + #include "../../../../Bios/include/MSP_FetHal.h" ++#include "../../../../Bios/include/MSP_FetFpgaHal.h" + #include "../../../../Bios/include/MSP_FetHil.h" + #include "../../../../Bios/include/MSP_FetCore.h" + #include "../../../../Bios/include/MSP_FetComChannel.h" +@@ -131,7 +132,7 @@ + intCallback(BL_DATA_BLOCK_PROGRAMMED, (uint32_t)(100 - (requiredCoreUpdates)*percentCore), 0); } - this_thread::sleep_for(chrono::seconds(4)); @@ -9,7 +17,7 @@ fetHandle->shutdown(); -@@ -141,7 +141,7 @@ bool UpdateManagerFet::updateCore(Memory +@@ -144,7 +145,7 @@ uint32_t countedHidDevices = 0, timeout = 50; do { @@ -18,7 +26,7 @@ countedHidDevices = HidUpdateManager::countHidDevices(currentPid); if (intCallback) -@@ -635,7 +635,7 @@ bool UpdateManagerFet::updateFpga() +@@ -648,7 +649,7 @@ // Start the FPGA update this->upInit(3); @@ -27,16 +35,25 @@ // Restore the normal HAL module if (returnValue && !updateHal()) -@@ -956,7 +956,7 @@ bool UpdateManagerFet::firmWareUpdate(co +@@ -839,7 +840,7 @@ + #endif + UpdateLog.append("\n---------------------Firmware upate end--------------------------\n"); +- ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog; ++ std::ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog; + } + + return retval; +@@ -1020,7 +1021,7 @@ + #endif UpdateLog.append("\n---------------------Firmware upate end--------------------------\n"); - ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog; + std::ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog; - #endif } return returnValue; -@@ -1063,7 +1063,7 @@ bool UpdateManagerFet::updateFirmware(co + } +@@ -1134,7 +1135,7 @@ this->upInit(0); // give the firmware time to execute initialisation Modified: head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerMSP_FET430.cpp ============================================================================== --- head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerMSP_FET430.cpp Mon Mar 26 14:05:54 2018 (r465597) +++ head/devel/msp430-debug-stack/files/patch-DLL430_v3_src_TI_DLL430_UpdateManagerMSP_FET430.cpp Mon Mar 26 14:33:11 2018 (r465598) @@ -1,29 +1,29 @@ ---- DLL430_v3/src/TI/DLL430/UpdateManagerMSP_FET430.cpp.orig 2017-12-05 18:38:46.041601000 +0300 -+++ DLL430_v3/src/TI/DLL430/UpdateManagerMSP_FET430.cpp 2017-12-05 18:41:45.548342000 +0300 -@@ -212,7 +212,7 @@ bool UpdateManagerMSP_FET430::firmWareUp - control->sendData(data_55); - control->clearResponse(); +--- DLL430_v3/src/TI/DLL430/UpdateManagerMSP_FET430.cpp.orig 2018-03-26 17:14:12.210044000 +0300 ++++ DLL430_v3/src/TI/DLL430/UpdateManagerMSP_FET430.cpp 2018-03-26 17:15:34.167641000 +0300 +@@ -226,7 +226,7 @@ -- this_thread::sleep_for(chrono::seconds(8)); -+ this_thread::sleep_for(std::chrono::seconds(8)); - } - - MemoryContent firmware; -@@ -282,7 +282,7 @@ bool UpdateManagerMSP_FET430::firmWareUp + for (int i = 0; i < 8; ++i) + { +- this_thread::sleep_for(chrono::seconds(1)); ++ this_thread::sleep_for(std::chrono::seconds(1)); + if (callback) + { + --requiredUpdates; +@@ -313,7 +313,7 @@ const bool initFailed = !this->fetHandle->send(initCmd); // give the firmware time to execute initialisation - this_thread::sleep_for(chrono::seconds(1)); + this_thread::sleep_for(std::chrono::seconds(1)); - - //Only an error if no user specified file is used (ie. init will fail for a downgrade) - if (initFailed && !fname) -@@ -300,7 +300,7 @@ bool UpdateManagerMSP_FET430::firmWareUp - cmd.elements.emplace_back(el); - + if (callback) + { + --requiredUpdates; +@@ -338,7 +338,7 @@ fetHandle->send(cmd); -- this_thread::sleep_for(chrono::seconds(2)); -+ this_thread::sleep_for(std::chrono::seconds(2)); - - if (callback) - callback(BL_UPDATE_DONE, 0, 0); + for (int i = 0; i < 2; ++i) + { +- this_thread::sleep_for(chrono::seconds(1)); ++ this_thread::sleep_for(std::chrono::seconds(1)); + if (callback) + { + --requiredUpdates;