There's a problem with the version of bash on Fedora 11 that prevents
UML from building. Environment variables with a dot in their name
aren't being propagated to subprocesses.
This is a minimal patch that allowed me to build UML on F11. A proper
fix would have to address several other architectures.
Ron
diff -up linux-2.6.30.3.cppflags/arch/um/Makefile.bash-cppflags
linux-2.6.30.3.cppflags/arch/um/Makefile
--- linux-2.6.30.3.cppflags/arch/um/Makefile.bash-cppflags 2009-07-24
22:47:51.000000000 +0100
+++ linux-2.6.30.3.cppflags/arch/um/Makefile 2009-07-28 20:18:22.000000000
+0100
@@ -99,7 +99,7 @@ CFLAGS_NO_HARDENING := $(call cc-option,
CONFIG_KERNEL_STACK_ORDER ?= 2
STACK_SIZE := $(shell echo $$[ 4096 * (1 << $(CONFIG_KERNEL_STACK_ORDER)) ] )
-CPPFLAGS_vmlinux.lds = -U$(SUBARCH) -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \
+CPPFLAGS_vmlinux_lds = -U$(SUBARCH) -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \
-DELF_FORMAT="$(ELF_FORMAT)" -DKERNEL_STACK_SIZE=$(STACK_SIZE)
# The wrappers will select whether using "malloc" or the kernel allocator.
diff -up linux-2.6.30.3.cppflags/Makefile.bash-cppflags
linux-2.6.30.3.cppflags/Makefile
--- linux-2.6.30.3.cppflags/Makefile.bash-cppflags 2009-07-24
22:47:51.000000000 +0100
+++ linux-2.6.30.3.cppflags/Makefile 2009-07-28 20:17:52.000000000 +0100
@@ -991,7 +991,7 @@ prepare: prepare0
# Leave this as default for preprocessing vmlinux.lds.S, which is now
# done in arch/$(ARCH)/kernel/Makefile
-export CPPFLAGS_vmlinux.lds += -P -C -U$(ARCH)
+export CPPFLAGS_vmlinux_lds += -P -C -U$(ARCH)
# The asm symlink changes when $(ARCH) changes.
# Detect this and ask user to run make mrproper
diff -up linux-2.6.30.3.cppflags/scripts/Makefile.lib.bash-cppflags
linux-2.6.30.3.cppflags/scripts/Makefile.lib
--- linux-2.6.30.3.cppflags/scripts/Makefile.lib.bash-cppflags 2009-07-24
22:47:51.000000000 +0100
+++ linux-2.6.30.3.cppflags/scripts/Makefile.lib 2009-07-28
20:17:01.000000000 +0100
@@ -114,7 +114,7 @@ orig_c_flags = $(KBUILD_CPPFLAGS) $(KB
_c_flags = $(filter-out $(CFLAGS_REMOVE_$(basetarget).o),
$(orig_c_flags))
_a_flags = $(KBUILD_CPPFLAGS) $(KBUILD_AFLAGS) $(KBUILD_SUBDIR_ASFLAGS) \
$(asflags-y) $(AFLAGS_$(basetarget).o)
-_cpp_flags = $(KBUILD_CPPFLAGS) $(cppflags-y) $(CPPFLAGS_$(@F))
+_cpp_flags = $(KBUILD_CPPFLAGS) $(cppflags-y) $(CPPFLAGS_$(@F:.lds=_lds))
# If building the kernel in a separate objtree expand all occurrences
# of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/').
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user