Makefile: Have binary_size_check report only first match of _image_binary_end
If we have ASSERT macros that validate the position of _image_binary_end, our awk expression will report a string that causes the rest of our check to fail with garbage values. Have it exit after the first match to fix this. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
2
Makefile
2
Makefile
@@ -1583,7 +1583,7 @@ binary_size_check: u-boot-nodtb.bin FORCE
|
|||||||
map_size=$(shell cat u-boot.map | \
|
map_size=$(shell cat u-boot.map | \
|
||||||
awk ' \
|
awk ' \
|
||||||
/_image_copy_start/ { start = $$1 } \
|
/_image_copy_start/ { start = $$1 } \
|
||||||
/_image_binary_end/ { end = $$1 } \
|
/_image_binary_end/ { end = $$1;exit } \
|
||||||
END { \
|
END { \
|
||||||
if (start != "" && end != "") \
|
if (start != "" && end != "") \
|
||||||
print end " " start; \
|
print end " " start; \
|
||||||
|
|||||||
Reference in New Issue
Block a user