Skip to content

Commit

Permalink
Size optimization: Build rootfs with forked adb recipe so it only ins…
Browse files Browse the repository at this point in the history
…talls adbd in the target image.

Readd diag user just in case
  • Loading branch information
Biktorgj committed Mar 2, 2021
1 parent 7f162c0 commit 2a97bc0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/config/poky/rootfs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -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"

0 comments on commit 2a97bc0

Please sign in to comment.