summaryrefslogtreecommitdiff
path: root/target/tools/addpattern
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-19 23:49:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-19 23:49:22 +0100
commite82e715e89dde09644b274e452f437b6fe88a254 (patch)
treeb02b4a61d93ff440279275e933509aaa186faacd /target/tools/addpattern
parent9bd580116f2f05685e5a332ed274eff14c04cee6 (diff)
add XX_FOR_BUILD variables, they are more standard compliant and used by autotools
Diffstat (limited to 'target/tools/addpattern')
-rw-r--r--target/tools/addpattern/Makefile4
-rw-r--r--target/tools/addpattern/addpattern.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/target/tools/addpattern/Makefile b/target/tools/addpattern/Makefile
index c60561ccf..596daeb52 100644
--- a/target/tools/addpattern/Makefile
+++ b/target/tools/addpattern/Makefile
@@ -1,4 +1,4 @@
include $(TOPDIR)/rules.mk
-all:
- $(HOSTCC) ${HOSTCFLAGS} -o ${STAGING_HOST_DIR}/bin/addpattern addpattern.c
+all: addpattern.c
+ $(CC_FOR_BUILD) $(FLAGS_FOR_BUILD) -o ${STAGING_HOST_DIR}/bin/addpattern addpattern.c
diff --git a/target/tools/addpattern/addpattern.c b/target/tools/addpattern/addpattern.c
index 6f2a036c0..8133bf26e 100644
--- a/target/tools/addpattern/addpattern.c
+++ b/target/tools/addpattern/addpattern.c
@@ -116,8 +116,6 @@ int main(int argc, char **argv)
time_t t;
struct tm *ptm;
- fprintf(stderr, "mjn3's addpattern replacement - v0.81\n");
-
hdr = (struct code_header *) buf;
memset(hdr, 0, sizeof(struct code_header));
@@ -229,7 +227,6 @@ int main(int argc, char **argv)
if (gflag) {
gflag = sizeof(buf) - n;
memset(buf + n, 0xff, gflag);
- fprintf(stderr, "adding %d bytes of garbage\n", gflag);
n = sizeof(buf);
}
}