summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2016-09-20 13:43:45 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2016-09-20 13:44:47 +0530
commit5c377ac96809af23a31c974b915d2c9082000950 (patch)
treeefd77a007ce9ed19cac82d22521202eb40dfab89
parent7f0affa48f384bc68dc458bf834cd924e9cb6e1f (diff)
device-tree: adding SKIP_LIST
Change-Id: If77ea998441e521ca12aab002a5031da235a0028 Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xautomated/linux/device-tree/device-tree.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/automated/linux/device-tree/device-tree.sh b/automated/linux/device-tree/device-tree.sh
index c9fb46e..9ce35b5 100755
--- a/automated/linux/device-tree/device-tree.sh
+++ b/automated/linux/device-tree/device-tree.sh
@@ -29,11 +29,13 @@ SYSFS_DEVICE_TREE="/sys/firmware/devicetree/base/"
DEVICE_TREE="/proc/device-tree"
MODEL="model"
COMPATIBLE="compatible"
+SKIP_LIST_2="device-tree-"${MODLE}" device-tree-"${COMPATIBLE}""
+SKIP_LIST_1="device_tree "${SKIP_LIST_2}""
# Check if /proc/device-tree is available
device_tree() {
[ -d "${DEVICE_TREE}" ]
- exit_on_fail 'device-tree'
+ exit_on_fail "device-tree" "${SKIP_LIST_2}"
}
# Check device tree property
@@ -55,7 +57,7 @@ CONFIG_PROC_FS=$(zcat /proc/config.gz | grep CONFIG_PROC_FS)
CONFIG_OF=$(zcat /proc/config.gz | grep "CONFIG_OF=")
[ "${CONFIG_PROC_FS}" = "CONFIG_PROC_FS=y" ] && [ "${CONFIG_OF}" = "CONFIG_OF=y" ] && [ -d "${SYSFS_DEVICE_TREE}" ]
-exit_on_fail 'device-tree-Kconfig'
+exit_on_fail "device-tree-Kconfig" "${SKIP_LIST_1}"
device_tree
device_tree_property "${MODEL}"
device_tree_property "${COMPATIBLE}"