usb: Skeleton platform code for FTDI FT4222 USB to i2c bridge
Signed-off-by: Henry Bruce <henry.bruce@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
22a930e39e
commit
8f48df0533
@@ -35,6 +35,8 @@ set (mraa_LIB_ARM_SRCS_NOAUTO
|
||||
${PROJECT_SOURCE_DIR}/src/arm/banana.c
|
||||
)
|
||||
|
||||
set (mraa_LIBS ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
if (X86PLAT)
|
||||
add_subdirectory(x86)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DX86PLAT=1")
|
||||
@@ -45,6 +47,13 @@ if (ARMPLAT)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DARMPLAT=1")
|
||||
endif()
|
||||
|
||||
if (USBPLAT)
|
||||
add_subdirectory(usb)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSBPLAT=1")
|
||||
set (mraa_LIBS ${mraa_LIBS} ft4222)
|
||||
endif()
|
||||
|
||||
|
||||
set (mraa_LIB_SRCS
|
||||
${mraa_LIB_PLAT_SRCS_NOAUTO}
|
||||
# autogenerated version file
|
||||
@@ -57,7 +66,9 @@ set (mraa_LIB_GLOB_HEADERS
|
||||
)
|
||||
|
||||
add_library (mraa SHARED ${mraa_LIB_SRCS})
|
||||
target_link_libraries (mraa ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
|
||||
target_link_libraries (mraa ${mraa_LIBS})
|
||||
|
||||
set_target_properties(
|
||||
mraa
|
||||
|
||||
Reference in New Issue
Block a user