Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/examples/asm/hello - Since the example is for a cpu, u...



details:   https://anonhg.NetBSD.org/src/rev/c182caefcb61
branches:  trunk
changeset: 371842:c182caefcb61
user:      ryo <ryo%NetBSD.org@localhost>
date:      Fri Oct 14 19:42:13 2022 +0000

description:
- Since the example is for a cpu, use MACHINE_CPU instead of MACHINE_ARCH.
- In some cpu, it is necessary to use GOT to make it a PIE,
  which are too complicated as examples, so MKPIE=no by default.

diffstat:

 share/examples/asm/hello/Makefile.inst |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r fe455f53a18e -r c182caefcb61 share/examples/asm/hello/Makefile.inst
--- a/share/examples/asm/hello/Makefile.inst    Fri Oct 14 19:41:18 2022 +0000
+++ b/share/examples/asm/hello/Makefile.inst    Fri Oct 14 19:42:13 2022 +0000
@@ -1,12 +1,13 @@
-# $NetBSD: Makefile.inst,v 1.1 2011/11/12 01:18:41 jmmv Exp $
+# $NetBSD: Makefile.inst,v 1.2 2022/10/14 19:42:13 ryo Exp $
 
 .include <bsd.own.mk>
 
-.if exists(${MACHINE_ARCH}.s)
+.if exists(${MACHINE_CPU}.s)
 PROG=          hello
 MAN=           # empty
 LDFLAGS=       -nostdlib
-SRCS=          ${MACHINE_ARCH}.s
+SRCS=          ${MACHINE_CPU}.s
+MKPIE=         no
 .endif
 
 .include <bsd.prog.mk>



Home | Main Index | Thread Index | Old Index