Integration of svd/cmsis tools
Change-Id: I260a209ae0e91e2299d65ab277c20d3a0de6d918
This commit is contained in:
1 parent
b64f9ba0b5
commit
7f8392601a
9 files changed
+149726
-13
No files matched your search
@@ -0,0 +1,23 @@
|
||||
From 1e8a2ee2730867c509209f6f8e3cd356c9729d4e Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Philippe ROMAIN <jean-philippe.romain@st.com>
|
||||
Date: Mon, 28 Oct 2019 15:55:53 +0100
|
||||
Subject: [PATCH 1/2] SDK: Add relative path for cmsis-svd
|
||||
|
||||
|
||||
diff --git a/gdb-svd.py b/gdb-svd.py
|
||||
index 0586755..9df9ac8 100644
|
||||
--- a/gdb-svd.py
|
||||
+++ b/gdb-svd.py
|
||||
@@ -17,6 +17,9 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with svd-tools. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
+import os
|
||||
+sys.path.insert(0, os.path.dirname(__file__) + "/../cmsis-svd")
|
||||
+
|
||||
import gdb
|
||||
from terminaltables import AsciiTable
|
||||
from cmsis_svd.parser import SVDParser
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
SUMMARY = "Python script for using CMSIS SVD parser with GDB"
|
||||
|
||||
LICENSE = "GPLv2"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
inherit pkgconfig autotools-brokensep gettext
|
||||
|
||||
SRC_URI = "git://github.com/1udo6arre/svd-tools.git;protocol=https"
|
||||
SRCREV = "5b7b813481877a3b6fb8f96b4f0d413b47fb987a"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
RDEPENDS_${PN} += "cmsis-svd"
|
||||
RRECOMMENDS_${PN}_append_class-nativesdk = " nativesdk-cmsis-svd "
|
||||
# For python dependencies
|
||||
RDEPENDS_${PN} += "python3-terminaltables"
|
||||
RRECOMMENDS_${PN}_append_class-nativesdk = " nativesdk-python3-terminaltables "
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
do_compile[noexec] = "1"
|
||||
|
||||
INSTALL_PATH= "${datadir}/svd-tools"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${INSTALL_PATH}
|
||||
install -m 0644 ${S}/LICENSE ${D}${INSTALL_PATH}
|
||||
install -m 0755 ${S}/gdb-svd.py ${D}${INSTALL_PATH}
|
||||
}
|
||||
|
||||
FILES_${PN} = "${INSTALL_PATH}/*"
|
||||
@@ -0,0 +1,3 @@
|
||||
SRC_URI_append_stm32mpcommon = " file://0001-SDK-Add-relative-path-for-cmsis-svd.patch"
|
||||
# Add the same for nativesdk
|
||||
SRC_URI_append_class-nativesdk = " file://0001-SDK-Add-relative-path-for-cmsis-svd.patch"
|
||||
Reference in new issue
Block a user