From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1ItmkS-0005Dw-PW for user-mode-linux-devel@lists.sourceforge.net; Sun, 18 Nov 2007 08:11:53 -0800 Received: from [198.99.130.12] (helo=saraswathi.solana.com) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1ItmkQ-0007r5-6n for user-mode-linux-devel@lists.sourceforge.net; Sun, 18 Nov 2007 08:11:52 -0800 Date: Sun, 18 Nov 2007 11:11:38 -0500 From: Jeff Dike Message-ID: <20071118161138.GA5522@c2.user-mode-linux.org> References: <20071102022749.GB8583@swingline.cs.wisc.edu> <20071102155131.GB5760@c2.user-mode-linux.org> <20071102162239.GA13481@swingline.cs.wisc.edu> <20071105171213.GA7296@c2.user-mode-linux.org> <20071111194711.GA16100@swingline.cs.wisc.edu> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <20071111194711.GA16100@swingline.cs.wisc.edu> Subject: Re: [uml-devel] building 2.6.24-rc1 with VDE in a non-standard location? List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Erik Paulson Cc: user-mode-linux-devel@lists.sourceforge.net On Sun, Nov 11, 2007 at 01:47:16PM -0600, Erik Paulson wrote: > Unfortunately, VDE still doesn't compile - the CFLAGS aren't being passed > along to arch/um/drivers: Try the patch below - it works for me with fake CFLAGS and LDFLAGS on the command line. It also fixes the previous misspelling of LDFLAGS, so you pass that, rather than LFLAGS, on the command line. Jeff -- Work email - jdike at linux dot intel dot com Index: linux-2.6.22/arch/um/Makefile =================================================================== --- linux-2.6.22.orig/arch/um/Makefile 2007-11-14 12:58:04.000000000 -0500 +++ linux-2.6.22/arch/um/Makefile 2007-11-18 11:10:02.000000000 -0500 @@ -49,7 +49,7 @@ SYS_DIR := $(ARCH_DIR)/include/sysdep-$ # # These apply to USER_CFLAGS to. -KBUILD_CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ +KBUILD_CFLAGS += $(CFLAGS) $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \ $(ARCH_INCLUDE) $(MODE_INCLUDE) -Dvmap=kernel_vmap \ -Din6addr_loopback=kernel_in6addr_loopback \ -Din6addr_any=kernel_in6addr_any @@ -58,7 +58,7 @@ KBUILD_AFLAGS += $(ARCH_INCLUDE) USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\ $(patsubst -I%,,$(KBUILD_CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \ - -D_FILE_OFFSET_BITS=64 + $(filter -I%,$(CFLAGS)) -D_FILE_OFFSET_BITS=64 include $(srctree)/$(ARCH_DIR)/Makefile-$(SUBARCH) @@ -130,7 +130,7 @@ CPPFLAGS_vmlinux.lds = -U$(SUBARCH) -DST # The wrappers will select whether using "malloc" or the kernel allocator. LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc -LD_FLAGS_CMDLINE = $(foreach opt,$(LFLAGS),-Wl,$(opt)) +LD_FLAGS_CMDLINE = $(foreach opt,$(LDFLAGS),-Wl,$(opt)) CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE) define cmd_vmlinux__ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel