]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Don't strip on any-emu
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 7 Feb 2010 02:43:07 +0000 (03:43 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 7 Feb 2010 02:43:07 +0000 (03:43 +0100)
conf/any-emu.rmk
genmk.rb

index ebcc9087c9866a60e611ce7547fd063c6f9d1ab3..983dc2c1fbbc9ecc74d6ab1dac047e8c798ca09e 100644 (file)
@@ -23,6 +23,7 @@ kernel_img_SOURCES = kern/device.c kern/disk.c kern/dl.c  kern/env.c  \
        grub_emu_init.c gnulib/progname.c
 kernel_img_CFLAGS = $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1
 kernel_img_LDFLAGS = $(COMMON_LDFLAGS)
+TARGET_NO_STRIP = yes
 
 # For hostfs.mod.
 pkglib_MODULES += hostfs.mod
index df03e1dfef6bf2eb9b001916b21428b54ff006ec..65bcb3ddd62fbfde1ecde55fb72b320f501eb689 100644 (file)
--- a/genmk.rb
+++ b/genmk.rb
@@ -148,7 +148,7 @@ ifneq ($(TARGET_APPLE_CC),1)
        -rm -f $@
        $(TARGET_CC) $(#{prefix}_LDFLAGS) $(TARGET_LDFLAGS) -Wl,-r,-d -o $@ #{pre_obj} #{mod_obj}
        if test ! -z \"$(TARGET_OBJ2ELF)\"; then ./$(TARGET_OBJ2ELF) $@ || (rm -f $@; exit 1); fi
-       $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@
+       if test x$(TARGET_NO_STRIP) != xyes ; then $(STRIP) --strip-unneeded -K grub_mod_init -K grub_mod_fini -K _grub_mod_init -K _grub_mod_fini -R .note -R .comment $@; fi
 else
 #{@name}: #{pre_obj} #{mod_obj} $(TARGET_OBJ2ELF)
        -rm -f $@
@@ -330,11 +330,11 @@ MOSTLYCLEANFILES += #{deps_str}
 ifeq ($(#{prefix}_RELOCATABLE),yes)
 #{@name}: $(#{prefix}_DEPENDENCIES) #{objs_str}
        $(TARGET_CC) -Wl,-r,-d -o $@ #{objs_str} $(TARGET_LDFLAGS) $(#{prefix}_LDFLAGS)
-       $(STRIP) --strip-unneeded -K start -R .note -R .comment $@
+       if test x$(TARGET_NO_STRIP) != xyes ; then $(STRIP) --strip-unneeded -K start -R .note -R .comment $@; fi
 else
 #{@name}: $(#{prefix}_DEPENDENCIES) #{objs_str}
        $(TARGET_CC) -o $@ #{objs_str} $(TARGET_LDFLAGS) $(#{prefix}_LDFLAGS)
-       $(STRIP) -R .rel.dyn -R .reginfo -R .note -R .comment $@
+       if test x$(TARGET_NO_STRIP) != xyes ; then $(STRIP) -R .rel.dyn -R .reginfo -R .note -R .comment $@; fi
 endif
 
 " + objs.collect_with_index do |obj, i|