diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2012-04-12 15:03:22 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-04-17 08:59:19 +0200 |
commit | e380b0f858bd85724ecd7ffdbabd071986446c43 (patch) | |
tree | 729de51b2a23e45b8d38a10871bc3dd65486cd23 /src/southbridge | |
parent | f543c7b6d3e485dd59555de04e2649b19953187c (diff) |
More portable s3 scratch space creation
echo -n isn't portable. echo -e isn't portable. that bash loop isn't portable.
So let's try something else.
Change-Id: Ie73aa1c09d90c11a5c4952a332d4c2058390b5db
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Reviewed-on: http://review.coreboot.org/889
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Zheng Bao <zheng.bao@amd.com>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/southbridge')
-rw-r--r-- | src/southbridge/amd/Makefile.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/amd/Makefile.inc b/src/southbridge/amd/Makefile.inc index 2cdca290bf..f4a9cbb69d 100644 --- a/src/southbridge/amd/Makefile.inc +++ b/src/southbridge/amd/Makefile.inc @@ -17,8 +17,8 @@ subdirs-$(CONFIG_SOUTHBRIDGE_AMD_CIMX_SB900) += cimx $(obj)/s3.rom: echo " S3 NVRAM 0xffff0000 (S3 storage area)" - echo -ne '\xFF' > $@ - for ((i=0;i<20479;i++)) do echo -ne '\xFF' >> $@ ; done + awk 'BEGIN {for (i=0; i<20480; i++) {printf "%c", 255}}' > $@.tmp + mv $@.tmp $@ ifeq ($(CONFIG_HAVE_ACPI_RESUME), y) cbfs-files-y += s3nv |