Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/in_cksum Too hard to cross-build mkassym.c correct...
details: https://anonhg.NetBSD.org/src/rev/61f7e6609a39
branches: trunk
changeset: 335407:61f7e6609a39
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 05 23:46:49 2015 +0000
description:
Too hard to cross-build mkassym.c correctly, use a standard assym.h
diffstat:
tests/net/in_cksum/Makefile | 8 ++------
tests/net/in_cksum/assym.h | 10 ++++++++++
tests/net/in_cksum/mkassym.c | 15 ---------------
3 files changed, 12 insertions(+), 21 deletions(-)
diffs (60 lines):
diff -r fa1bdf6554d8 -r 61f7e6609a39 tests/net/in_cksum/Makefile
--- a/tests/net/in_cksum/Makefile Mon Jan 05 23:25:10 2015 +0000
+++ b/tests/net/in_cksum/Makefile Mon Jan 05 23:46:49 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2015/01/05 23:25:10 christos Exp $
+# $NetBSD: Makefile,v 1.3 2015/01/05 23:46:49 christos Exp $
.include <bsd.own.mk>
@@ -16,16 +16,12 @@
.PATH.S: ${ADIR}
SRCS.in_cksum+=cpu_in_cksum.S in_cksum.c
cpu_in_cksum.S: assym.h
-CLEANFILES+= assym.h
CPPFLAGS+=-DHAVE_CPU_IN_CKSUM -I.
.endif
.endfor
-PROGS=in_cksum mkassym
+PROGS=in_cksum
CPPFLAGS+=-I${CDIR}
-assym.h: mkassym
- ${.ALLSRC} > ${.TARGET}
-
.include <bsd.test.mk>
diff -r fa1bdf6554d8 -r 61f7e6609a39 tests/net/in_cksum/assym.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/net/in_cksum/assym.h Mon Jan 05 23:46:49 2015 +0000
@@ -0,0 +1,10 @@
+/* XXX: Depends on m_hdr */
+#ifdef _LP64
+#define M_NEXT 0
+#define M_DATA 16
+#define M_LEN 32
+#else
+#define M_NEXT 0
+#define M_DATA 8
+#define M_LEN 16
+#endif
diff -r fa1bdf6554d8 -r 61f7e6609a39 tests/net/in_cksum/mkassym.c
--- a/tests/net/in_cksum/mkassym.c Mon Jan 05 23:25:10 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mbuf.h>
-#include <stddef.h>
-#include <stdio.h>
-
-int
-main(void)
-{
- printf("#define M_LEN %zu\n", offsetof(struct m_hdr, mh_len));
- printf("#define M_DATA %zu\n", offsetof(struct m_hdr, mh_data));
- printf("#define M_NEXT %zu\n", offsetof(struct m_hdr, mh_next));
- return 0;
-}
Home |
Main Index |
Thread Index |
Old Index