Added PMIC build support
authorSivaraj R <sivaraj@ti.com>
Thu, 23 Apr 2020 07:04:10 +0000 (12:34 +0530)
committerSivaraj R <sivaraj@ti.com>
Wed, 6 May 2020 15:40:02 +0000 (10:40 -0500)
Signed-off-by: Sivaraj R <sivaraj@ti.com>
.gitignore
packages/ti/build/comp_paths.mk
packages/ti/build/makerules/component.mk
packages/ti/build/makerules/env.mk

index 573ed3d25de2bba5d31d2277ca33b91fd45a731b..d8fbc9d961522adec624cf52aa57d185d9c6c2c0 100755 (executable)
@@ -7,4 +7,5 @@ packages/ti/drv/csirx/
 packages/ti/drv/csitx/
 packages/ti/drv/emac/firmware/icss_dualmac/src/version_file.h
 packages/ti/drv/pm/
+packages/ti/drv/pmic/
 packages/ti/drv/vhwa/
index 77305cb34eefc2309aaf1a5a9e5d86f6ff3740c5..d7b2c1b7ad2e2ea4676d4155afe3c082b2d836b5 100644 (file)
@@ -11,6 +11,8 @@ PDK_CSL2_ROOT_PATH  ?= $(pdk_PATH)
 export PDK_CSL2_COMP_PATH = $(PDK_CSL2_ROOT_PATH)/ti/csl
 PDK_PM_ROOT_PATH ?= $(pdk_PATH)
 export PDK_PM_COMP_PATH = $(PDK_PM_ROOT_PATH)/ti/drv/pm
+PDK_PMIC_ROOT_PATH ?= $(pdk_PATH)
+export PDK_PMIC_COMP_PATH = $(PDK_PM_ROOT_PATH)/ti/drv/pmic
 PDK_OSAL_ROOT_PATH ?= $(pdk_PATH)
 export PDK_OSAL_COMP_PATH = $(PDK_OSAL_ROOT_PATH)/ti/osal
 PDK_I2C_ROOT_PATH ?= $(pdk_PATH)
index e8ab2387c4a618bd572987cfc5815418ea515913..15db9742b070f0f09475f76e46ebd1e18cb5e367 100644 (file)
@@ -186,6 +186,18 @@ ifneq ($(pm_EXAMPLE_LIST),)
   pdk_EXAMPLE_LIST += $(pm_EXAMPLE_LIST)
 endif
 
+# - used to ignore include if component not present
+-include $(PDK_PMIC_COMP_PATH)/pmic_component.mk
+ifneq ($(pmic_LIB_LIST),)
+  pdk_LIB_LIST += $(pmic_LIB_LIST)
+endif
+ifneq ($(pmic_APP_LIB_LIST),)
+  pdk_APP_LIB_LIST += $(pmic_APP_LIB_LIST)
+endif
+ifneq ($(pmic_EXAMPLE_LIST),)
+  pdk_EXAMPLE_LIST += $(pmic_EXAMPLE_LIST)
+endif
+
 # - used to ignore include if component not present
 -include $(PDK_AUD_COMP_PATH)/aud_component.mk
 ifneq ($(aud_LIB_LIST),)
index 368bcad5a16c057e7737d5053afff03143225170..94f4e0d32f3a3b8a49a0085ee9f4ee81015c7778 100644 (file)
@@ -114,6 +114,9 @@ endif
 ifneq ($(PDK_PM_ROOT_PATH), $(pdk_PATH))
   pdk_INCLUDE += $(PDK_PM_ROOT_PATH)
 endif
+ifneq ($(PDK_PMIC_ROOT_PATH), $(pdk_PATH))
+  pdk_INCLUDE += $(PDK_PMIC_ROOT_PATH)
+endif
 ifneq ($(PDK_OSAL_ROOT_PATH), $(pdk_PATH))
   pdk_INCLUDE += $(PDK_OSAL_ROOT_PATH)
 endif