Merge "Switch to toybox stat on macOS too." am: fdef43d69c
am: 7fde0b2e81
am: f279e6d010
am: a6728e1f1d
Change-Id: I98f615b19fcbaaea200316818affa8b08698c1a9
This commit is contained in:
commit
386902d9db
3 changed files with 3 additions and 13 deletions
|
@ -59,8 +59,3 @@ $(hide) $(PRIVATE_CXX) \
|
||||||
$(PRIVATE_LDFLAGS) \
|
$(PRIVATE_LDFLAGS) \
|
||||||
$(PRIVATE_LDLIBS)
|
$(PRIVATE_LDLIBS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# $(1): The file to check
|
|
||||||
define get-file-size
|
|
||||||
stat -f "%z" $(1)
|
|
||||||
endef
|
|
||||||
|
|
|
@ -23,8 +23,3 @@ endef
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
## Macros after this line are shared by the 64-bit config.
|
## Macros after this line are shared by the 64-bit config.
|
||||||
|
|
||||||
# $(1): The file to check
|
|
||||||
define get-file-size
|
|
||||||
stat -c "%s" "$(1)" | tr -d '\n'
|
|
||||||
endef
|
|
||||||
|
|
|
@ -2678,9 +2678,9 @@ endef
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
# $(1): The file to check
|
# $(1): The file to check
|
||||||
ifndef get-file-size
|
define get-file-size
|
||||||
$(error HOST_OS must define get-file-size)
|
stat -c "%s" "$(1)" | tr -d '\n'
|
||||||
endif
|
endef
|
||||||
|
|
||||||
# $(1): The file(s) to check (often $@)
|
# $(1): The file(s) to check (often $@)
|
||||||
# $(2): The partition size.
|
# $(2): The partition size.
|
||||||
|
|
Loading…
Reference in a new issue