OSDN Git Service
(root)
/
android-x86
/
device-generic-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nativebridge: remove cpuinfo
[android-x86/device-generic-common.git]
/
init.sh
diff --git
a/init.sh
b/init.sh
index
f0373c0
..
7ed51de
100644
(file)
--- a/
init.sh
+++ b/
init.sh
@@
-109,7
+109,8
@@
function init_uvesafb()
;;
esac
;;
esac
- modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-16 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
+ [ "$HWACCEL" = "0" ] && bpp=16 || bpp=32
+ modprobe uvesafb mode_option=${UVESA_MODE:-800x600}-$bpp ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
}
function init_hal_gralloc()
@@
-121,15
+122,15
@@
function init_hal_gralloc()
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
set_property ro.hardware.gralloc drm
set_drm_mode
- [ -n "$DEBUG" ] && set_property debug.egl.trace error
;;
"")
init_uvesafb
;&
0*)
;;
"")
init_uvesafb
;&
0*)
- [ "$HWACCEL" = "1" ] || set_property debug.egl.hw 0
;;
esac
;;
esac
+
+ [ -n "$DEBUG" ] && set_property debug.egl.trace error
}
function init_hal_hwcomposer()
}
function init_hal_hwcomposer()
@@
-401,18
+402,20
@@
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
-
androidboot.hardware
=*)
+
*.*
=*)
;;
*=*)
eval $c
;;
*=*)
eval $c
- case $c in
- HWACCEL=*)
- set_property debug.egl.hw $HWACCEL
- ;;
- DEBUG=*)
- set_property debug.logcat 1
- ;;
- esac
+ if [ -z "$1" ]; then
+ case $c in
+ HWACCEL=*)
+ set_property debug.egl.hw $HWACCEL
+ ;;
+ DEBUG=*)
+ [ -n "$DEBUG" ] && set_property debug.logcat 1
+ ;;
+ esac
+ fi
;;
esac
done
;;
esac
done