TD配置不同分辨率流程
作者:互联网
1,make menuconfig 中将屏幕分辨率UI由1024*600改为800*400.
~/8368U.TD/.auto_config.h -#define CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI 1 +#define CONFIG_GLB_GMNCFG_ENABLE_800_480_UI 1
~/8368U.TD/.config -# CONFIG_GLB_GMNCFG_ENABLE_800_480_UI is not set -CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI=y +CONFIG_GLB_GMNCFG_ENABLE_800_480_UI=y +# CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI is not set
~/8368U.TD/pplication/ext_config/global.config -# CONFIG_GLB_GMNCFG_ENABLE_800_480_UI is not set -CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI=y +CONFIG_GLB_GMNCFG_ENABLE_800_480_UI=y +# CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI is not set
~/8368U.TD/application/ext_config/prj_extcfg.h -#define CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI 1 +#define CONFIG_GLB_GMNCFG_ENABLE_800_480_UI 1
2,Makefile文件更具不同配置编译不同参数
~/8368U.TD/application/Makefile 92 # config ui resource 93 ifeq ($(CONFIG_GLB_GMNCFG_ENABLE_1280_720_UI),y) 94 LOGO_DIR=$(APP_CUSTOMER_ROOT)/$(CONFIG_GLB_GMNCFG_MODEL_APP_CFG)/logo_1280_720 95 UI_CFG_WIDTH=1280 96 UI_CFG_HEIGHT=720 97 endif 98 ifeq ($(CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI),y) 99 LOGO_DIR=$(APP_CUSTOMER_ROOT)/$(CONFIG_GLB_GMNCFG_MODEL_APP_CFG)/logo_1024_600 100 UI_CFG_WIDTH=1024 101 UI_CFG_HEIGHT=600 102 endif 103 ifeq ($(CONFIG_GLB_GMNCFG_ENABLE_800_480_UI),y) 104 LOGO_DIR=$(APP_CUSTOMER_ROOT)/$(CONFIG_GLB_GMNCFG_MODEL_APP_CFG)/logo_800_480 105 UI_CFG_WIDTH=800 106 UI_CFG_HEIGHT=480 107 endif
~/8368U.TD/application/reference_td/tdLauncher/view/Makefile TOP=.. OUTPUT?=$(TOP)/../../sdk/tdGUI/output include $(OUTPUT)/rules.mk include $(TOP)/../../ext_config/prj_ext.config include $(TOP)/../../ext_config/global.config RESOURCE_DIR :=./resources #对于demo来说,这里在800480的板子上使用这个分辨率是拉伸到1024600上去 ifeq ($(CONFIG_GLB_GMNCFG_ENABLE_800_480_UI),y) TD_RESOURCE_DIR := $(RESOURCE_DIR)/resources1024 endif ifeq ($(CONFIG_GLB_GMNCFG_ENABLE_1024_600_UI),y) TD_RESOURCE_DIR := $(RESOURCE_DIR)/resources1024 endif ifeq ($(CONFIG_GLB_GMNCFG_ENABLE_1280_720_UI),y) TD_RESOURCE_DIR := $(RESOURCE_DIR)/resources1280 endif #--------------------------------------------------------------# SUBDIRS = commons activitys all: +$(COMMAND) cp -avrf $(TD_RESOURCE_DIR)/etc $(DESTDIR) cp -avrf $(TD_RESOURCE_DIR)/style $(DESTDIR) cp -avrf $(TD_RESOURCE_DIR)/translate $(DESTDIR) cp -avrf $(RESOURCE_DIR)/config.ini $(DESTDIR)/etc/ cp -avrf $(RESOURCE_DIR)/config_cp_cert.ini $(DESTDIR)/etc/ clean: @for dir in $(SUBDIRS); do make -C $$dir clean; done .PHONY: release release: +$(COMMAND) #--------------------------------------------------------------# include $(OUTPUT)/rules.mk
标签:ENABLE,分辨率,GLB,UI,DIR,TD,CONFIG,流程,GMNCFG 来源: https://www.cnblogs.com/senior-engineer/p/14128985.html