mtd: add build hack to reintroduce shared mtd for older releases
authorJo-Philipp Wich <jo@mein.io>
Wed, 6 Jun 2018 11:41:26 +0000 (13:41 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 6 Jun 2018 11:44:50 +0000 (13:44 +0200)
commit6734f32d91cd31ec5c2cc44a021a9839232fe587
tree5025ceffb199bdcd97403013851c56cf88e90d66
parentaaac9e82aa60e11ea76a9f606cc68a8bd399365b
mtd: add build hack to reintroduce shared mtd for older releases

When running in SDK context, treat the mtd package as shared to reintroduce
the common repository binary package for older released IBs.

When building outside of the SDK, create a nonshared package with a higher
PKG_REVISION to let opkg prefer that over the shared one in the common repo.

Ref: https://forum.lede-project.org/t/17-01-4-opkg-install-cmd-cannot-install-package-mtd/15312
Fixes: aaac9e82aa ("mtd: mark as nonshared to fix FS#484")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/system/mtd/Makefile