Skip to content

Commit

Permalink
[lvgl]: update and add ax620a support
Browse files Browse the repository at this point in the history
  • Loading branch information
jiale-gdyd committed Feb 21, 2023
1 parent 5a9f7de commit 2c03bbd
Show file tree
Hide file tree
Showing 1,260 changed files with 237,110 additions and 496,469 deletions.
3 changes: 3 additions & 0 deletions Makefile.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ ifeq ($(Platform),rockchip)
else ifeq ($(Platform),nxp)
-include config/build.imx6ull.version
-include config/build.config.imx6ull
else ifeq ($(Platform),axera)
-include config/build.ax620a.version
-include config/build.config.ax620a
else
-include config/build.host.version
-include config/build.config.host
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@
./build.sh imx6ull_azure_gui 最终生成azure_gui可执行文件,可通过修改build.imx6ull.version中对应名字的版本号
```

## 构建基于爱心元智AX620A的应用
+ 构建基于爱心元智AX620A soc的LVGL项目
```shell
./build.sh ax620a_lvgl_gui 最终生成lvgl_gui可执行文件,可通过修改build.ax620a.version中对应名字的版本号
```
+ 构建基于爱心元智AX620A soc的AWTK项目
```shell
./build.sh ax620a_awtk_gui 最终生成awtk_gui可执行文件,可通过修改build.ax620a.version中对应名字的版本号
```
+ 构建基于爱心元智AX620A soc的azure-rtos threadx+gui项目
```shell
./build.sh ax620a_azure_gui 最终生成azure_gui可执行文件,可通过修改build.ax620a.version中对应名字的版本号
```

### 工程清理与帮助
+ 项目工程清理
```shell
Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function help()
echo " - imx6ull_lvgl_gui 构建使用freescale/imx6ull soc板卡的lvgl gui项目"
echo " - imx6ull_azure_gui 构建使用freescale/imx6ull soc板卡的azure gui项目"
echo "================================================================================="
echo " - ax620a_awtk_gui 构建使用爱芯元智AX620a soc板卡的awtk gui项目"
echo " - ax620a_lvgl_gui 构建使用爱芯元智AX620a soc板卡的lvgl gui项目"
echo " - ax620a_azure_gui 构建使用爱芯元智AX620a soc板卡的azure gui项目"
echo "================================================================================="
}

if [ -z $1 ]; then
Expand Down
23 changes: 23 additions & 0 deletions config/build.ax620a.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ifeq ($(APP_NAME),lvgl_gui)
VERSION = 9
PATCHLEVEL = 0
SUBLEVEL = 0
EXTRAVERSION = 0
else ifeq ($(APP_NAME),awtk_gui)
VERSION = 1
PATCHLEVEL = 7
SUBLEVEL = 0
EXTRAVERSION = 1
else ifeq ($(APP_NAME),azure_gui)
VERSION = 6
PATCHLEVEL = 2
SUBLEVEL = 0
EXTRAVERSION = 1
else
VERSION = 0
PATCHLEVEL = 0
SUBLEVEL = 0
EXTRAVERSION = 1
endif

export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION
110 changes: 110 additions & 0 deletions config/build.config.ax620a
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
USER_LIB_INCLUDE :=
USER_LD_LIB :=
USER_LINK_LIB :=
USER_PTH_RT_LIB :=

GUI_ROOT := $(shell pwd)/project
SDK_ROOT := $(shell pwd)/sdk/axera/ax620a

SDK_LIB := $(SDK_ROOT)/sdk/lib
SDK_INC := $(SDK_ROOT)/sdk/include

USER_LIB_INCLUDE += $(SDK_INC) \
$(GUI_ROOT) \
$(GUI_ROOT)/gui \
$(GUI_ROOT)/gui/azure \
$(GUI_ROOT)/gui/azure/guix \
$(GUI_ROOT)/gui/azure/threadx \
$(GUI_ROOT)/gui/awtk/3rd \
$(GUI_ROOT)/gui/awtk/src \
$(GUI_ROOT)/gui/awtk/driver \
$(GUI_ROOT)/gui/awtk/src/ext_widgets

USER_LINK_LIB := -L$(SDK_LIB)

USER_LD_LIB +=

USER_LINK_LIB += $(addprefix -l,${USER_LD_LIB})
USER_PTH_RT_LIB += -lpthread -lrt -lm -ldl $(USE_STDCPP_VERSION)
USER_LIB_INCLUDE_FLAG := $(addprefix -I,${USER_LIB_INCLUDE})

export USER_LIB_INCLUDE_FLAG USER_LINK_LIB USER_PTH_RT_LIB

KBUILD_CFLAGS := -D__arm__ -D__ARM_NEON -D__ARM_NEON__ -DLINUX -D_GNU_SOURCE -DBLUEZ_USE -Wno-psabi -fdata-sections -ffunction-sections
KBUILD_CFLAGS := -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4

