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>
This commit is contained in:
committed by
Adrian Schmutzler
parent
14a07fa1f0
commit
90daff4cf8
@@ -3,7 +3,7 @@ include $(INCLUDE_DIR)/image.mk
|
||||
|
||||
KERNEL_LOADADDR = 0x80060000
|
||||
|
||||
DEVICE_VARS += IMAGE_SIZE LOADER_FLASH_OFFS LOADER_TYPE
|
||||
DEVICE_VARS += LOADER_FLASH_OFFS LOADER_TYPE
|
||||
|
||||
define Build/loader-common
|
||||
rm -rf $@.src
|
||||
|
||||
Reference in New Issue
Block a user