* gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 2 Mar 2012 10:11:00 +0000 (11:11 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 2 Mar 2012 10:11:00 +0000 (11:11 +0100)
strip already transforms he format.

ChangeLog
gentpl.py

index 23c82d4..440487f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
+       strip already transforms he format.
+
 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
index 717fd50..d7552d4 100644 (file)
--- a/gentpl.py
+++ b/gentpl.py
@@ -426,9 +426,6 @@ def kernel(platform):
 """if test x$(USE_APPLE_CC_FIXES) = xyes; then \
   $(STRIP) $(""" + cname() + """) -o $@.bin $<; \
   $(OBJCONV) -f$(TARGET_MODULE_FORMAT) -nr:_grub_mod_init:grub_mod_init -nr:_grub_mod_fini:grub_mod_fini -ed2031 -ed2022 -wd1106 -nu -nd $@.bin $@; \
-elif test ! -z '$(TARGET_OBJ2ELF)'; then \
-  $(STRIP) $(""" + cname() + """_STRIPFLAGS) -o $@ $<;\
-   $(TARGET_OBJ2ELF) $@.bin && cp $@.bin $@ || (rm -f $@.bin; exit 1); \
 else """  + "$(STRIP) $(" + cname() + "_STRIPFLAGS) -o $@ $<; \
 fi"""))
     return r