diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2016-04-22 00:28:12 +0000 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2016-04-22 07:22:15 -0700 |
commit | d519b9d8e53e1e4dd3494d8a3a8e3e531b2b9788 (patch) | |
tree | b2fda5c5b32533347243cb2582ff92945a616c01 /common/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh | |
parent | e05c3b1e86da84c91c1eaeb29598f923cb48659a (diff) | |
download | meta-intel-d519b9d8e53e1e4dd3494d8a3a8e3e531b2b9788.tar.gz |
gma500-gfx-check: Fix dependency to meta-poky
The gma500-gfx-check we used had a dependency to meta-poky via a bbappend file
this is unnacceptable, but this check is still needed on genericx86 and
intel-core2-32, so this patch makes copy of the gma500-gfx-check to meta-intel
to avoid the dependency issue
[YOCTO #9181]
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'common/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh')
-rw-r--r-- | common/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh b/common/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh new file mode 100644 index 00000000..75cda99f --- /dev/null +++ b/common/recipes-bsp/gma500-gfx-check/gma500-gfx-check/gma500-gfx-check.sh | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Check for devices we wish to avoid gma500_gfx for | ||
4 | DEVICES="0x8119 0x4108" | ||
5 | |||
6 | # Checked flag to avoid infinite modprobe | ||
7 | echo "gma500_gfx_checked" >> /dev/kmsg; | ||
8 | |||
9 | for DEVICE in $DEVICES; do | ||
10 | if udevadm trigger --subsystem-match=pci --verbose --attr-match=device=$DEVICE | grep "pci" >> /dev/null ; then | ||
11 | echo "Found $DEVICE, avoiding gma500_gfx module" >> /dev/kmsg; | ||
12 | exit 0 | ||
13 | fi | ||
14 | done | ||
15 | exit 1 | ||