From 5a13eb92b63564a1ae1fd48eda150efdec0b1116 Mon Sep 17 00:00:00 2001
From: Philippe Coval
Date: Fri, 9 Nov 2018 23:00:08 +0100
Subject: [PATCH 1/2] i2c: Fix makefile to enable i2c app
It has been tested on ARTIK053
Forwarded: https://github.com/Samsung/TizenRT/pull/2439
Change-Id: I08d87bffb50332e603dd9308622747bbe950d585
Signed-off-by: Philippe Coval
---
apps/system/i2c/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/system/i2c/Makefile b/apps/system/i2c/Makefile
index ac26bd7c6d..8e8bed65e1 100644
--- a/apps/system/i2c/Makefile
+++ b/apps/system/i2c/Makefile
@@ -127,7 +127,7 @@ install:
endif
-ifeq ($CONFIG_BUILTIN_APPS)$(CONFIG_SYSTEM_I2CTOOL),yy)
+ifeq ($(CONFIG_BUILTIN_APPS)$(CONFIG_SYSTEM_I2CTOOL),yy)
$(BUILTIN_REGISTRY)$(DELIM)$(FUNCNAME).bdat: $(DEPCONFIG) Makefile
$(Q) $(call REGISTER,$(APPNAME),$(FUNCNAME),$(THREADEXEC),$(PRIORITY),$(STACKSIZE))
From 2acb6dc3b8d764ec18a5a550837cfaa3da1b88ce Mon Sep 17 00:00:00 2001
From: Philippe Coval
Date: Sat, 10 Nov 2018 00:36:54 +0100
Subject: [PATCH 2/2] i2c: Disable i2c app for qemu
As up_i2cinitialize only available for artik
Relate-to: https://travis-ci.org/Samsung/TizenRT/jobs/453097081
Forwarded: https://github.com/Samsung/TizenRT/pull/2439
Change-Id: I51ff1fe3d83bad34a59a0fb3adddcb087be814b2
Signed-off-by: Philippe Coval
---
build/configs/qemu/build_test/defconfig | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/build/configs/qemu/build_test/defconfig b/build/configs/qemu/build_test/defconfig
index f83b8c3231..7ee87ec249 100644
--- a/build/configs/qemu/build_test/defconfig
+++ b/build/configs/qemu/build_test/defconfig
@@ -1188,13 +1188,7 @@ CONFIG_TASH_CMDTASK_PRIORITY=100
# CONFIG_SYSTEM_CUTERM is not set
# CONFIG_SYSTEM_FLASH_ERASEALL is not set
# CONFIG_SYSTEM_FOTA_HAL is not set
-CONFIG_SYSTEM_I2CTOOL=y
-CONFIG_I2CTOOL_MINBUS=0
-CONFIG_I2CTOOL_MAXBUS=3
-CONFIG_I2CTOOL_MINADDR=0x03
-CONFIG_I2CTOOL_MAXADDR=0x77
-CONFIG_I2CTOOL_MAXREGADDR=0xff
-CONFIG_I2CTOOL_DEFFREQ=400000
+# CONFIG_SYSTEM_I2CTOOL is not set
# CONFIG_SYSTEM_INIFILE is not set
CONFIG_SYSTEM_PREAPP_INIT=y
CONFIG_SYSTEM_PREAPP_STACKSIZE=2048