infra: permissions/users/device tables: avoid adding empty entries
authorThomas De Schampheleire <patrickdepinguin@gmail.com>
Thu, 22 May 2014 12:35:40 +0000 (14:35 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 28 May 2014 19:19:45 +0000 (21:19 +0200)
commit4d5bf929a62b41519f5470d7ea20567e0061277f
treecf8a44af81099ee61c4515b13a61c7800ff4ad5e
parentd830cceba5350f75c5a753c81811ed19cd3d17c2
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>
package/pkg-generic.mk