KBUILD_CPPFLAGS := -D_GNU_SOURCE -Wno-psabi -Wno-write-strings -Wno-pointer-arith -fdata-sections -ffunction-sections
KBUILD_CPPFLAGS += -DRAPIDJSON_HAS_STDSTRING -D__arm__ -D__ARM_NEON -DLINUX

KBUILD_CXXFLAGS := -DRAPIDJSON_HAS_STDSTRING -D__arm__ -D__ARM_NEON -DLINUX -D_GNU_SOURCE -Wno-psabi -Wno-pointer-arith -fdata-sections -ffunction-sections
KBUILD_CXXFLAGS += -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4

KBUILD_CFLAGS_KERNEL := -D__STDC_CONSTANT_MACROS -D__OPTIMIZE__ -fdata-sections -ffunction-sections
KBUILD_CXXFLAGS_KERNEL := -D__OPTIMIZE__ -DRAPIDJSON_HAS_STDSTRING -fdata-sections -ffunction-sections

KBUILD_CXXFLAGS += -Wall -O2 \
-fno-strict-aliasing \
-fno-common \
-Wno-return-type \
-Wno-sign-compare \
-Wno-write-strings \
-Wno-conversion-null \
-Wno-literal-suffix \
-Wno-deprecated-declarations \
-Wno-unused-but-set-variable \
-Wno-unused-function \
-Wno-unused-result \
-Wno-unused-label \
-Wno-unused-variable \
-Wno-memset-elt-size \
-Wno-reorder \
-Wno-delete-incomplete \
-Wno-delete-non-virtual-dtor \
-Wno-stringop-truncation \
-Wno-format-truncation \
-Wno-stringop-overflow \
-Wno-class-memaccess \
-Wno-catch-value \
-Wno-maybe-uninitialized \
-Wno-narrowing \
-Wno-pessimizing-move \
-Wno-unused-value \
-Wno-sizeof-pointer-memaccess \
-Wno-unknown-pragmas \
-Wno-char-subscripts \
-Wno-array-bounds

KBUILD_CFLAGS += -Wall -O2 \
-Wno-trigraphs \
-fno-strict-aliasing -fno-common \
-Wno-format-security \
-Wno-deprecated-declarations \
-Wno-unused-but-set-variable \
-fno-delete-null-pointer-checks \
-Wno-write-strings \
-Wno-pointer-arith \
-Wno-unused-function \
-Wno-unused-variable \
-Wno-int-to-pointer-cast \
-Wno-unused-result \
-Wno-tautological-compare \
-Wno-multichar \
-Wno-unused-label \
-Wno-memset-elt-size \
-Wno-format-overflow \
-Wno-format-truncation \
-Wno-stringop-truncation \
-Wno-stringop-overflow \
-Wno-sequence-point \
-Wno-char-subscripts \
-Wno-sign-compare \
-Wno-uninitialized \
-Wno-unused-value \
-Wno-maybe-uninitialized \
-Wno-narrowing \
-Wno-array-bounds \
-Wno-int-in-bool-context \
-Wno-restrict \
-Wno-array-compare

export KBUILD_CPPFLAGS KBUILD_CXXFLAGS KBUILD_CFLAGS KBUILD_CFLAGS_KERNEL KBUILD_CXXFLAGS_KERNEL
39 changes: 39 additions & 0 deletions configs/ax620a_awtk_gui_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# Automatically generated file; DO NOT EDIT.
# Application Configuration
#

#
# AWTK GUI
#
CONFIG_GUI=y
CONFIG_AWTK=y

#
# display demo case
#
CONFIG_AWTK_UI_DEMO=y
# CONFIG_AWTK_DESKTOP_DEMO is not set
# CONFIG_AWTK_ANIMATOR_DEMO is not set

#
# display driver
#
CONFIG_DRM_DISP_DRIVER=y
# CONFIG_FBDEV_DISP_DRIVER is not set

#
# libdrm tools
#
CONFIG_LIBDRM=y
# CONFIG_LIBDRM_TOOLS is not set
# CONFIG_LIBDRM_MODETEST is not set
# CONFIG_LIBDRM_MODEPRINT is not set

#
# hardware platform
#
CONFIG_AXERA=y
CONFIG_AX620A=y
CONFIG_CORTEX_A7=y
CONFIG_AARCH32=y
42 changes: 42 additions & 0 deletions configs/ax620a_azure_gui_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#
# Automatically generated file; DO NOT EDIT.
# Application Configuration
#

#
# Threadx and Guix
#
CONFIG_GUI=y
CONFIG_AZURE_THREADX=y
CONFIG_AZURE_GUIX=y

