Skip to content

Commit

Permalink
Merge pull request #5489 from theotherjimmy/correct-pack-syntax
Browse files Browse the repository at this point in the history
Correct pack_* members to refer to PACK files
  • Loading branch information
0xc0170 committed Dec 12, 2017
2 parents 02beec7 + 0c5ba43 commit 1137b41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/export/cmsis/__init__.py
Expand Up @@ -2,13 +2,13 @@
from os.path import sep, join, exists
from itertools import groupby
from xml.etree.ElementTree import Element, tostring
import ntpath
import re
import json

from tools.arm_pack_manager import Cache
from tools.targets import TARGET_MAP
from tools.export.exporters import Exporter, TargetNotSupportedException
from tools.utils import split_path

class fileCMSIS():
"""CMSIS file class.
Expand Down Expand Up @@ -37,7 +37,8 @@ def __init__(self, target):
if not target_info:
raise TargetNotSupportedException("Target not supported in CMSIS pack")
self.url = target_info['pdsc_file']
self.pack_url, self.pack_id = ntpath.split(self.url)
self.pdsc_url, self.pdsc_id, _ = split_path(self.url)
self.pack_url, self.pack_id, _ = split_path(target_info['pack_file'])
self.dname = target_info["_cpu_name"]
self.core = target_info["_core"]
self.dfpu = target_info['processor']['fpu']
Expand Down

0 comments on commit 1137b41

Please sign in to comment.