]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
emu platform fixes
authorBVK Chaitanya <bvk.groups@gmail.com>
Tue, 13 Jul 2010 18:28:30 +0000 (23:58 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Tue, 13 Jul 2010 18:28:30 +0000 (23:58 +0530)
gentpl.py
grub-core/modules.def

index 5081cf4832fb8ace628c7338ef0af5425ae551c5..a85dd3ed94c44189ce27c4537167e6f48ffa0f98 100644 (file)
--- a/gentpl.py
+++ b/gentpl.py
@@ -254,7 +254,7 @@ def kernel(platform):
     r += gvar_add("platform_DATA", "[+ name +].img")
     r += gvar_add("CLEANFILES", "[+ name +].img")
     r += rule("[+ name +].img", "[+ name +].exec$(EXEEXT)",
-              if_platform_tagged(platform, "nostrip", lambda: "cp $@ $<",
+              if_platform_tagged(platform, "nostrip", lambda: "cp $< $@",
                                  lambda: "$(STRIP) $(" + cname() + "_STRIPFLAGS) -o $@ $<"))
     return r
 
index b63c709228d95763dc04e548d242b7fad6b30d05..b2d57a6fd1a5bceb3c5c388bbafb10ae16b3a59b 100644 (file)
@@ -3,6 +3,8 @@ AutoGen definitions Makefile.tpl;
 kernel = {
   name = kernel;
 
+  nostrip = emu;
+
   emu_ldflags              = '-Wl,-r,-d';
   x86_efi_ldflags          = '-Wl,-r,-d';
   x86_efi_stripflags       = '--strip-unneeded -K start -R .note -R .comment';
@@ -1218,6 +1220,7 @@ module = {
   mips = lib/mips/setjmp.S;
   sparc64 = lib/sparc64/setjmp.S;
   powerpc = lib/powerpc/setjmp.S;
+  emu = 'lib/$(target_cpu)/setjmp.S';
 };
 
 module = {