fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 21 Jul 2015 15:36:07 +0000 (17:36 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 21 Jul 2015 21:12:52 +0000 (23:12 +0200)
commit95bd0ad351fe03450f28699f80434539f3764438
tree977a0b04b011920d1b6b480b9a17d1be105185a9
parent2d84e1cc4aa7c552e310f3d44f7a557bc5fe8f8f
fs: build host-mkpasswd when BR2_ROOTFS_USERS_TABLES is used

The code in fs/common.mk properly triggers the build of host-mkpasswd
when at least one package specifies a <pkg>_USERS variable. However,
when no selected package specifies a <pkg>_USERS variable but the user
uses a custom users table through BR2_ROOTFS_USERS_TABLES, then we
forget to build host-mkpasswd, leading to build failures if you don't
have mkpasswd installed in your machine.

This commit fixes that by taking into account both the package users
table and the custom users table when deciding to depend or not on
host-mkpasswd.

Reported-by: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
Cc: Auke Willem Oosterhoff <oosterhoff@baopt.nl>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
fs/common.mk