summaryrefslogtreecommitdiffstats
path: root/sys/modules/linux
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-01-09 10:04:53 +0000
committerbde <bde@FreeBSD.org>2000-01-09 10:04:53 +0000
commit6c0066fcaca56e7ea740d33c045e8be6255b1a6b (patch)
tree04cfc3cb90ad435a19110b5b2f8789f761af0d81 /sys/modules/linux
parent59e22203a1d9954c5d480f93a9479cb0d9172d7e (diff)
downloadFreeBSD-src-6c0066fcaca56e7ea740d33c045e8be6255b1a6b.zip
FreeBSD-src-6c0066fcaca56e7ea740d33c045e8be6255b1a6b.tar.gz
Compile linux_genassym.c with ordinary ${CFLAGS}. The (small) need for
-U_KERNEL became negative when all all the genassym.c's were converted to be cross-built. Use "genassym ... > ${.TARGET}", not "genassym -o $@ ...", so that genassym(1) doesn't need to support -o. Removed duplicate -D_KERNEL from flags for compiling linux_locore.s.
Diffstat (limited to 'sys/modules/linux')
-rw-r--r--sys/modules/linux/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index 8ccccac..fff7c57 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -17,14 +17,14 @@ EXPORT_SYMS=_linux_mod
CLEANFILES= linux_assym.h linux_genassym.o
linux_assym.h: linux_genassym.o
- genassym -o ${.TARGET} ${.ALLSRC}
+ genassym ${.ALLSRC} > ${.TARGET}
linux_locore.o: linux_locore.s linux_assym.h
- ${CC} -c -x assembler-with-cpp -DLOCORE -D_KERNEL ${CFLAGS} \
+ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET}
linux_genassym.o: linux_genassym.c linux.h @ machine
- ${CC} -c ${CFLAGS} -U_KERNEL ${.IMPSRC}
+ ${CC} -c ${CFLAGS} ${.IMPSRC}
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h
OpenPOWER on IntegriCloud