Warn about missing native support for the library // Resolve #358

This commit is contained in:
Ivan Kravets
2015-12-07 14:52:19 +02:00
parent 97ee8d55ce
commit a483ecdfdb
2 changed files with 8 additions and 4 deletions

View File

@ -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"

View File

@ -26,13 +26,16 @@ the mbed Developer Community.
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()
@ -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=[