diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/image-commands.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/image-commands.mk b/include/image-commands.mk index 51e745958e..4d54a14ba4 100644 --- a/include/image-commands.mk +++ b/include/image-commands.mk @@ -240,8 +240,11 @@ define Build/jffs2 endef define Build/kernel2minor - kernel2minor -k $@ -r $@.new $(1) - mv $@.new $@ + $(eval temp_file := $(shell mktemp)) + cp $@ $(temp_file) + kernel2minor -k $(temp_file) -r $(temp_file).new $(1) + mv $(temp_file).new $@ + rm -f $(temp_file) endef define Build/kernel-bin |