Changeset 16028 in vbox
- Timestamp:
- Jan 19, 2009 5:11:59 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41712
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r16025 r16028 2294 2294 TOOL_FREEBSDKMODLD = FreeBSD kernel module linker. 2295 2295 # See kBuild/tools/GCC3.kmk for docs. 2296 TOOL_FREEBSDKMODLD_LINK_SYSMOD_OUTPUT = $(outbase).kld2297 2296 TOOL_FREEBSDKMODLD_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 2298 2297 TOOL_FREEBSDKMODLD_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 2299 2298 TOOL_FREEBSDKMODLD_LINK_SYSMOD_DEPORD = 2299 ifeq ($(KBUILD_TARGET_ARCH),amd64) 2300 TOOL_FREEBSDKMODLD_LINK_SYSMOD_OUTPUT = 2300 2301 define TOOL_FREEBSDKMODLD_LINK_SYSMOD_CMDS 2301 @# Link intermediate .kld (a relocatable object). 2302 # Link intermediate .kld (a relocatable object). 2303 ld $(flags) -r -o $(out) $(objs) \ 2304 $(foreach p,$(libpath), -L$(p))\ 2305 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 2306 # Strip non-exported symbols private and localize the exported ones. 2307 awk -f $(VBOX_FREEBSD_SRC)/conf/kmod_syms.awk $(out) $(if $(othersrc), $(othersrc),/dev/null) \ 2308 | xargs -J% objcopy % $(out) 2309 2310 ## Strip debug info (comment out if debugging or something). 2311 # objcopy --strip-debug $(out) 2312 endef 2313 else # x86 2314 TOOL_FREEBSDKMODLD_LINK_SYSMOD_OUTPUT = $(outbase).kld 2315 define TOOL_FREEBSDKMODLD_LINK_SYSMOD_CMDS 2316 # Link intermediate .kld (a relocatable object). 2302 2317 ld $(flags) -r -o $(outbase).kld $(objs) \ 2303 2318 $(foreach p,$(libpath), -L$(p))\ 2304 2319 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 2305 @# Strip non-exported symbols private and localize the exported ones.2320 # Strip non-exported symbols private and localize the exported ones. 2306 2321 awk -f $(VBOX_FREEBSD_SRC)/conf/kmod_syms.awk $(outbase).kld $(if $(othersrc), $(othersrc),/dev/null) \ 2307 2322 | xargs -J% objcopy % $(outbase).kld 2308 @# Link the final .ko (a shared object). 2323 2324 # Link the final .ko (a shared object). 2309 2325 ld $(flags) -Bshareable -o $(out) $(outbase).kld 2310 2326 endef 2327 endif # x86 2311 2328 2312 2329 endif # FreeBSD
Note:
See TracChangeset
for help on using the changeset viewer.