summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas De Schampheleire <patrickdepinguin@gmail.com>2014-05-22 14:35:40 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-05-28 21:19:45 +0200
commit4d5bf929a62b41519f5470d7ea20567e0061277f (patch)
treecf8a44af81099ee61c4515b13a61c7800ff4ad5e
parentd830cceba5350f75c5a753c81811ed19cd3d17c2 (diff)
downloadbuildroot-4d5bf929a62b41519f5470d7ea20567e0061277f.tar.gz
buildroot-4d5bf929a62b41519f5470d7ea20567e0061277f.zip
infra: permissions/users/device tables: avoid adding empty entries
In pkg-generic.mk, an entry would be added to each of the permissions, devices and users tables, even if FOO_PERMISSIONS/DEVICES/USERS is empty. In that last case, the entry would contain only the separator, which is substituted to '\n' in fs/common.mk. For configurations with many packages, this would render the build output a bit odd, containing many \n instances (even though the end result in the target would of course be the same). This patch cleans up the build output by only adding to these tables when the package actually specified contents for them. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Tested-by: Romain Naour <romain.naour@openwide.fr> Acked-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/pkg-generic.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 260f37425e..5116ed9fea 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -653,9 +653,16 @@ $$(foreach pkg,$$($(2)_PROVIDES),\
endif
TARGETS += $(1)
+
+ifneq ($$($(2)_PERMISSIONS),)
PACKAGES_PERMISSIONS_TABLE += $$($(2)_PERMISSIONS)$$(sep)
+endif
+ifneq ($$($(2)_DEVICES),)
PACKAGES_DEVICES_TABLE += $$($(2)_DEVICES)$$(sep)
+endif
+ifneq ($$($(2)_USERS),)
PACKAGES_USERS += $$($(2)_USERS)$$(sep)
+endif
ifeq ($$($(2)_SITE_METHOD),svn)
DL_TOOLS_DEPENDENCIES += svn
OpenPOWER on IntegriCloud