Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The generation **number** tracks the peripheral address map and SDK architecture
| V3.5 | CV500 | Cortex-A7 | OSAL | Raw `.o` + init wrappers | Incremental V3, snake_case SDK symbols |
| V4 | EV200 | Cortex-A7 | OSAL | Source-based Kbuild | Redesigned modular SDK, Goke compat, mainline kernel |
| V5 | CV610 | Cortex-A7 | OSAL + MMZ split | Raw `.o` + vendor init wrappers | Hi3516CV610/CV608, MMZ separated from OSAL again, vendor ships init wrappers as source |
| V5 | DV500 | Cortex-A55 (aarch64) | OSAL + MMZ split | Raw `.o` + vendor init wrappers | Hi3519DV500/Hi3516DV500, 64-bit ABI (`-DUSER_BIT_64/-DKERNEL_BIT_64`), 53 modules (42 blob + OSAL/MMZ/sys_config + peripherals + mipi_rx) |
| V5 | DV500 | Cortex-A55 (aarch64) | OSAL + MMZ split | Raw `.o` + vendor init wrappers | Hi3519DV500/Hi3516DV500, 64-bit ABI (`-DUSER_BIT_64/-DKERNEL_BIT_64`), 59 modules (42 blob + OSAL/MMZ/sys_config + peripherals + mipi_rx/tx + gfbg + crypto cipher/km/otp/hardware_cryptodev) |

### Dealing with vendor .ko blobs

Expand Down
64 changes: 64 additions & 0 deletions kernel/gfbg/hi3519dv500/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# $(PWD)/gfbg/Makefile

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

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

ifeq ($(CONFIG_OT_GFBG_SUPPORT), y)
# Head file path variable's
CFG_INC := -I$(PWD)/include
CFG_INC += -I$(PWD)/ext_inc
CFG_INC += -I$(PWD)/src
CFG_INC += -I$(PWD)/src/init
CFG_INC += -I$(PWD)/drv/adp
CFG_INC += -I$(PWD)/drv/include
CFG_INC += -I$(TDE_ROOT)/drv/include

ifeq ($(CONFIG_SYNC_FILE),y)
CFG_INC += -I$(KERNEL_ROOT)/drivers/ot_fence
EXTRA_CFLAGS += -DCONFIG_GFBG_FENCE_SUPPORT
endif

ifneq ($(findstring $(OT_ARCH), hi3519dv500),)
EXTRA_CFLAGS += -DCONFIG_GFBG_G0_FHD_SUPPORT
EXTRA_CFLAGS += -DCONFIG_GFBG_LOW_DELAY_SUPPORT
EXTRA_CFLAGS += -DCONFIG_GFBG_RESOLUTION_SUPPORT_SQUARE
EXTRA_CFLAGS += -DCONFIG_TDE_CLUT_RECT_SUPPORT_G0
EXTRA_CFLAGS += -DCONFIG_TDE_GFBG_COMPRESS_V2
EXTRA_CFLAGS += -DCONFIG_TDE_CLUT_RECT_V2
endif

ifeq ($(findstring $(OT_ARCH), hi3519dv500),)
EXTRA_CFLAGS += -DCONFIG_GFBG_NOT_SUPPORT_FUNC
endif

EXTRA_CFLAGS += -DCONFIG_COMPRESS_ECONOMIZE_MEMERY

EXTRA_CFLAGS += $(CFG_INC)

SRCS :=
include $(PWD)/src/Makefile
include $(PWD)/drv/adp/Makefile

TARGET:=gfbg

#*************************************************************************
# release header
INC_FILE := $(wildcard $(GFBG_ROOT)/include/*.h)

# compile linux or liteos
include $(MAKE_DRV_FILE)

#CONFIG_OT_GFBG_SUPPORT endif
else
all:
@echo "gfbg module not compile"
clean:
@echo "gfbg module don't need clean"
endif
8 changes: 8 additions & 0 deletions kernel/gfbg/hi3519dv500/drv/adp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
SRCS+=drv/adp/gfbg_drv.c
SRCS+=drv/adp/gfbg_blit.c
SRCS+=drv/adp/gfbg_graphics.c
SRCS+=drv/adp/gfbg_graphics_drv.c
SRCS+=drv/adp/gfbg_graphic_hal.c
SRCS+=drv/adp/gfbg_comm.c
SRCS+=drv/adp/gfbg_rotate.c
SRCS+=drv/adp/gfbg_rotate_tde.c
Loading
Loading