swupdate: switch to local config librt dependency
authorBaruch Siach <baruch@tkos.co.il>
Thu, 8 Jun 2017 16:29:06 +0000 (19:29 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 8 Jun 2017 19:44:27 +0000 (21:44 +0200)
commit54dd63c569af3c4b713f0dde046bc9d1928c0838
tree22b5100e79aca60020df13ef2ffa2de089881825
parent9cbe364f578bba25d499a45c46c56ced35153ae3
swupdate: switch to local config librt dependency

Upstream rejected[1] the patch added in commit 6a1aa4e2daf0 (swupdate: fix
build with older glibc). Instead of carrying this patch going forward, make
librt an extra library dependency in the Buildroot local swupdate .config.

This solution is somewhat less optimal than the patch, because it always adds
librt regardless of whether SURICATTA_HAWKBIT is enabled. In theory we could
add a test for (BR2_PACKAGE_JSON_C && BR2_PACKAGE_LIBCURL), which are the
SURICATTA_HAWKBIT dependencies, and edit .config at build time. But this adds
much complexity for little gain.

[1] https://groups.google.com/forum/?hl=en#!topic/swupdate/77QWIka27es

Cc: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/swupdate/0002-Makefile.flags-SURICATTA_HAWKBIT-needs-librt-under-o.patch [deleted file]
package/swupdate/swupdate.config