forked from platformio/platformio-core
Warn about missing native support for the library // Resolve #358
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
VERSION = (2, 5, "0.dev2")
|
VERSION = (2, 5, "0.dev3")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -26,13 +26,16 @@ the mbed Developer Community.
|
|||||||
http://mbed.org/
|
http://mbed.org/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
import xml.etree.ElementTree as ElementTree
|
import xml.etree.ElementTree as ElementTree
|
||||||
from binascii import crc32
|
from binascii import crc32
|
||||||
from os import getenv, walk
|
from os import getenv, walk
|
||||||
from os.path import basename, isfile, join, normpath
|
from os.path import basename, isfile, join, normpath
|
||||||
|
|
||||||
from SCons.Script import DefaultEnvironment, Exit
|
from SCons.Script import DefaultEnvironment
|
||||||
|
|
||||||
env = DefaultEnvironment()
|
env = DefaultEnvironment()
|
||||||
|
|
||||||
@ -119,8 +122,9 @@ def add_mbedlib(libname, libar):
|
|||||||
lib_dir = join(env.subst("$PLATFORMFW_DIR"), "libs", libname)
|
lib_dir = join(env.subst("$PLATFORMFW_DIR"), "libs", libname)
|
||||||
if not isfile(join(lib_dir, "TARGET_%s" % variant,
|
if not isfile(join(lib_dir, "TARGET_%s" % variant,
|
||||||
"TOOLCHAIN_GCC_ARM", "lib%s.a" % libar)):
|
"TOOLCHAIN_GCC_ARM", "lib%s.a" % libar)):
|
||||||
Exit("Error: %s board doesn't support %s library!" %
|
print (
|
||||||
(env.get("BOARD"), libname))
|
"Warning: %s board doesn't have native support for '%s' library!" %
|
||||||
|
(env.get("BOARD"), libname), file=sys.stderr)
|
||||||
|
|
||||||
env.Append(
|
env.Append(
|
||||||
LIBPATH=[
|
LIBPATH=[
|
||||||
|
Reference in New Issue
Block a user