|
|
28f7f8 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
28f7f8 |
From: Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
28f7f8 |
Date: Thu, 31 Dec 2015 23:00:25 +0300
|
|
|
28f7f8 |
Subject: [PATCH] remove temporary .bin files (kernel and modules)
|
|
|
28f7f8 |
|
|
|
28f7f8 |
---
|
|
|
28f7f8 |
gentpl.py | 2 ++
|
|
|
28f7f8 |
grub-core/genmod.sh.in | 2 +-
|
|
|
28f7f8 |
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
28f7f8 |
|
|
|
28f7f8 |
diff --git a/gentpl.py b/gentpl.py
|
|
|
28f7f8 |
index 58430fcd236..c17a18b0ea0 100644
|
|
|
28f7f8 |
--- a/gentpl.py
|
|
|
28f7f8 |
+++ b/gentpl.py
|
|
|
28f7f8 |
@@ -723,9 +723,11 @@ def kernel(defn, platform):
|
|
|
28f7f8 |
"""if test x$(TARGET_APPLE_LINKER) = x1; then \
|
|
|
28f7f8 |
$(TARGET_STRIP) -S -x $(""" + cname(defn) + """) -o $@.bin $<; \
|
|
|
28f7f8 |
$(TARGET_OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2022 -ed2016 -wd1106 -nu -nd $@.bin $@; \
|
|
|
28f7f8 |
+ rm -f $@.bin; \
|
|
|
28f7f8 |
elif test ! -z '$(TARGET_OBJ2ELF)'; then \
|
|
|
28f7f8 |
""" + "$(TARGET_STRIP) $(" + cname(defn) + "_STRIPFLAGS) -o $@.bin $< && \
|
|
|
28f7f8 |
$(TARGET_OBJ2ELF) $@.bin $@ || (rm -f $@; rm -f $@.bin; exit 1); \
|
|
|
28f7f8 |
+ rm -f $@.bin; \
|
|
|
28f7f8 |
else """ + "$(TARGET_STRIP) $(" + cname(defn) + "_STRIPFLAGS) -o $@ $<; \
|
|
|
28f7f8 |
fi"""))
|
|
|
28f7f8 |
|
|
|
28f7f8 |
diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in
|
|
|
28f7f8 |
index f74edd55181..ca2e59d5c42 100644
|
|
|
28f7f8 |
--- a/grub-core/genmod.sh.in
|
|
|
28f7f8 |
+++ b/grub-core/genmod.sh.in
|
|
|
28f7f8 |
@@ -91,7 +91,7 @@ else
|
|
|
28f7f8 |
-nr:_grub_mod_init:grub_mod_init \
|
|
|
28f7f8 |
-nr:_grub_mod_fini:grub_mod_fini \
|
|
|
28f7f8 |
-wd1106 -nu -nd $tmpfile.bin $tmpfile || exit 1
|
|
|
28f7f8 |
- rm -f $name.bin
|
|
|
28f7f8 |
+ rm -f $tmpfile.bin
|
|
|
28f7f8 |
fi
|
|
|
28f7f8 |
if test x@platform@ != xemu; then
|
|
|
28f7f8 |
./build-grub-module-verifier $tmpfile @target_cpu@
|