| Revision 1,
587 bytes
checked in by vitalyb, 6 years ago
(diff) |
|
Initial import.
|
| Rev | Line | |
|---|
| [1] | 1 | topdir=../../../../ |
|---|
| 2 | |
|---|
| 3 | include $(topdir)makefile.inc |
|---|
| 4 | |
|---|
| 5 | all: libplatformsub.a |
|---|
| 6 | |
|---|
| 7 | OBJS=boot.o stubs_min.o stubs_auto.o stubs_entry.o lib.o stubs_entry_2.o |
|---|
| 8 | |
|---|
| 9 | libplatformsub.a: $(OBJS) |
|---|
| 10 | |
|---|
| 11 | clean: |
|---|
| 12 | rm -f *.o *.a |
|---|
| 13 | |
|---|
| 14 | stubs_auto.S: boot.c |
|---|
| 15 | # UNIX shell magick ) |
|---|
| 16 | cat $< | \ |
|---|
| 17 | grep 'BL\?[[:space:]]*sub_[0-9A-Fa-f]' | \ |
|---|
| 18 | sed 's/.*sub_\([0-9A-Fa-f]*\).*/\1/' | \ |
|---|
| 19 | sort | uniq | \ |
|---|
| 20 | awk 'BEGIN {print "/* THIS FILE IS GENERATED */\n#include \"stubs_asm.h\"\n"} \ |
|---|
| 21 | {printf("STUB(%s)\n",$$1)}' > stubs_auto.S |
|---|
| 22 | |
|---|
| 23 | stubs_entry.S: |
|---|
| 24 | $(topdir)tools/finsig $(TARGET_PRIMARY) $(ROMBASEADDR) > stubs_entry.S |
|---|
Note: See
TracBrowser
for help on using the repository browser.