summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-22 23:36:41 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-22 23:36:41 +0000
commitcbb32d16c4aae19ba65df6e0a16bfd2ca433c634 (patch)
tree8ebd1565e5350c20b48c757ffa38420568ea9c43
parentc743a19bb2d32a81517f006b277e12cbff51d5b3 (diff)
downloadbuildroot-novena-cbb32d16c4aae19ba65df6e0a16bfd2ca433c634.tar.gz
buildroot-novena-cbb32d16c4aae19ba65df6e0a16bfd2ca433c634.zip
- pass a LC_ALL to du to avoid i18n trouble when calculating the size.
Fixes #1044
-rw-r--r--target/ext2/ext2root.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/ext2/ext2root.mk b/target/ext2/ext2root.mk
index c88437f2b..56959b9fe 100644
--- a/target/ext2/ext2root.mk
+++ b/target/ext2/ext2root.mk
@@ -86,7 +86,7 @@ $(EXT2_BASE): host-fakeroot makedevs genext2fs
>> $(STAGING_DIR)/_fakeroot.$(notdir $(EXT2_TARGET))
# Use fakeroot so genext2fs believes the previous fakery
ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
- GENEXT2_REALSIZE=`LANG=C du -l -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \
+ GENEXT2_REALSIZE=`LANG=C LC_ALL=POSIX du -l -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \
GENEXT2_ADDTOROOTSIZE=`if [ $$GENEXT2_REALSIZE -ge 20000 ] ; then echo 16384; else echo 2400; fi`; \
GENEXT2_SIZE=`expr $$GENEXT2_REALSIZE + $$GENEXT2_ADDTOROOTSIZE`; \
GENEXT2_ADDTOINODESIZE=`find $(TARGET_DIR) | wc -l`; \