ubox could compile.
This commit is contained in:
@@ -12,10 +12,10 @@ UBOX_INSTALL_STAGING = YES
|
|||||||
|
|
||||||
UBOX_DEPENDENCIES = libubox ubus
|
UBOX_DEPENDENCIES = libubox ubus
|
||||||
|
|
||||||
CONF = AWOXCVS2=$(TOPDIR)/../../../
|
UBOX_CONF = SRC_DIR=$(TOPDIR)/../..
|
||||||
|
|
||||||
UBOX_CONF_ENV = $(CONF)
|
UBOX_CONF_ENV = $(UBOX_CONF)
|
||||||
UBOX_MAKE_ENV = $(CONF)
|
UBOX_MAKE_ENV = $(UBOX_CONF)
|
||||||
UBOX_CONF_OPTS += -DMODULE_PATH=$(TOPDIR)/../../cmake-modules -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
|
UBOX_CONF_OPTS += -DMODULE_PATH=$(TOPDIR)/../../bsp/cmake-modules -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
|
||||||
|
|
||||||
$(eval $(cmake-package))
|
$(eval $(cmake-package))
|
||||||
|
|||||||
@@ -8,26 +8,23 @@ set (CMAKE_MODULE_PATH "${MODULE_PATH}")
|
|||||||
|
|
||||||
set(DISABLE_TARGET_OPTIMIZATION ON)
|
set(DISABLE_TARGET_OPTIMIZATION ON)
|
||||||
|
|
||||||
include (aw)
|
include (br)
|
||||||
|
|
||||||
# Logd
|
# Logd
|
||||||
|
|
||||||
add_executable (logd
|
add_executable (logd
|
||||||
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/log/logd.c
|
$ENV{SRC_DIR}/src/3P/ubox/log/logd.c
|
||||||
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/log/syslog.c)
|
$ENV{SRC_DIR}/src/3P/ubox/log/syslog.c)
|
||||||
target_link_libraries (logd ubox ubus)
|
target_link_libraries (logd ubox ubus)
|
||||||
install (TARGETS logd RUNTIME DESTINATION sbin)
|
install (TARGETS logd RUNTIME DESTINATION sbin)
|
||||||
|
|
||||||
# Logread
|
# Logread
|
||||||
|
|
||||||
add_executable (logread
|
add_executable (logread
|
||||||
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/log/logread.c)
|
$ENV{SRC_DIR}/src/3P/ubox/log/logread.c)
|
||||||
target_link_libraries (logread ubox ubus json-c blobmsg_json)
|
target_link_libraries (logread ubox ubus json-c blobmsg_json)
|
||||||
install (TARGETS logread RUNTIME DESTINATION sbin)
|
install (TARGETS logread RUNTIME DESTINATION sbin)
|
||||||
|
|
||||||
# kmodloader
|
# kmodloader
|
||||||
|
|
||||||
add_executable (kmodloader
|
add_executable (kmodloader
|
||||||
$ENV{AWOXCVS}/AwoxAudio/Products/External/ubox/kmodloader.c)
|
$ENV{SRC_DIR}/src/3P/ubox/kmodloader.c)
|
||||||
target_link_libraries (kmodloader ubox)
|
target_link_libraries (kmodloader ubox)
|
||||||
install (TARGETS kmodloader RUNTIME DESTINATION ../sbin)
|
install (TARGETS kmodloader RUNTIME DESTINATION ../sbin)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ target_include_directories (ubus PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|||||||
|
|
||||||
install (TARGETS ubus LIBRARY DESTINATION local/lib)
|
install (TARGETS ubus LIBRARY DESTINATION local/lib)
|
||||||
|
|
||||||
file (GLOB ubus_headers $ENV{AWOXCVS}/AwoxAudio/Libs/External/ubus/*.h)
|
file (GLOB ubus_headers $ENV{SRC_DIR}/src/3P/ubus/*.h)
|
||||||
install (FILES ${ubus_headers} DESTINATION include/ubus)
|
install (FILES ${ubus_headers} DESTINATION include/ubus)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user