aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFlorian Lohoff <flo@rfc822.org>2008-10-04 12:15:43 +0000
committerGuido Günther <agx@sigxcpu.org>2009-01-11 18:11:50 +0100
commit9b278b0264d12e3a9c2b5468fd3333fad1fb45f5 (patch)
tree55dbc389f531d2e4db3cce738d8056d8e3b44b17 /common
parent0b1d5fa90eabd98e3d69734ce1cdcef949d3fb30 (diff)
Remove print_loadaddr and print_outputformat
replace by makefile defines
Diffstat (limited to 'common')
-rw-r--r--common/Makefile9
-rw-r--r--common/print_loadaddr.c30
-rwxr-xr-xcommon/print_outputformat9
3 files changed, 2 insertions, 46 deletions
diff --git a/common/Makefile b/common/Makefile
index 2f160e3..f1f75ca 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -5,12 +5,7 @@ CFLAGS += -Wall -O2 -I. -I../arclib -DSUBARCH=${SUBARCH}
HOSTCC = $(CC)
HOSTCFLAGS += -Wall -O2 -DSUBARCH=$(SUBARCH)
-all: print_loadaddr
-
-print_loadaddr: print_loadaddr.c subarch.h version.h
- $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
-
-install: print_loadaddr
+all:
clean:
- rm -f print_loadaddr *~ tags
+ rm -f *~ tags
diff --git a/common/print_loadaddr.c b/common/print_loadaddr.c
deleted file mode 100644
index 17d648d..0000000
--- a/common/print_loadaddr.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/* small helper to get the current subarch's loaddr */
-
-#include <stdio.h>
-#include <stdint.h>
-#include <strings.h>
-
-#include "subarch.h"
-
-int main(int argc, char *argv[])
-{
- int subarch = SUBARCH;
-
- if (argc == 2) {
- if (!strcasecmp(argv[1], "ip22"))
- subarch = IP22;
- else if (!strcasecmp(argv[1], "ip32"))
- subarch = IP32;
- else {
- fprintf(stderr,
- "Unknown subarchitecture %s requested\n",
- argv[1]);
- return 1;
- }
- }
-
- printf("%#08x\n", kernel_load[subarch].base
- + kernel_load[subarch].reserved);
-
- return 0;
-}
diff --git a/common/print_outputformat b/common/print_outputformat
deleted file mode 100755
index 5593a3c..0000000
--- a/common/print_outputformat
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-# default to ecoff
-
-case $1 in
- ip32 | IP32) echo "elf32-tradbigmips" ;;
- ip22 | IP22) echo "ecoff-bigmips" ;;
- *) echo "ecoff-bigmips" ;;
-esac