From owner-freebsd-current@FreeBSD.ORG Sat Mar 15 08:50:08 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C5051065672 for ; Sat, 15 Mar 2008 08:50:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id CC70E8FC14 for ; Sat, 15 Mar 2008 08:50:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id E2DB541C7A8 for ; Sat, 15 Mar 2008 09:50:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id fl34orMFsJQw for ; Sat, 15 Mar 2008 09:50:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id BD29341C759; Sat, 15 Mar 2008 09:50:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id B338344487F for ; Sat, 15 Mar 2008 08:46:50 +0000 (UTC) Date: Sat, 15 Mar 2008 08:46:50 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: FreeBSD current mailing list Message-ID: <20080315084441.V50685@maildrop.int.zabbadoz.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Why is linux.ko rebuild everytime? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2008 08:50:08 -0000 Hi, if I just do a make right after buildkernel finished successfully linux.ko is rebuild (even though nothing was touched). I have to admit I am doing make in obj/.../sys/KERNCONF/ but to my understanding that should not matter. ... ===> linsysfs (all) ===> linux (all) ln -sf /local/building/freebsd/obj/local/building/freebsd/RELENG_7/sys/DOPT/opt_apic.h opt_apic.h cc -c -O2 -fno-strict-aliasing -pipe -DCOMPAT_IA32 -DCOMPAT_LINUX32 -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /local/building/freebsd/obj/local/building/freebsd/RELENG_7/sys/DOPT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -g -fno-omit-frame-pointer -I/local/building/freebsd/obj/local/building/freebsd/RELENG_7/sys/DOPT -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions @/amd64/amd64/genassym.c sh @/kern/genassym.sh genassym.o > assym.s cc -c -x assembler-with-cpp -DLOCORE -O2 -fno-strict-aliasing -pipe -DCOMPAT_IA32 -DCOMPAT_LINUX32 -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /local/building/freebsd/obj/local/building/freebsd/RELENG_7/sys/DOPT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -I/local/building/freebsd/obj/local/building/freebsd/RELENG_7/sys/DOPT -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions /local/building/freebsd/RELENG_7/sys/modules/linux/../../amd64/linux32/linux32_support.s -o linux32_support.o as -o assym.o assym.s ld -d -warn-common -r -d -o linux.ko.debug linux32_locore.o linux32_support.o linux32_dummy.o linux_emul.o linux_file.o linux_futex.o linux_getcwd.o linux_ioctl.o linux_ipc.o linux32_machdep.o linux_mib.o linux_misc.o linux_signal.o linux_socket.o linux_stats.o linux_sysctl.o linux32_sysent.o linux32_sysvec.o linux_uid16.o linux_util.o linux_time.o assym.o echo linux_emul_path linux_get_osname linux_get_osrelease linux_ifname linux_ioctl_register_handler linux_ioctl_unregister_handler > export_syms awk -f /local/building/freebsd/RELENG_7/sys/modules/linux/../../conf/kmod_syms.awk linux.ko.debug export_syms | xargs -J% objcopy % linux.ko.debug objcopy --only-keep-debug linux.ko.debug linux.ko.symbols objcopy --strip-debug --add-gnu-debuglink=linux.ko.symbols linux.ko.debug linux.ko ===> lmc (all) ... -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT Software is harder than hardware so better get it right the first time.