xserver-kdrive-common: xilinx virtex5 support
PATCH 10/10 xserver-kdrive-common: xilinx virtex5 support
* Add Xserver support for virtex5 board
* Update module id for Xilinx platforms, xserver
arguments are setup at runtime by getting
module id info from /proc/cpuinfo
* Increase PR
--- .../xserver-kdrive-common/Xserver | 9 ++++++++- .../xserver-kdrive-common_0.1.bb | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-)
recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver +8 -1
@@ -34,7 +34,12 @@ module_id() { # grep "Module ID" /proc/hal/assets | sed "s/.*://" ## used to read from /proc/hal/model, but that is removed in 2.6 # echo ' iPAQ' `cat /proc/hal/model` - awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo + id=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo` + if [ -n "$id" ]; then + echo -n "${id}" + else + awk 'BEGIN { FS=": " } /platform/ { print $2 } ' </proc/cpuinfo + fi } export USER=root
@@ -171,6 +176,8 @@ case `module_id` in if [ "$XSERVER" = "/usr/bin/Xorg" ];then ARGS="" fi;; #TODO: handle kdrive + "Xilinx Virtex"*) + ARGS="$ARGS $PPM" ;; *) # It is a device we do not know about, in which case we force # kdrive to use the current framebuffer geometry -- otherwise
recipes/xserver-kdrive-common/xserver-kdrive-common_0.1.bb +1 -1
@@ -1,7 +1,7 @@ DESCRIPTION = "Common X11 scripts" LICENSE = "GPL" SECTION = "x11" -PR = "r45" +PR = "r46" SRC_URI = "\ file://Xdefaults \
Signature · 1 line
1.7.2
Paul Menzel
NAKAm Freitag, den 30.07.2010, 10:42 -0500 schrieb Adrian Alonso:
Quoted 4 lines
* Add Xserver support for virtex5 board
* Update module id for Xilinx platforms, xserver
arguments are setup at runtime by getting
module id info from/proc/cpuinfo
Please split those two changes up into separate patches.
This should be worded differently. Maybe, »On Xilinx platforms there is no line Hardware. Instead it is stored in the line starting with platform.
Quoted 3 lines
* Increase PR
Signed-off-by Adrian Alonso <[email protected]>
NAK.
Quoted 11 lines
--- .../xserver-kdrive-common/Xserver | 9 ++++++++- .../xserver-kdrive-common_0.1.bb | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-)recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver +0
-0@@ -34,7 +34,12 @@ module_id() { # grep "Module ID" /proc/hal/assets | sed "s/.*://"
recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver module_id() { · line 43
Quoted 10 lines
recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver +6
-1## used to read from /proc/hal/model, but that is removed in 2.6 # echo ' iPAQ' `cat /proc/hal/model` - awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo + id=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo` + if [ -n "$id" ]; then + echo -n "${id}" + else + awk 'BEGIN { FS=": " } /platform/ { print $2 } ' </proc/cpuinfo + fi }
1. Please use spaces instead of tabulators.
2. It took me some time to figure out, why you use a variable here. I think it would be nicer the following way.
id=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo`
if [ ! -n "$id" ]; then
id=`awk 'BEGIN { FS=": " } /platform/ { print $2 } ' </proc/cpuinfo`
echo -n "${id}"Why are the curly brackets needed?
recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver case `module_id` in · line 183
Quoted 10 lines
recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver +2
-0export USER=root@@ -171,6 +176,8 @@ case `module_id` in if [ "$XSERVER" = "/usr/bin/Xorg" ];then ARGS="" fi;; #TODO: handle kdrive + "Xilinx Virtex"*) + ARGS="$ARGS $PPM" ;; *) # It is a device we do not know about, in which case we force # kdrive to use the current framebuffer geometry -- otherwise
Please use spaces instead of tabulators.
[…]
Thanks,
Paul
PS: Please remember to update the status of your patches in Patchwork [1][2].
[1] http://patchwork.openembedded.org/
[2] http://wiki.openembedded.net/index.php/Patchwork (I need to update this patch on how to use pwclient to update the states of the patches.