Mercurial > hg > aboriginal
annotate sources/patches/elf2flt-make.patch @ 1704:3675adfb4e36 draft
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 07 Nov 2014 08:49:26 -0600 |
parents | |
children |
rev | line source |
---|---|
1704
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 Remove nonexistent header (which apparently has no symbols we need), |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 and teach makefile that the prefix can be something other than full target name. |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 diff -ruN elf2flt/ld-elf2flt.c elf2flt.bak/ld-elf2flt.c |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 --- elf2flt/ld-elf2flt.c 2012-10-03 21:32:38.000000000 -0500 |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 +++ elf2flt.bak/ld-elf2flt.c 2014-11-06 23:42:35.703148578 -0600 |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 @@ -24,7 +24,6 @@ |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 #include <unistd.h> |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 #include <errno.h> |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 #include <libiberty.h> |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 -#include <filenames.h> |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 #include "stubs.h" |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 const char *elf2flt_progname; |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 diff -ruN elf2flt/Makefile.in elf2flt.bak/Makefile.in |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 --- elf2flt/Makefile.in 2012-10-03 21:32:38.000000000 -0500 |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 +++ elf2flt.bak/Makefile.in 2014-11-07 08:12:07.914832959 -0600 |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 @@ -97,15 +97,15 @@ |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 $(INSTALL) -d $(bindir) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 $(INSTALL) -d $(target_bindir) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 $(INSTALL) -d $(target_libdir) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 - $(INSTALL) -m 755 $(PROG_FLTHDR) $(bindir)/$(TARGET)-$(PROG_FLTHDR) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 + $(INSTALL) -m 755 $(PROG_FLTHDR) $(bindir)/$(PREFIX)$(PROG_FLTHDR) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 $(INSTALL) -m 755 $(PROG_FLTHDR) $(target_bindir)/$(PROG_FLTHDR) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 - $(INSTALL) -m 755 $(PROG_ELF2FLT) $(bindir)/$(TARGET)-$(PROG_ELF2FLT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 + $(INSTALL) -m 755 $(PROG_ELF2FLT) $(bindir)/$(PREFIX)$(PROG_ELF2FLT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 $(INSTALL) -m 755 $(PROG_ELF2FLT) $(target_bindir)/$(PROG_ELF2FLT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 - [ -f $(bindir)/$(TARGET)-ld.real$(EXEEXT) ] || \ |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 - mv $(bindir)/$(TARGET)-ld$(EXEEXT) $(bindir)/$(TARGET)-ld.real$(EXEEXT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 + [ -f $(bindir)/$(PREFIX)ld.real$(EXEEXT) ] || \ |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 + mv $(bindir)/$(PREFIX)ld$(EXEEXT) $(bindir)/$(PREFIX)ld.real$(EXEEXT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 [ -f $(target_bindir)/ld.real$(EXEEXT) ] || \ |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 mv $(target_bindir)/ld$(EXEEXT) $(target_bindir)/ld.real$(EXEEXT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 - $(INSTALL) -m 755 $(PROG_LD_ELF2FLT) $(bindir)/$(TARGET)-ld$(EXEEXT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 + $(INSTALL) -m 755 $(PROG_LD_ELF2FLT) $(bindir)/$(PREFIX)ld$(EXEEXT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 $(INSTALL) -m 755 $(PROG_LD_ELF2FLT) $(target_bindir)/ld$(EXEEXT) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 $(INSTALL) -m 644 $(SRC_LDFILE) $(target_libdir)/$(LDFILE) |
3675adfb4e36
Add basic elf2flt support to simple-cross-compiler.sh and sh2eb.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 |