[Buildroot] [PATCH 1/1] ti-gfx: add new package
Peter Korsgaard
jacmet at uclibc.org
Sat Jun 29 15:03:55 UTC 2013
>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
Yann> Spenser, All,
Yann> On 2013-06-28 15:41 -0500, Spenser Gilliland spake thusly:
>> This is the first patch for the TI Graphics SDK in Buildroot. Please review
>> and try this on your own boards.
Yann> Just a very quick review with obvious comments.
Yann> [--SNIP--]
>> diff --git a/package/ti-gfx/S80ti-gfx b/package/ti-gfx/S80ti-gfx
>> new file mode 100644
>> index 0000000..4e0b32b
>> --- /dev/null
>> +++ b/package/ti-gfx/S80ti-gfx
>> @@ -0,0 +1,45 @@
>> +#!/bin/sh
>> +
>> +case "$1" in
>> +start)
>> + echo "ti-gfx: starting pvr driver"
>> +
>> + BITSPERPIXEL="$(fbset | grep geom | awk '{print $6}')"
>> + YRES="$(fbset | grep geom | awk '{print $3}')"
Yann> Why grep+awk?
Yann> BITSPERPIXEL="$(fbset |awk '$0~/geom/ {print $6}')"
Yann> YRES="$(fbset |awk '$0~/geom/ {print $3}')"
Or even just awk '/geom/ { print $3 }'
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list