summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2015-05-06 12:32:04 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-07 09:49:40 +0200
commitc66574342dacbdb755ac8193057fc34e9b175c0b (patch)
tree80274686f87ea50df7ceabf2080d769ffa3c2986 /Makefile
parent059098fe07e06d5ebec484a5b4747197955b53ce (diff)
downloadbarebox-c66574342dacbdb755ac8193057fc34e9b175c0b.tar.gz
barebox-c66574342dacbdb755ac8193057fc34e9b175c0b.tar.xz
Makefile.lib: Make 'check_file_size' more flexible
Make 'check_file_size' more flexible by not hardcoding the file whose size is going to be checked to '$@'. This way it is possible to use this subroutine to check the size of files other than the target of the rule. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3cea2fa1e5..979baf6fba 100644
--- a/Makefile
+++ b/Makefile
@@ -700,7 +700,7 @@ OBJCOPYFLAGS_barebox.bin = -O binary
barebox.bin: barebox FORCE
$(call if_changed,objcopy)
ifndef CONFIG_PBL_IMAGE
- $(call cmd,check_file_size,$(CONFIG_BAREBOX_MAX_IMAGE_SIZE))
+ $(call cmd,check_file_size,$@,$(CONFIG_BAREBOX_MAX_IMAGE_SIZE))
endif
# By default the uImage load address is 2MB below CONFIG_TEXT_BASE,