diff options
Diffstat (limited to 'arch/um/Makefile-i386')
-rw-r--r-- | arch/um/Makefile-i386 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386 index c9f1c5b24c9a..60107ed4905b 100644 --- a/arch/um/Makefile-i386 +++ b/arch/um/Makefile-i386 | |||
@@ -1,4 +1,4 @@ | |||
1 | core-y += arch/um/sys-i386/ arch/i386/crypto/ | 1 | core-y += arch/um/sys-i386/ arch/x86/crypto/ |
2 | 2 | ||
3 | TOP_ADDR := $(CONFIG_TOP_ADDR) | 3 | TOP_ADDR := $(CONFIG_TOP_ADDR) |
4 | 4 | ||
@@ -12,6 +12,7 @@ LDFLAGS += -m elf_i386 | |||
12 | ELF_ARCH := $(SUBARCH) | 12 | ELF_ARCH := $(SUBARCH) |
13 | ELF_FORMAT := elf32-$(SUBARCH) | 13 | ELF_FORMAT := elf32-$(SUBARCH) |
14 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S | 14 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S |
15 | HEADER_ARCH := x86 | ||
15 | 16 | ||
16 | ifeq ("$(origin SUBARCH)", "command line") | 17 | ifeq ("$(origin SUBARCH)", "command line") |
17 | ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)") | 18 | ifneq ("$(shell uname -m | sed -e s/i.86/i386/)", "$(SUBARCH)") |
@@ -24,6 +25,11 @@ export LDFLAGS HOSTCFLAGS HOSTLDFLAGS UML_OBJCOPYFLAGS | |||
24 | endif | 25 | endif |
25 | endif | 26 | endif |
26 | 27 | ||
28 | CFLAGS += -DCONFIG_X86_32 | ||
29 | AFLAGS += -DCONFIG_X86_32 | ||
30 | CONFIG_X86_32 := y | ||
31 | export CONFIG_X86_32 | ||
32 | |||
27 | ARCH_KERNEL_DEFINES += -U__$(SUBARCH)__ -U$(SUBARCH) | 33 | ARCH_KERNEL_DEFINES += -U__$(SUBARCH)__ -U$(SUBARCH) |
28 | 34 | ||
29 | # First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y. | 35 | # First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y. |