build: fix extreme build system slowdown caused by SOURCE_DATE_EPOCH changes
authorFelix Fietkau <nbd@nbd.name>
Sat, 5 Sep 2020 09:19:11 +0000 (11:19 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 5 Sep 2020 09:26:57 +0000 (11:26 +0200)
commit7716a4309207addc5f359a4b5ab22f0104996028
tree63d9f20acdb45a4a7932a0420436bd2f041b03c2
parent920d975cab67dff2f7720c4af24fe7e03ff9019a
build: fix extreme build system slowdown caused by SOURCE_DATE_EPOCH changes

Adding inline shell invocations in per-target variables causes them to be
executed over and over again, which causes a significant slowdown.
Fix this by evaluating it only once per package directory

Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/package-ipkg.mk
include/package.mk