build: image: move IMAGE_SIZE to image.mk
authorSungbo Eo <mans0n@gorani.run>
Mon, 9 Mar 2020 12:14:06 +0000 (21:14 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 11 Mar 2020 17:25:06 +0000 (18:25 +0100)
commit90daff4cf8a86622012217d3be7ce136c313a896
tree5c42cb53114f8953a58327bb3980bbb40423c579
parent14a07fa1f000f962d55bf53cfe9b128448b1f11f
build: image: move IMAGE_SIZE to image.mk

IMAGE_SIZE is widely used in many targets. Declare it in the default template to
clean up redundant code. This also prevents deriving IMAGE_SIZE unintentionally
from the previously defined device.

While at it, remove duplicate KERNEL_SIZE declaration.

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
include/image.mk
target/linux/apm821xx/image/Makefile
target/linux/ar71xx/image/Makefile
target/linux/ath79/image/Makefile
target/linux/lantiq/image/Makefile
target/linux/ramips/image/Makefile