Skip to content

Commit

Permalink
Set correct Dname to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgueni Driouk committed Mar 9, 2017
1 parent 360bea5 commit fa484cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion com.arm.cmsis.pack/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: CMSIS Pack
Bundle-SymbolicName: com.arm.cmsis.pack;singleton:=true
Bundle-Version: 2.1.0.qualifier
Bundle-Version: 2.1.2.qualifier
Bundle-Activator: com.arm.cmsis.pack.CpPlugIn
Bundle-Vendor: ARM
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Expand Down
8 changes: 8 additions & 0 deletions com.arm.cmsis.pack/src/com/arm/cmsis/pack/rte/RteModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,14 @@ protected void updateComponentFilter() {
fComponentFilter = new CpConditionContext();
if(fDeviceInfo != null) {
fComponentFilter.setAttributes(fDeviceInfo.attributes().getAttributesAsMap());
// Set proper Dname attribute for condition evaluation
String deviceName = fDeviceInfo.getDeviceName();
int i = deviceName.indexOf(':');
if (i >= 0) {
deviceName = deviceName.substring(0, i);
}

fComponentFilter.setAttribute(CmsisConstants.DNAME, deviceName);
fComponentFilter.removeAttribute(CmsisConstants.URL); // this attribute is not needed for filtering
}
if(fToolchainInfo != null) {
Expand Down

0 comments on commit fa484cd

Please sign in to comment.