summaryrefslogtreecommitdiff
path: root/Makefile.d/buildrom-withgrub.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.d/buildrom-withgrub.mk')
-rw-r--r--Makefile.d/buildrom-withgrub.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.d/buildrom-withgrub.mk b/Makefile.d/buildrom-withgrub.mk
index 11b223e..2a30217 100644
--- a/Makefile.d/buildrom-withgrub.mk
+++ b/Makefile.d/buildrom-withgrub.mk
@@ -27,12 +27,12 @@ roms/%(board)_%(keymap)_%(romtype).rom: \
cp $< $@.tmp
$(CBFSTOOL) $@.tmp add -f tmp/grub_%(keymap)_%(romtype).cfg -n grub.cfg -t raw
$(CBFSTOOL) $@.tmp add -f tmp/grub_%(keymap)_%(romtype)_test.cfg -n grubtest.cfg -t raw
+# Needed on i945 systems for the bucts/dd trick (documented)
+# This enables the ROM to be flashed over the lenovo bios firmware
$(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 && \
rm -f '$@.tmp.top64k')
- mv $@.tmp $@
+ mv -f $@.tmp $@
endef
$(eval $(call multiglob,rom,board keymap romtype))