diff options
author | peter <peter@FreeBSD.org> | 2004-05-16 20:11:38 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-05-16 20:11:38 +0000 |
commit | 5c28654d4937a2c64c6d99289b78f90d81a8c58a (patch) | |
tree | 8a3c1046638108e83671614c179a90220d808857 /sys/conf | |
parent | ea4215c5218f4d79c33e806304e35cc951ea3dc7 (diff) | |
download | FreeBSD-src-5c28654d4937a2c64c6d99289b78f90d81a8c58a.zip FreeBSD-src-5c28654d4937a2c64c6d99289b78f90d81a8c58a.tar.gz |
Enable first part of kld's on amd64. This is known to not work right
yet, but building kld's is OK now and they can be loaded by kldload(2).
(but the machine will likely crash soon afterwards, a "minor" problem :-)
Brought to you by: my injured knee (from moving)
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files.amd64 | 1 | ||||
-rw-r--r-- | sys/conf/kmod.mk | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/conf/files.amd64 b/sys/conf/files.amd64 index 0c1e106..b24d28c 100644 --- a/sys/conf/files.amd64 +++ b/sys/conf/files.amd64 @@ -128,6 +128,7 @@ isa/fd.c optional fdc isa/psm.c optional psm isa/syscons_isa.c optional sc isa/vga_isa.c optional vga +kern/link_elf_obj.c standard pci/agp_ali.c optional agp pci/agp_amd.c optional agp pci/agp_i810.c optional agp diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index c3b642a..fb123a2 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -137,18 +137,24 @@ ${PROG}: ${FULLPROG} ${OBJCOPY} --strip-debug ${FULLPROG} ${PROG} .endif +.if ${MACHINE_ARCH} != amd64 ${FULLPROG}: ${KMOD}.kld ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld .if !defined(DEBUG_FLAGS) ${OBJCOPY} --strip-debug ${.TARGET} .endif +.endif EXPORT_SYMS?= NO .if ${EXPORT_SYMS} != YES CLEANFILES+= ${.OBJDIR}/export_syms .endif +.if ${MACHINE_ARCH} != amd64 ${KMOD}.kld: ${OBJS} +.else +${FULLPROG}: ${OBJS} +.endif ${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS} .if defined(EXPORT_SYMS) .if ${EXPORT_SYMS} != YES @@ -164,6 +170,9 @@ ${KMOD}.kld: ${OBJS} xargs -J% ${OBJCOPY} % ${.TARGET} .endif .endif +.if !defined(DEBUG_FLAGS) && ${MACHINE_ARCH} == amd64 + ${OBJCOPY} --strip-debug ${.TARGET} +.endif _ILINKS=@ machine |