Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
Suffix for RAM and silent console images versions, indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pepe2k committed Nov 19, 2014
1 parent 1510138 commit 9a415a7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,15 @@ gl-inet:
@make --no-print-directory show_size

ifdef CONFIG_SKIP_LOWLEVEL_INIT
ifdef DISABLE_CONSOLE_OUTPUT
show_size: export UBOOT_FILE_NAME_SUFFIX=__SILENT-CONSOLE__RAM
else
show_size: export UBOOT_FILE_NAME_SUFFIX=__RAM
endif
else
ifdef DISABLE_CONSOLE_OUTPUT
show_size: export UBOOT_FILE_NAME_SUFFIX=__SILENT-CONSOLE
endif
endif
show_size:
ifdef COMPRESSED_UBOOT
Expand All @@ -235,10 +243,10 @@ endif
@`echo ' *'$(UBOOT_FILE_NAME)$(UBOOT_FILE_NAME_SUFFIX).bin >> $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME)$(UBOOT_FILE_NAME_SUFFIX).md5`
# Do not check image size for RAM version
ifndef CONFIG_SKIP_LOWLEVEL_INIT
@if [ "`wc -c < $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME).bin`" -gt "`/bin/echo '$(MAX_UBOOT_SIZE)*1024' | bc`" ]; then \
@if [ "`wc -c < $(BUILD_TOPDIR)/bin/$(UBOOT_FILE_NAME)$(UBOOT_FILE_NAME_SUFFIX).bin`" -gt "`/bin/echo '$(MAX_UBOOT_SIZE)*1024' | bc`" ]; then \
/bin/echo -e "\e[31m\n**************************************************"; \
/bin/echo "* WARNING: U-BOOT IMAGE SIZE IS TOO BIG! *"; \
/bin/echo -e "**************************************************"; \
/bin/echo "* WARNING: U-BOOT IMAGE SIZE IS TOO BIG! *"; \
/bin/echo -e "**************************************************"; \
fi;
endif
@/bin/echo -ne "\e[0m"
Expand Down

0 comments on commit 9a415a7

Please sign in to comment.