package/pkg-generic.mk: simplify step_pkg_size
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 26 Feb 2020 19:43:43 +0000 (20:43 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 27 Feb 2020 21:45:12 +0000 (22:45 +0100)
commit894d58a15c9678bb34ce40f093d7aa39dd4cb1e8
treec56da70ac0adf255f71f156a857aef167810937e
parented19f4d231706af25a6f35a2eb067392ce0a15d6
package/pkg-generic.mk: simplify step_pkg_size

Use the same trick in step_pkg_size as the one used in check_bin_arch:
factorize the two $(filter ...) calls into one, checking in one step
the step and whether it's the beginning or end of the step.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-generic.mk