CONFIG_LIBDRM=y
CONFIG_DRM_DISP_DRIVER=y
# CONFIG_FBDEV_DISP_DRIVER is not set

# CONFIG_LIBDRM_TOOLS is not set
# CONFIG_LIBDRM_MODETEST is not set
# CONFIG_LIBDRM_MODEPRINT is not set

# CONFIG_AZURE_GUIX_SIMPLE is not set
CONFIG_AZURE_GUIX_INDUSTRIAL=y
# CONFIG_AZURE_GUIX_CALCULATOR is not set
# CONFIG_AZURE_GUIX_WIDGET_TYPES is not set
# CONFIG_AZURE_GUIX_WASHING_MACHINE is not set
# CONFIG_AZURE_GUIX_THERMOSTAT is not set
# CONFIG_AZURE_GUIX_SPRITE is not set
# CONFIG_AZURE_GUIX_SMART_WATCH is not set
# CONFIG_AZURE_GUIX_SHAPES is not set
# CONFIG_AZURE_GUIX_MEDICAL is not set
# CONFIG_AZURE_GUIX_KEYBOARD is not set
# CONFIG_AZURE_GUIX_HOME_AUTOMATION is not set
# CONFIG_AZURE_GUIX_CAR_INFOTAINMENT is not set
# CONFIG_AZURE_GUIX_WIDGET_ANIMATION is not set

#
# hardware platform
#
CONFIG_AXERA=y
CONFIG_AX620A=y
CONFIG_CORTEX_A7=y
CONFIG_AARCH32=y
33 changes: 33 additions & 0 deletions configs/ax620a_lvgl_gui_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Automatically generated file; DO NOT EDIT.
# Application Configuration
#

#
# LittlevGL Gui
#
CONFIG_GUI=y
CONFIG_LVGL=y

# CONFIG_LVGL_MUSIC_TEST is not set
# CONFIG_LVGL_WIDGET_TEST is not set
# CONFIG_LVGL_STRESS_TEST is not set
CONFIG_LVGL_BENCHMARK_TEST=y
# CONFIG_LVGL_KEYPAD_ENCODER_TEST is not set

CONFIG_LIBDRM=y
# CONFIG_LIBDRM_TOOLS is not set
# CONFIG_LIBDRM_MODETEST is not set
# CONFIG_LIBDRM_MODEPRINT is not set

CONFIG_DRM_DISP_DRIVER=y
# CONFIG_X11_DISP_DRIVER is not set
# CONFIG_FBDEV_DISP_DRIVER is not set

#
# hardware platform
#
CONFIG_AXERA=y
CONFIG_AX620A=y
CONFIG_CORTEX_A7=y
CONFIG_AARCH32=y
2 changes: 0 additions & 2 deletions configs/host_lvgl_gui_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#
CONFIG_GUI=y
CONFIG_LVGL=y
# CONFIG_LVGL_V7 is not set
CONFIG_LVGL_NEW=y

# CONFIG_LVGL_MUSIC_TEST is not set
# CONFIG_LVGL_WIDGET_TEST is not set
Expand Down
2 changes: 0 additions & 2 deletions configs/imx6ull_lvgl_gui_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#
CONFIG_GUI=y
CONFIG_LVGL=y
# CONFIG_LVGL_V7 is not set
CONFIG_LVGL_NEW=y

# CONFIG_LVGL_MUSIC_TEST is not set
# CONFIG_LVGL_WIDGET_TEST is not set
Expand Down
2 changes: 0 additions & 2 deletions configs/rv11xx_lvgl_gui_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#
CONFIG_GUI=y
CONFIG_LVGL=y
# CONFIG_LVGL_V7 is not set
CONFIG_LVGL_NEW=y

# CONFIG_LVGL_MUSIC_TEST is not set
# CONFIG_LVGL_WIDGET_TEST is not set
Expand Down
1 change: 0 additions & 1 deletion project/entry/gui_demo/lvgl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ menu "LVGL GUI Demo Menu"

choice
prompt "LittlevGL demo choice"
depends on LVGL_NEW
default LVGL_BENCHMARK_TEST

config LVGL_BENCHMARK_TEST
Expand Down
2 changes: 1 addition & 1 deletion project/entry/gui_demo/lvgl/benchmark/assets/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
obj-y += img_benchmark_cogwheel_rgb.o
obj-y += img_benchmark_cogwheel_argb.o
obj-y += img_benchmark_cogwheel_alpha16.o
obj-y += img_benchmark_cogwheel_alpha256.o
obj-y += img_benchmark_cogwheel_rgb565a8.o
obj-y += img_benchmark_cogwheel_indexed16.o
obj-y += img_benchmark_cogwheel_chroma_keyed.o
Expand Down
Loading

0 comments on commit 2c03bbd

Please sign in to comment.