FAT library will be now built to .a / .ar separate folder. New switch -f / --fat is introduced for build.py script

pull/416/head
Przemek Wirkus 2014-07-28 14:04:26 +01:00
parent 12c7ba5ee2
commit 68b2f4648f
4 changed files with 18 additions and 4 deletions

View File

@ -55,6 +55,8 @@ if __name__ == '__main__':
default=False, help="Compile the USB Device library")
parser.add_option("-d", "--dsp", action="store_true", dest="dsp",
default=False, help="Compile the DSP library")
parser.add_option("-f", "--fat", action="store_true", dest="fat",
default=False, help="Compile FS ad SD card file system library")
parser.add_option("-b", "--ublox", action="store_true", dest="ublox",
default=False, help="Compile the u-blox library")
parser.add_option("-D", "", action="append", dest="macros",
@ -110,6 +112,8 @@ if __name__ == '__main__':
libraries.append("usb_host")
if options.dsp:
libraries.extend(["cmsis_dsp", "dsp"])
if options.fat:
libraries.extend(["fat"])
if options.ublox:
libraries.extend(["rtx", "rtos", "usb_host", "ublox"])

View File

@ -64,6 +64,14 @@ LIBRARIES = [
"dependencies": [MBED_LIBRARIES, DSP_CMSIS],
},
# File system libraries
{
"id": "fat",
"source_dir": [FAT_FS, SD_FS],
"build_dir": FS_LIBRARY,
"dependencies": [MBED_LIBRARIES]
},
# Network libraries
{
"id": "eth",
@ -79,6 +87,7 @@ LIBRARIES = [
"dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, USB_HOST_LIBRARIES],
},
# Unit Testing library
{
"id": "cpputest",
"source_dir": [CPPUTEST_SRC, CPPUTEST_PLATFORM_SRC, CPPUTEST_TESTRUNNER_SCR],

View File

@ -72,6 +72,7 @@ UBLOX_LIBRARY = join(NET_LIBRARIES, "UbloxUSBModem")
FS_PATH = join(LIB_DIR, "fs")
FAT_FS = join(FS_PATH, "fat")
SD_FS = join(FS_PATH, "sd")
FS_LIBRARY = join(BUILD_DIR, "fat")
# DSP
DSP = join(LIB_DIR, "dsp")

View File

@ -156,7 +156,7 @@ TESTS = [
{
"id": "MBED_A12", "description": "SD File System",
"source_dir": join(TEST_DIR, "mbed", "sd"),
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, SD_FS, FAT_FS],
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
"automated": True,
"duration": 15,
"peripherals": ["SD"]
@ -400,7 +400,7 @@ TESTS = [
{
"id": "MBED_19", "description": "SD FS Directory",
"source_dir": join(TEST_DIR, "mbed", "dir_sd"),
"dependencies": [MBED_LIBRARIES, SD_FS, FAT_FS],
"dependencies": [MBED_LIBRARIES, FS_LIBRARY],
"peripherals": ["SD"]
},
{
@ -596,7 +596,7 @@ TESTS = [
{
"id": "RTOS_9", "description": "SD File write-read",
"source_dir": join(TEST_DIR, "rtos", "mbed", "file"),
"dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB, SD_FS, FAT_FS],
"dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
"automated": True,
"peripherals": ["SD"],
"mcu": ["LPC1768", "LPC11U24", "LPC812", "KL25Z", "KL05Z", "K64F", "KL46Z"],
@ -822,7 +822,7 @@ TESTS = [
{
"id": "EXAMPLE_2", "description": "FS + RTOS",
"source_dir": join(TEST_DIR, "mbed", "fs"),
"dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB, SD_FS, FAT_FS],
"dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
},
# CPPUTEST Library provides Unit testing Framework