Improve CMSIS selection for SAMD21 boards

This commit is contained in:
Valeriy Koval
2016-07-11 19:26:07 +03:00
parent 3984f80bae
commit 03b0b61aa1

View File

@ -218,7 +218,8 @@ if env.subst("${PLATFORMFW_DIR}")[-3:] == "sam":
join("$BUILD_DIR", "FrameworkCMSISInc"),
join(
"$PLATFORMFW_DIR", "system",
"CMSIS%s" % ("_ORG" if "_org" in BOARD_CORELIBDIRNAME else ""),
"CMSIS%s" % (
"_ORG" if BOARD_CORELIBDIRNAME.endswith("_org") else ""),
"CMSIS", "Include"
)
)
@ -226,7 +227,8 @@ if env.subst("${PLATFORMFW_DIR}")[-3:] == "sam":
join("$BUILD_DIR", "FrameworkDeviceInc"),
join(
"$PLATFORMFW_DIR", "system",
"CMSIS%s" % ("_ORG" if "_org" in BOARD_CORELIBDIRNAME else ""),
"CMSIS%s" % (
"_ORG" if BOARD_CORELIBDIRNAME.endswith("_org") else ""),
"Device", "ATMEL"
)
)