summaryrefslogtreecommitdiff
path: root/src/mainboard/google/link/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/link/Makefile.inc')
-rw-r--r--src/mainboard/google/link/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/link/Makefile.inc b/src/mainboard/google/link/Makefile.inc
index 62746adbea..bd2cbf5842 100644
--- a/src/mainboard/google/link/Makefile.inc
+++ b/src/mainboard/google/link/Makefile.inc
@@ -37,7 +37,11 @@ SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.
# Include spd rom data
$(SPD_BIN): $(SPD_DEPS)
- for f in $^; do for c in $$(cat $$f); do echo -e -n "\\x$$c"; done; done > $@
+ for f in $+; \
+ do for c in $$(cat $$f | grep -v ^#); \
+ do printf $$(printf '\%o' 0x$$c); \
+ done; \
+ done > $@
cbfs-files-y += spd.bin
spd.bin-file := $(SPD_BIN)