diff options
author | 2014-01-22 21:59:41 +0100 | |
---|---|---|
committer | 2014-01-22 22:08:28 +0100 | |
commit | 22cdb652f51f08c52a87f66da49036eecdf68e8a (patch) | |
tree | 24814363b0abee8e3fb71953c8994630e03624b2 | |
parent | 8157159b22efa774cb94030e5a079e628b0cea67 (diff) | |
download | buildroot-22cdb652f51f08c52a87f66da49036eecdf68e8a.tar.gz buildroot-22cdb652f51f08c52a87f66da49036eecdf68e8a.tar.bz2 |
fs/common.mk: add host-mkpasswd if PACKAGES_USERS is not empty
When using a custom rootfs skeleton, the host-mkpasswd target is not
automatically built, even if some packages add users (i.e. when
PACKAGES_USERS is not empty).
In this case, the rootfs generation may fail because the mkpasswd
provided by some distribution does not support all options used in the
mkusers script.
This patch avoids such trouble by automatically adding the host-mkpasswd
package to the dependency list of the rootfs targets if users needs
to be created.
[Peter: minor rewording of commit message]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | fs/common.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/common.mk b/fs/common.mk index aa9d961964..9f3262019b 100644 --- a/fs/common.mk +++ b/fs/common.mk @@ -37,7 +37,8 @@ USERS_TABLE = $(BUILD_DIR)/_users_table.txt define ROOTFS_TARGET_INTERNAL # extra deps -ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs +ROOTFS_$(2)_DEPENDENCIES += host-fakeroot host-makedevs \ + $(if $(PACKAGES_USERS),host-mkpasswd) ifeq ($$(BR2_TARGET_ROOTFS_$(2)_GZIP),y) ROOTFS_$(2)_COMPRESS_EXT = .gz |