mirror of https://github.com/ARMmbed/mbed-os.git
added option to build rpc library. closes #1426
parent
77e231624e
commit
58d0861a0e
|
@ -50,6 +50,12 @@ if __name__ == '__main__':
|
||||||
default=False,
|
default=False,
|
||||||
help="Compile the rtos")
|
help="Compile the rtos")
|
||||||
|
|
||||||
|
parser.add_option("--rpc",
|
||||||
|
action="store_true",
|
||||||
|
dest="rpc",
|
||||||
|
default=False,
|
||||||
|
help="Compile the rpc library")
|
||||||
|
|
||||||
parser.add_option("-e", "--eth",
|
parser.add_option("-e", "--eth",
|
||||||
action="store_true", dest="eth",
|
action="store_true", dest="eth",
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -169,6 +175,8 @@ if __name__ == '__main__':
|
||||||
# Additional Libraries
|
# Additional Libraries
|
||||||
if options.rtos:
|
if options.rtos:
|
||||||
libraries.extend(["rtx", "rtos"])
|
libraries.extend(["rtx", "rtos"])
|
||||||
|
if options.rpc:
|
||||||
|
libraries.extend(["rpc"])
|
||||||
if options.eth:
|
if options.eth:
|
||||||
libraries.append("eth")
|
libraries.append("eth")
|
||||||
if options.usb:
|
if options.usb:
|
||||||
|
|
|
@ -34,6 +34,14 @@ LIBRARIES = [
|
||||||
"dependencies": [MBED_LIBRARIES, MBED_RTX],
|
"dependencies": [MBED_LIBRARIES, MBED_RTX],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# RPC
|
||||||
|
{
|
||||||
|
"id": "rpc",
|
||||||
|
"source_dir": MBED_RPC,
|
||||||
|
"build_dir": RPC_LIBRARY,
|
||||||
|
"dependencies": [MBED_LIBRARIES],
|
||||||
|
},
|
||||||
|
|
||||||
# USB Device libraries
|
# USB Device libraries
|
||||||
{
|
{
|
||||||
"id": "usb",
|
"id": "usb",
|
||||||
|
|
|
@ -30,6 +30,7 @@ sys.path.insert(0, ROOT)
|
||||||
from workspace_tools.utils import args_error
|
from workspace_tools.utils import args_error
|
||||||
from workspace_tools.paths import BUILD_DIR
|
from workspace_tools.paths import BUILD_DIR
|
||||||
from workspace_tools.paths import RTOS_LIBRARIES
|
from workspace_tools.paths import RTOS_LIBRARIES
|
||||||
|
from workspace_tools.paths import RPC_LIBRARY
|
||||||
from workspace_tools.paths import ETH_LIBRARY
|
from workspace_tools.paths import ETH_LIBRARY
|
||||||
from workspace_tools.paths import USB_HOST_LIBRARIES, USB_LIBRARIES
|
from workspace_tools.paths import USB_HOST_LIBRARIES, USB_LIBRARIES
|
||||||
from workspace_tools.paths import DSP_LIBRARIES
|
from workspace_tools.paths import DSP_LIBRARIES
|
||||||
|
@ -113,6 +114,10 @@ if __name__ == '__main__':
|
||||||
action="store_true", dest="rtos",
|
action="store_true", dest="rtos",
|
||||||
default=False, help="Link with RTOS library")
|
default=False, help="Link with RTOS library")
|
||||||
|
|
||||||
|
parser.add_option("--rpc",
|
||||||
|
action="store_true", dest="rpc",
|
||||||
|
default=False, help="Link with RPC library")
|
||||||
|
|
||||||
parser.add_option("--eth",
|
parser.add_option("--eth",
|
||||||
action="store_true", dest="eth",
|
action="store_true", dest="eth",
|
||||||
default=False,
|
default=False,
|
||||||
|
@ -218,6 +223,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# Linking with extra libraries
|
# Linking with extra libraries
|
||||||
if options.rtos: test.dependencies.append(RTOS_LIBRARIES)
|
if options.rtos: test.dependencies.append(RTOS_LIBRARIES)
|
||||||
|
if options.rpc: test.dependencies.append(RPC_LIBRARY)
|
||||||
if options.eth: test.dependencies.append(ETH_LIBRARY)
|
if options.eth: test.dependencies.append(ETH_LIBRARY)
|
||||||
if options.usb_host: test.dependencies.append(USB_HOST_LIBRARIES)
|
if options.usb_host: test.dependencies.append(USB_HOST_LIBRARIES)
|
||||||
if options.usb: test.dependencies.append(USB_LIBRARIES)
|
if options.usb: test.dependencies.append(USB_LIBRARIES)
|
||||||
|
|
|
@ -47,6 +47,8 @@ HOST_TESTS = join(ROOT, "workspace_tools", "host_tests")
|
||||||
# mbed RPC
|
# mbed RPC
|
||||||
MBED_RPC = join(LIB_DIR, "rpc")
|
MBED_RPC = join(LIB_DIR, "rpc")
|
||||||
|
|
||||||
|
RPC_LIBRARY = join(BUILD_DIR, "rpc")
|
||||||
|
|
||||||
# mbed RTOS
|
# mbed RTOS
|
||||||
RTOS = join(LIB_DIR, "rtos")
|
RTOS = join(LIB_DIR, "rtos")
|
||||||
MBED_RTX = join(RTOS, "rtx")
|
MBED_RTX = join(RTOS, "rtx")
|
||||||
|
|
Loading…
Reference in New Issue