diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-28 18:40:05 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-28 18:40:05 -0500 |
commit | 8fe05997a4ffe4d193a4ba763edc2a25e49dafc5 (patch) | |
tree | 019dac5b1dae9b03b93a63725a3f2e48e2acee2e | |
parent | 20aa235c42d297d247fa62f5df35fae4d32a6cf2 (diff) |
Darn, $$ needs to be $$$$ when using loop_rule
-rw-r--r-- | buildrom-withgrub.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/buildrom-withgrub.mk b/buildrom-withgrub.mk index 30c87a6..1bfa553 100644 --- a/buildrom-withgrub.mk +++ b/buildrom-withgrub.mk @@ -16,6 +16,7 @@ tmp/$(board)_nokeyboard_$(romtype).rom: builddeps-coreboot \ endef $(eval $(call loop_rule,rom_nokeyboard,board romtype)) +# Unfortunately, any $$ in the rule must become $$$$ define rule_rom bin/$(board)_$(keymap)_$(romtype).rom: \ tmp/$(board)_nokeyboard_$(romtype).rom \ @@ -28,8 +29,8 @@ bin/$(board)_$(keymap)_$(romtype).rom: \ $(if $(filter $(board),$(i945boards)),\ # Needed on i945 systems for the bucts/dd trick (documented) # This enables the ROM to be flashed over the lenovo bios firmware - dd if='$@.tmp' of='$@.tmp.top64k' bs=1 skip=$$[$$(stat -c %s '$@.tmp') - 0x10000] count=64k && \ - dd if='$@.tmp.top64k' of='$@.tmp' bs=1 seek=$$[$$(stat -c %s '$@.tmp') - 0x20000] count=64k conv=notrunc && \ + dd if='$@.tmp' of='$@.tmp.top64k' bs=1 skip=$$$$[$$$$(stat -c %s '$@.tmp') - 0x10000] count=64k && \ + dd if='$@.tmp.top64k' of='$@.tmp' bs=1 seek=$$$$[$$$$(stat -c %s '$@.tmp') - 0x20000] count=64k conv=notrunc && \ rm -f '$@.tmp.top64k') mv $@.tmp $@ endef |