package/ti-gfx: do not use devmem2 in script
authorCarlos Santos <unixmania@gmail.com>
Sun, 11 Aug 2019 23:01:43 +0000 (20:01 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 12 Aug 2019 20:41:32 +0000 (22:41 +0200)
ti-gfx may install a debug script that uses devmem2 but does not select
BR2_PACKAGE_DEVMEM2. Use devmem, instead, already provided by Busybox.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/ti-gfx/esrev.sh

index 6220d4477d4c038a53a38293264a8374c7f91e2d..8109334b79d106abcf49fbff90c087fb74ca4d43 100644 (file)
@@ -48,7 +48,8 @@ case $CPUTYPE in
        devmem 0x48180900 w 0x2
        devmem 0x48180920 w 0x2
 
-       ES_REVISION="$(devmem2 0x56000014 | sed -e s:0x00010205:6: -e s:0x00010201:3: -e s:0x00010003:2: | tail -n1 | awk -F': ' '{print $2}')"
+       ES_REVISION="$(devmem 0x56000014 | sed -e s:0x00010205:6: \
+               -e s:0x00010201:3: -e s:0x00010003:2:)"
        ;;
 *)
        echo Unable to determine SGX hardware