]> git.dujemihanovic.xyz Git - u-boot.git/commit
Makefile: reusable function for BOARD_SIZE_CHECK
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 2 Apr 2019 17:19:04 +0000 (19:19 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 7 Jun 2019 15:03:39 +0000 (11:03 -0400)
commitb275030e50bcf3b6c2b3d1eb05f1d4fad5317e01
treec46c2abdaacd7a53cb135bfc97995edee4fd0622
parentdbbb1c43f26cb28b64df80b72fffbaf2801e8a30
Makefile: reusable function for BOARD_SIZE_CHECK

Carve out function size_check from macro BOARD_SIZE_CHECK. This will allow
us to reuse the function for other file size checks.

Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like the
following is thrown:

u-boot-dtb.img exceeds file size limit:
  limit:  409516 bytes
  actual: 444346 bytes
  excess: 34830 bytes
make: *** [Makefile:1212: u-boot-dtb.img] Error 1

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Makefile