Skip to content

Commit

Permalink
Warn about missing native support for the library // Resolve #358
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Dec 7, 2015
1 parent 97ee8d5 commit a483ecd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion platformio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = (2, 5, "0.dev2")
VERSION = (2, 5, "0.dev3")
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio"
Expand Down
10 changes: 7 additions & 3 deletions platformio/builder/scripts/frameworks/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@
http://mbed.org/
"""

from __future__ import print_function

import re
import sys
import xml.etree.ElementTree as ElementTree
from binascii import crc32
from os import getenv, walk
from os.path import basename, isfile, join, normpath

from SCons.Script import DefaultEnvironment, Exit
from SCons.Script import DefaultEnvironment

env = DefaultEnvironment()

Expand Down Expand Up @@ -119,8 +122,9 @@ def add_mbedlib(libname, libar):
lib_dir = join(env.subst("$PLATFORMFW_DIR"), "libs", libname)
if not isfile(join(lib_dir, "TARGET_%s" % variant,
"TOOLCHAIN_GCC_ARM", "lib%s.a" % libar)):
Exit("Error: %s board doesn't support %s library!" %
(env.get("BOARD"), libname))
print (
"Warning: %s board doesn't have native support for '%s' library!" %
(env.get("BOARD"), libname), file=sys.stderr)

env.Append(
LIBPATH=[
Expand Down

0 comments on commit a483ecd

Please sign in to comment.