summaryrefslogtreecommitdiffstats
path: root/core/definitions.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2011-02-09 16:10:11 -0800
committerYing Wang <wangying@google.com>2011-02-09 16:15:21 -0800
commitbfaf531e05b3f024dc758ab5211ef9b067f60754 (patch)
treeaac571aa941f1af72602a2641fffc71ac6bc2a6f /core/definitions.mk
parent9a0c36af91f3be1ddf7537e59719d72f22b7bd13 (diff)
downloadbuild-bfaf531e05b3f024dc758ab5211ef9b067f60754.zip
build-bfaf531e05b3f024dc758ab5211ef9b067f60754.tar.gz
build-bfaf531e05b3f024dc758ab5211ef9b067f60754.tar.bz2
Revert "Fix the case BOARD_FLASH_BLOCK_SIZE smaller than BOARD_NAND_PAGE_SIZE, eg generic_x86"
This reverts commit 279f3084bbb4781d872412f5e49c74f462f7844a. Change-Id: I27069190503e586d3d77a933d92459a34eb55cb8
Diffstat (limited to 'core/definitions.mk')
-rw-r--r--core/definitions.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index ff4db40..6fd4b99 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1833,10 +1833,8 @@ endif
# spare area for each page).
# $(1): the partition data size
define image-size-from-data-size
-$(strip $(eval _isfds_value := $(shell echo $$(($(1) / $(BOARD_NAND_PAGE_SIZE) * \
- ($(BOARD_NAND_PAGE_SIZE)+$(BOARD_NAND_SPARE_SIZE))))))\
-$(if $(filter 0, $(_isfds_value)),$(shell echo $$(($(BOARD_NAND_PAGE_SIZE)+$(BOARD_NAND_SPARE_SIZE)))),$(_isfds_value))\
-$(eval _isfds_value :=))
+$(shell echo $$(($(1) / $(BOARD_NAND_PAGE_SIZE) * \
+ ($(BOARD_NAND_PAGE_SIZE)+$(BOARD_NAND_SPARE_SIZE)))))
endef
# $(1): The file(s) to check (often $@)