aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-09-28 09:48:55 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-09-28 09:48:55 +0200
commit62e4b4f6222baa67fb01fd69988040c512a71517 (patch)
tree7749ca0f6cb968e49a9cec77101c6e2db9a8108b
parentab45e1aa2a43d8a7ac8434dc7cd7d21510b35fc2 (diff)
downloadmaster-187ad058-62e4b4f6222baa67fb01fd69988040c512a71517.tar.gz
master-187ad058-62e4b4f6222baa67fb01fd69988040c512a71517.tar.bz2
master-187ad058-62e4b4f6222baa67fb01fd69988040c512a71517.zip
brcm63xx: fix image generation with offsets/blocksizes != 64K
Defer the CFE_EXTRAs evaluation to allow overriden BLOCK_SIZE and IMAGE_OFFSET take effect, and replace the unused IMAGE_SIZE with IMAGE_OFFSET in DEVICE_VARS. This fixes image generation for targets using different offsets or blocksizes. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
-rw-r--r--target/linux/brcm63xx/image/bcm63xx.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/image/bcm63xx.mk b/target/linux/brcm63xx/image/bcm63xx.mk
index e42c233a64..af14168b74 100644
--- a/target/linux/brcm63xx/image/bcm63xx.mk
+++ b/target/linux/brcm63xx/image/bcm63xx.mk
@@ -28,9 +28,9 @@ define Device/bcm63xx
FLASH_MB := 4
CFE_BOARD_ID :=
CFE_CHIP_ID :=
- CFE_EXTRAS := --block-size $$(BLOCK_SIZE) --image-offset $$(if $$(IMAGE_OFFSET),$$(IMAGE_OFFSET),$$(BLOCK_SIZE))
+ CFE_EXTRAS = --block-size $$(BLOCK_SIZE) --image-offset $$(if $$(IMAGE_OFFSET),$$(IMAGE_OFFSET),$$(BLOCK_SIZE))
endef
-DEVICE_VARS += BLOCK_SIZE FLASH_MB IMAGE_SIZE
+DEVICE_VARS += BLOCK_SIZE FLASH_MB IMAGE_OFFSET
DEVICE_VARS += CFE_BOARD_ID CFE_CHIP_ID CFE_EXTRAS
define Device/bcm63xx_netgear