Support dummy platform

Currently we are supporting these platforms:
x11 gbm wayland only-cl dummy

Change-Id: I82e01c068730e83dccc10c23e2c9ea528aeac920
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2020-11-11 15:03:38 +08:00
parent 83c74156e8
commit 2e36060922
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ option('version', type: 'string', value: 'r18p0',
description: 'GPU version (default: r18p0)')
option('subversion', type: 'string', value: 'none',
description: 'subversion (default: none)')
option('platform', type: 'combo', choices: ['x11', 'gbm', 'wayland', 'only-cl'],
option('platform', type: 'combo', choices: ['x11', 'gbm', 'wayland', 'only-cl', 'dummy'],
value: 'x11', description: 'platform (default: x11)')
option('with-overlay', type: 'boolean', value: 'false',
description: 'install overlay (default: false)')

View File

@@ -4,7 +4,7 @@
rm -f $(find . -name "*fbdev*.so")
# Link x11 libs
X11_LIBS=$(find . -name "*.so"|grep -vE "gbm.so|wayland.so|x11.so|only-cl.so")
X11_LIBS=$(find . -name "*.so"|grep -vE "gbm.so|wayland.so|x11.so|only-cl.so|dummy.so")
for lib in $X11_LIBS;do
mv $lib ${lib%.so}-x11.so 2>/dev/null
done

View File

@@ -11,7 +11,7 @@ parse_name() {
GPU=$(echo $1|cut -d'-' -f'2,3')
VERSION=$(echo $1|cut -d'-' -f4)
PLATFORM=$(echo $1 | grep -owE "gbm|wayland|x11|only-cl")
PLATFORM=$(echo $1 | grep -owE "gbm|wayland|x11|only-cl|dummy")
[ -z "$PLATFORM" ] && PLATFORM=x11
SUBVERSION=$(echo ${1%-$PLATFORM}|cut -d'-' -f'5-')