一,在build/Kconfig中
1,在"Soling Project Select"中添加项目
config GLB_GMNCFG_SOLING_PRO_SLA70039A bool "enable_SLA70039A"
2,在"UI Resolution"中添加项目
config GLB_GMNCFG_ENABLE_800_480_UI depends on (GLB_GMNCFG_SOLING_PRO_P7014S1SC || GLB_GMNCFG_SOLING_PRO_SLA70039A || GLB_GMNCFG_SOLING_PRO_SLA70260) bool "800*480"
二,application/reference_td/pubtdLauncher/view/Makefile中配置编译的资源文件
ifeq ($(CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70039A),y) TD_RESOURCE_DIR := $(RESOURCE_DIR)/resources800 endif
三,application/reference_td/pubtdLauncher/sys_config.mk中添加项目的宏定义
ifeq ($(CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70039A),y) COMMON_FLAGS += -DCONFIG_SLA70039A endif
四,在项目中使用三中定义的宏“CONFIG_SLA70039A”
#elif defined(CONFIG_SLA70039A)//XXXX800*480 #define PAGE_MAX (2) #define NEW_HOME_STYLE1 //XXXX界面
五,在代码中使用的“NEW_HOME_STYLE1 ”
/*读取配置文件config.ini*/ #ifdef NEW_HOME_STYLE1 TwStyleSwitchTheme("theme_home1"); TwLayoutParseFile(getRootTWiget(),TGetExecutePath("../etc/homeview1/home_layout1.ini"));
六,修改默认编译项目配置
build/platform_cfg/pub_cfg/defconfig
CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70260=y # CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70039B is not set # CONFIG_GLB_GMNCFG_SOLING_PRO_SUNPLUS_BOARD is not set
七,修改触摸参数
linux/kernel/drivers/input/touchscreen/gemini/c-gt9xx/tp_parameter.h
#if (CONFIG_GLB_GMNCFG_SOLING_PRO_P7014S1SC - || CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70039A) + || CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70039A + || CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70260) .pixel_x = 800, .pixel_y = 480, @@ -133,6 +134,11 @@ struct ts_panel tp_config = { .r_x = 800, .up_y = 0, .down_y = 480, +#elif (CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70260) + .l_x = 0, + .r_x = 800, + .up_y = 0, + .down_y = 480, #elif (CONFIG_GLB_GMNCFG_SOLING_PRO_SLA70039B)