Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386/bioscall PR/14946: Rafal Boni: M...
details: https://anonhg.NetBSD.org/src/rev/ed933889df52
branches: sommerfeld_i386mp_1
changeset: 482465:ed933889df52
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 14 20:32:24 2001 +0000
description:
PR/14946: Rafal Boni: Make this work again.
Notes:
- I added bsd.obj.mk and made it work with objdirs.
- I added an entry point to the linker to fix a warning.
- I made the backup of biostramp.inc silent.
- I added missing clean targets.
This needs to be tested further.
diffstat:
sys/arch/i386/bioscall/Makefile | 59 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 59 insertions(+), 0 deletions(-)
diffs (63 lines):
diff -r 09258297e6c5 -r ed933889df52 sys/arch/i386/bioscall/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/bioscall/Makefile Fri Dec 14 20:32:24 2001 +0000
@@ -0,0 +1,59 @@
+# $NetBSD: Makefile,v 1.12.2.2 2001/12/14 20:32:24 christos Exp $
+
+CPPFLAGS= ${APMCPPFLAGS}
+KSRC=${.CURDIR}/../../..
+ARCHSRC=${.CURDIR}/../..
+I386=${KSRC}/arch/i386
+CPPFLAGS+=-I${ARCHSRC} -I${KSRC} -I${.CURDIR} -I${.OBJDIR} -D_LKM
+
+SRCS= biostramp.S
+OBJS= biostramp.o
+DEPS= ${APMDEPS}
+STRIP?= strip
+
+all: biostramp.inc
+
+biostramp.inc: biostramp.bin Makefile
+ @([ -f biostramp.inc ] && mv -f biostramp.inc biostramp.inc.bak; exit 0)
+ sh ${.CURDIR}/bin2asm.sh biostramp.bin > biostramp.inc
+
+machine:
+ @rm -f machine && ln -s ${I386}/include machine
+
+.include <bsd.own.mk>
+
+.if ${OBJECT_FMT} == "ELF"
+biostramp.bin: biostramp.obj
+ ${OBJCOPY} --output-target=binary $? $@
+.else
+biostramp.bin: biostramp.obj
+ cp $? $@
+ @${STRIP} $@
+ @sh ${.CURDIR}/rmaouthdr $@ $@.tmp
+ @if [ `ls -l $@.tmp |awk '{print $$5}'` -gt 4096 ]; then \
+ echo "$@ too big"; \
+ exit 1; \
+ fi
+ @mv -f $@.tmp $@
+.endif
+
+biostramp.obj: ${OBJS} ${DEPS}
+ ${LD} -Bstatic -N -Ttext 0 -e do_bios_call -o $@ $(OBJS)
+
+assym.h: machine ${KSRC}/kern/genassym.sh genassym.cf
+ sh ${KSRC}/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
+ < ${.CURDIR}/genassym.cf > assym.h.tmp && \
+ mv -f assym.h.tmp assym.h
+
+biostramp.S: assym.h
+
+biostramp.o: biostramp.S
+ ${CC} ${CPPFLAGS} -DASM -D_LOCORE -c ${.IMPSRC}
+
+clean:
+ rm -f *.o biostramp.obj biostramp.bin biostramp.sym biostramp.inc \
+ assym.h biostramp.inc.bak machine
+
+.include <bsd.dep.mk>
+.include <bsd.subdir.mk>
+.include <bsd.obj.mk>
Home |
Main Index |
Thread Index |
Old Index