Skip to content

Commit

Permalink
Add some libsns
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zalatov committed Jan 30, 2019
1 parent 6fdc6e6 commit af70259
Show file tree
Hide file tree
Showing 55 changed files with 13,680 additions and 0 deletions.
Binary file added hisi-osdrv2/sensor/libsns_imx036.so
Binary file not shown.
Binary file added hisi-osdrv2/sensor/libsns_imx036_3m.so
Binary file not shown.
Binary file added hisi-osdrv2/sensor/libsns_ov5653_5m.so
Binary file not shown.
46 changes: 46 additions & 0 deletions hisi-sensors/src/altasens_3372/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# sensor lib Makefile
#

ifeq ($(PARAM_FILE), )
PARAM_FILE:=../../../../Makefile.param
include $(PARAM_FILE)
endif

EXT_PATH := $(SDK_PATH)/mpp/extdrv/
ISP_PATH := $(SDK_PATH)/mpp/component/isp
LIBPATH = $(ISP_PATH)/lib
OBJPATH = ./obj

ARFLAGS = rcv
ARFLAGS_SO = -shared -fPIC -o
CFLAGS = -g -Wall -fPIC
#CFLAGS += -O2

BUS_DIR := $(EXT_PATH)/ssp/

ISP_INC := $(ISP_PATH)/include
INC := -I$(BUS_DIR) -I$(REL_INC) -I$(ISP_INC)

COMPILE = $(CC) $(CFLAGS) $(DFLAGS) -lm

$(OBJPATH)/%.o: ./%.c
@[ -e $(LIBPATH) ] || mkdir $(LIBPATH)
@[ -e $(OBJPATH) ] || mkdir $(OBJPATH)
($(COMPILE) -o $@ -c $< $(INC))

SRCS = $(wildcard ./*.c)
OBJS = $(SRCS:%.c=%.o)
OBJS := $(OBJS:./%=obj/%)

TARGETLIB := $(LIBPATH)/libsns_alta.a
TARGETLIB_SO := $(LIBPATH)/libsns_alta.so

all:$(TARGETLIB)
$(TARGETLIB):$(OBJS)
@($(AR) $(ARFLAGS) $(TARGETLIB) $(OBJS))
@($(CC) $(ARFLAGS_SO) $(TARGETLIB_SO) $(OBJS))

clean:
@$(RM) -rf $(TARGETLIB) $(OBJS)
@$(RM) -rf $(LIBPATH) $(OBJPATH)
Loading

0 comments on commit af70259

Please sign in to comment.