* 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
Signed-off-by: Adrian Alonso <aalons...@gmail.com> --- .../xserver-kdrive-common/Xserver | 9 ++++++++- .../xserver-kdrive-common_0.1.bb | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver b/recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver index 347b005..375b787 100644 --- a/recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver +++ b/recipes/xserver-kdrive-common/xserver-kdrive-common/Xserver @@ -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 diff --git a/recipes/xserver-kdrive-common/xserver-kdrive-common_0.1.bb b/recipes/xserver-kdrive-common/xserver-kdrive-common_0.1.bb index 52a88b8..04a3f13 100644 --- a/recipes/xserver-kdrive-common/xserver-kdrive-common_0.1.bb +++ b/recipes/xserver-kdrive-common/xserver-kdrive-common_0.1.bb @@ -1,7 +1,7 @@ DESCRIPTION = "Common X11 scripts" LICENSE = "GPL" SECTION = "x11" -PR = "r45" +PR = "r46" SRC_URI = "\ file://Xdefaults \ -- 1.7.2 _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel