1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-12-27 11:08:21 +01:00

add sudo support

This commit is contained in:
DanyLE 2023-07-09 23:09:37 +02:00
parent 226d43b8cc
commit 5ab57b8e5d
3 changed files with 9 additions and 6 deletions

View File

@ -8,7 +8,8 @@ EXTRA_USERS_PARAMS = "usermod -p BJpK8ADNDLsGg root; \
usermod -a -G video diya; \ usermod -a -G video diya; \
usermod -a -G tty diya; \ usermod -a -G tty diya; \
usermod -a -G input diya; \ usermod -a -G input diya; \
usermod -a -G dialout diya \ usermod -a -G dialout diya; \
usermod -a -G sudo diya \
" "
IMAGE_BOOT_FILES:append = "fs_resize" IMAGE_BOOT_FILES:append = "fs_resize"
@ -20,10 +21,12 @@ IMAGE_INSTALL:append = "libcurl \
libgl-mesa \ libgl-mesa \
libglapi \ libglapi \
libudev \ libudev \
udev \
glew \ glew \
freetype \ freetype \
freeglut \ freeglut \
mesa \ mesa \
sudo \
libsdl2 \ libsdl2 \
libsdl2-ttf \ libsdl2-ttf \
libsdl2-image \ libsdl2-image \

View File

@ -84,10 +84,10 @@ int main( int argc, char** argv )
running = false; running = false;
break; break;
case SDL_KEYDOWN: case SDL_KEYDOWN:
if(ev.key.keysym.sym == SDLK_ESCAPE) //if(ev.key.keysym.sym == SDLK_ESCAPE)
{ //{
running = false; running = false;
} //}
break; break;
case SDL_FINGERDOWN: case SDL_FINGERDOWN:
case SDL_FINGERMOTION: case SDL_FINGERMOTION:

View File

@ -1,4 +1,4 @@
DEPENS += " mesa libdrm alsa virtual/libgbm virtual/libgles2 libudev " DEPENS += " mesa libdrm alsa virtual/libgbm virtual/libgles2 udev libudev "
PACKAGECONFIG = " kmsdrm opengl gles2 alsa libusb " PACKAGECONFIG = " kmsdrm opengl gles2 alsa libusb "
# PACKAGECONFIG:remove = "x11 wayland" # PACKAGECONFIG:remove = "x11 wayland"