1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-08 06:28:23 +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 tty 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"
@ -20,10 +21,12 @@ IMAGE_INSTALL:append = "libcurl \
libgl-mesa \
libglapi \
libudev \
udev \
glew \
freetype \
freeglut \
mesa \
sudo \
libsdl2 \
libsdl2-ttf \
libsdl2-image \

View File

@ -84,10 +84,10 @@ int main( int argc, char** argv )
running = false;
break;
case SDL_KEYDOWN:
if(ev.key.keysym.sym == SDLK_ESCAPE)
{
running = false;
}
//if(ev.key.keysym.sym == SDLK_ESCAPE)
//{
running = false;
//}
break;
case SDL_FINGERDOWN:
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:remove = "x11 wayland"