From 2a97bc07d281d02335fbdd0f0065bb5c7af50aed Mon Sep 17 00:00:00 2001 From: Biktor Date: Tue, 2 Mar 2021 07:03:03 +0100 Subject: [PATCH] Size optimization: Build rootfs with forked adb recipe so it only installs adbd in the target image. Readd diag user just in case --- tools/config/poky/rootfs.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/config/poky/rootfs.conf b/tools/config/poky/rootfs.conf index f9b6222..d9099cb 100644 --- a/tools/config/poky/rootfs.conf +++ b/tools/config/poky/rootfs.conf @@ -277,7 +277,7 @@ PACKAGECONFIG_append_pn-qemu-system-native = " sdl" CONF_VERSION = "1" # ADB Support -CORE_IMAGE_EXTRA_INSTALL += "android-tools " +CORE_IMAGE_EXTRA_INSTALL += "android-tools-adb " # Common scripts (set diag permissions, mount partitions etc.) CORE_IMAGE_EXTRA_INSTALL += "shared-scripts " @@ -306,6 +306,9 @@ CORE_IMAGE_EXTRA_INSTALL += "kernel-modules " INHERIT += "extrausers" INHERIT += "recipe_sanity" +EXTRA_USERS_PARAMS+= "groupadd -g 53 diag; " +EXTRA_USERS_PARAMS+= "useradd -r -u 53 -g 53 -m -c 'diag' -d /nonexistent -s /bin/false diag; " + VIRTUAL-RUNTIME_dev_manager ?= "busybox-mdev" DISTRO_FEATURES += "sysvinit eabi ipv6 ipv4 largefile thumb-interwork xattr ${MICRO_GOLD} ${DISTRO_FEATURES_LIBC}" USE_DEVFS = "0"