-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,027 changed files
with
357,101 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
!*.so* | ||
!*.a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
set(middleware_src_path "${CMAKE_CURRENT_SOURCE_DIR}/sophgo-middleware") | ||
|
||
# middleware | ||
set(middleware_include_dir . | ||
${middleware_src_path}/v2/component/panel/sg200x | ||
${middleware_src_path}/v2/include | ||
${middleware_src_path}/v2/include/isp/sg200x | ||
${middleware_src_path}/v2/sample/common | ||
${middleware_src_path}/v2/uapi | ||
${middleware_src_path}/v2/3rdparty/inih | ||
${middleware_src_path}/v2/modules/ive/include/ | ||
) | ||
list(APPEND ADD_INCLUDE ${middleware_include_dir}) | ||
set_property(SOURCE ${middleware_include_dir} PROPERTY GENERATED 1) | ||
|
||
append_srcs_dir(middleware_src_dir ${middleware_src_path}/v2/sample/common | ||
${middleware_src_path}/v2/component/isp/sensor/cv181x/gcore_gc4653 | ||
${middleware_src_path}/v2/component/isp/sensor/sg200x/sms_sc035gs | ||
${middleware_src_path}/v2/component/isp/sensor/sg200x/ov_ov2685 | ||
) | ||
list(APPEND ADD_SRCS ${middleware_src_dir}) | ||
set_property(SOURCE ${middleware_src_dir} PROPERTY GENERATED 1) | ||
|
||
set(mmf_lib_dir ${middleware_src_path}/v2/lib) | ||
set(middleware_dynamic_lib_file ${mmf_lib_dir}/libcvi_ive.so | ||
${mmf_lib_dir}/libcvi_bin.so | ||
${mmf_lib_dir}/libaaccomm2.so | ||
${mmf_lib_dir}/libaacdec2.so | ||
${mmf_lib_dir}/libaacenc2.so | ||
${mmf_lib_dir}/libaacsbrdec2.so | ||
${mmf_lib_dir}/libaacsbrenc2.so | ||
${mmf_lib_dir}/libae.so | ||
${mmf_lib_dir}/libaf.so | ||
${mmf_lib_dir}/libawb.so | ||
${mmf_lib_dir}/libcvi_audio.so | ||
${mmf_lib_dir}/libcvi_bin_isp.so | ||
${mmf_lib_dir}/libcvi_bin.so | ||
${mmf_lib_dir}/libcvi_ispd2.so | ||
${mmf_lib_dir}/libcvi_RES1.so | ||
${mmf_lib_dir}/libcvi_ssp.so | ||
${mmf_lib_dir}/libcvi_VoiceEngine.so | ||
${mmf_lib_dir}/libcvi_vqe.so | ||
${mmf_lib_dir}/libdnvqe.so | ||
${mmf_lib_dir}/libisp_algo.so | ||
${mmf_lib_dir}/libisp.so | ||
${mmf_lib_dir}/libmipi_tx.so | ||
${mmf_lib_dir}/libmisc.so | ||
${mmf_lib_dir}/libosdc.so | ||
${mmf_lib_dir}/libraw_dump.so | ||
${mmf_lib_dir}/libsys.so | ||
${mmf_lib_dir}/libvdec.so | ||
${mmf_lib_dir}/libvenc.so | ||
${mmf_lib_dir}/libvpu.so | ||
${mmf_lib_dir}/libjson-c.so.5 | ||
${mmf_lib_dir}/libtinyalsa.so | ||
${mmf_lib_dir}/3rd/libcli.so | ||
${mmf_lib_dir}/3rd/libini.so) | ||
list(APPEND ADD_DYNAMIC_LIB ${middleware_dynamic_lib_file}) | ||
set_property(SOURCE ${middleware_dynamic_lib_file} PROPERTY GENERATED 1) | ||
|
||
list(APPEND ADD_DEFINITIONS_PRIVATE -DSENSOR_GCORE_GC4653 | ||
-DSENSOR0_TYPE=SONY_IMX327_MIPI_2M_30FPS_12BIT | ||
-DSENSOR1_TYPE=SONY_IMX327_MIPI_2M_30FPS_12BIT) | ||
|
||
list(APPEND ADD_DEFINITIONS_PRIVATE -DSENSOR_SMS_SC035GS | ||
-DSENSOR2_TYPE=SMS_SC035GS_MIPI_480P_120FPS_12BIT) | ||
|
||
list(APPEND ADD_DEFINITIONS_PRIVATE -DSENSOR_OV_OV2685) | ||
register_component(DYNAMIC) |
Empty file.
13 changes: 13 additions & 0 deletions
13
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
all: | ||
@echo "#################################################" | ||
@echo "# #" | ||
@echo "# Compiling '3rdparty libs' Configs as below #" | ||
@echo "# #" | ||
@echo "#################################################" | ||
@for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ | ||
do cd `dirname $$x`; if [ $$? ]; then make || exit 1; cd -; fi; done | ||
|
||
clean: | ||
@for x in `find ./ -maxdepth 2 -mindepth 2 -name "Makefile" `; \ | ||
do cd `dirname $$x`; if [ $$? ]; then make clean; cd -; fi; done |
19 changes: 19 additions & 0 deletions
19
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SHELL = /bin/bash | ||
ifeq ($(PARAM_FILE), ) | ||
PARAM_FILE:=../../Makefile.param | ||
include $(PARAM_FILE) | ||
endif | ||
|
||
|
||
PREBUILT_LIB = lib_$(SDK_VER) | ||
|
||
all : | ||
@rm -rf lib | ||
@ln -s $(PREBUILT_LIB) lib | ||
@cp -a include/* $(MW_INC) | ||
@cp -a lib/* $(MW_3RD_LIB) | ||
|
||
clean : | ||
@rm -rf lib | ||
@rm -rf $(MW_INC)/cli.h | ||
@rm -f $(MW_3RD_LIB)/libcli* |
96 changes: 96 additions & 0 deletions
96
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/include/cli.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#ifndef __CLIAPI_H__ | ||
#define __CLIAPI_H__ | ||
|
||
#ifdef __cplusplus | ||
#if __cplusplus | ||
extern "C" { | ||
#endif | ||
#endif /* __cplusplus */ | ||
|
||
#define CLI_UART_SUPPORT 0x01 | ||
#define CLI_TELNET_SUPPORT 0x02 | ||
#define CLI_UART_CLIENT_SUPPORT 0x04 | ||
|
||
|
||
#define DECLARE_TELNET_CLI_CMD_MACRO(name, child, Cbfunc, help, usermode) { \ | ||
(#name), \ | ||
child, \ | ||
Cbfunc, \ | ||
(#help), \ | ||
usermode, \ | ||
0, \ | ||
0, \ | ||
0 \ | ||
} | ||
|
||
#define DECLARE_TELNET_CLI_CMD_MACRO_END() { \ | ||
(0), \ | ||
(0), \ | ||
(0), \ | ||
(0), \ | ||
(0), \ | ||
(0), \ | ||
(0), \ | ||
(0) \ | ||
} | ||
|
||
typedef enum{ | ||
DEBUG_EN_TRACE_NONE = 0, //always print | ||
DEBUG_EN_TRACE_ERROR, | ||
DEBUG_EN_TRACE_WARNING, | ||
DEBUG_EN_TRACE_INFO, | ||
DEBUG_EN_TRACE_BUTT | ||
} DEBUG_EN_LEVEL; | ||
|
||
typedef struct TELNET_CLI_S_COMMANDtag { | ||
char *pcName; | ||
struct TELNET_CLI_S_COMMANDtag *pChildren; | ||
int (*pCallback)(int argc, char *argv[]); | ||
char *pcCmdHelp; | ||
int i32UserMode; | ||
struct TELNET_CLI_S_COMMANDtag *next; | ||
struct TELNET_CLI_S_COMMANDtag *parent; | ||
struct TELNET_CLI_S_COMMANDtag *prev; | ||
} TELNET_CLI_S_COMMAND, *TELNET_CLI_S_COMMAND_PTR; | ||
|
||
// for_register_cmd | ||
typedef TELNET_CLI_S_COMMAND TELNET_S_CLICMD; | ||
|
||
#define DECLARE_CLI_CMD_MACRO(name, child, Cbfunc, help, usermode) \ | ||
DECLARE_TELNET_CLI_CMD_MACRO(name, child, Cbfunc, help, usermode) | ||
|
||
#define DECLARE_CLI_CMD_MACRO_END() DECLARE_TELNET_CLI_CMD_MACRO_END() | ||
// end for_register_cmd | ||
|
||
extern void TelnetTracePrint(const DEBUG_EN_LEVEL enLevel, char *pcpathname, | ||
const unsigned int u32Line, const char *fmt, ...); | ||
extern int RegisterCliCommand(void *pstCliCmd); | ||
extern void CliInit(int flag); | ||
extern void CliDeInit(void); | ||
|
||
|
||
#ifndef tcli_info | ||
#define tcli_info(fmt...) TelnetTracePrint(DEBUG_EN_TRACE_INFO, __FILE__, __LINE__, fmt) | ||
#endif | ||
|
||
#ifndef tcli_warning | ||
#define tcli_warning(fmt...) TelnetTracePrint(DEBUG_EN_TRACE_WARNING, __FILE__, __LINE__, fmt) | ||
#endif | ||
|
||
#ifndef tcli_error | ||
#define tcli_error(fmt...) TelnetTracePrint(DEBUG_EN_TRACE_ERROR, __FILE__, __LINE__, fmt) | ||
#endif | ||
|
||
|
||
//always print,can not be control | ||
#ifndef tcli_print | ||
#define tcli_print(fmt...) TelnetTracePrint(DEBUG_EN_TRACE_NONE, __FILE__, __LINE__, fmt) | ||
#endif | ||
|
||
|
||
#ifdef __cplusplus | ||
#if __cplusplus | ||
} | ||
#endif | ||
#endif /* __cplusplus */ | ||
#endif |
Binary file added
BIN
+4.75 KB
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_32bit/cli
Binary file not shown.
Binary file added
BIN
+38.5 KB
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_32bit/libcli.a
Binary file not shown.
Binary file added
BIN
+30.2 KB
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_32bit/libcli.so
Binary file not shown.
Binary file added
BIN
+6.91 KB
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_64bit/cli
Binary file not shown.
Binary file added
BIN
+64.1 KB
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_64bit/libcli.a
Binary file not shown.
Binary file added
BIN
+39.7 KB
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_64bit/libcli.so
Binary file not shown.
Binary file added
BIN
+17.4 KB
...onents/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_musl_riscv64/cli
Binary file not shown.
Binary file added
BIN
+375 KB
...s/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_musl_riscv64/libcli.a
Binary file not shown.
Binary file added
BIN
+39.9 KB
.../3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/cli/lib_musl_riscv64/libcli.so
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/inih/LICENSE.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
The "inih" library is distributed under the New BSD license: | ||
|
||
Copyright (c) 2009, Ben Hoyt | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of Ben Hoyt nor the names of its contributors | ||
may be used to endorse or promote products derived from this software | ||
without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY BEN HOYT ''AS IS'' AND ANY | ||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL BEN HOYT BE LIABLE FOR ANY | ||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
38 changes: 38 additions & 0 deletions
38
components/3rd_party/sophgo-middleware/sophgo-middleware/v2/3rdparty/inih/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
SHELL = /bin/bash | ||
ifeq ($(PARAM_FILE), ) | ||
PARAM_FILE:=../../Makefile.param | ||
include $(PARAM_FILE) | ||
endif | ||
|
||
SDIR = $(PWD) | ||
SRCS = $(wildcard $(SDIR)/*.c) | ||
INCS = | ||
OBJS = $(SRCS:.c=.o) | ||
DEPS = $(SRCS:.c=.d) | ||
TARGET_A = $(MW_3RD_LIB)/libini.a | ||
TARGET_SO = $(MW_3RD_LIB)/libini.so | ||
|
||
EXTRA_CFLAGS = $(INCS) | ||
|
||
.PHONY : all | ||
all : $(TARGET_A) $(TARGET_SO) install | ||
|
||
$(SDIR)/%.o: $(SDIR)/%.c | ||
@$(CC) $(DEPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ -c $< | ||
@echo [$(notdir $(CC))] $(notdir $@) | ||
|
||
$(TARGET_A): $(OBJS) | ||
@$(AR) $(ARFLAGS) $@ $(OBJS) | ||
@echo -e $(YELLOW)[LINK]$(END)[$(notdir $(AR))] $(notdir $@) | ||
|
||
$(TARGET_SO): $(OBJS) | ||
@$(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) -o $@ --start-group $(OBJS) --end-group | ||
@echo -e $(GREEN)[LINK]$(END)[$(notdir $(LD))] $(notdir $@) | ||
|
||
install: | ||
@cp ini.h $(MW_INC) | ||
|
||
clean: | ||
@rm -f $(OBJS) $(DEPS) $(TARGET_A) $(TARGET_SO) $(MW_INC)/ini.h | ||
|
||
-include $(DEPS) |
Oops, something went wrong.