diff options
Diffstat (limited to 'arch/i386/Makefile')
-rw-r--r-- | arch/i386/Makefile | 72 |
1 files changed, 39 insertions, 33 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index 52b932478c6d..5e50dbf00f3e 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -17,6 +17,9 @@ | |||
17 | # 20050320 Kianusch Sayah Karadji <kianusch@sk-tech.net> | 17 | # 20050320 Kianusch Sayah Karadji <kianusch@sk-tech.net> |
18 | # Added support for GEODE CPU | 18 | # Added support for GEODE CPU |
19 | 19 | ||
20 | # Fill in SRCARCH | ||
21 | SRCARCH := x86 | ||
22 | |||
20 | HAS_BIARCH := $(call cc-option-yn, -m32) | 23 | HAS_BIARCH := $(call cc-option-yn, -m32) |
21 | ifeq ($(HAS_BIARCH),y) | 24 | ifeq ($(HAS_BIARCH),y) |
22 | AS := $(AS) --32 | 25 | AS := $(AS) --32 |
@@ -61,62 +64,62 @@ AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONF | |||
61 | CFLAGS += $(cflags-y) | 64 | CFLAGS += $(cflags-y) |
62 | 65 | ||
63 | # Default subarch .c files | 66 | # Default subarch .c files |
64 | mcore-y := mach-default | 67 | mcore-y := arch/x86/mach-default |
65 | 68 | ||
66 | # Voyager subarch support | 69 | # Voyager subarch support |
67 | mflags-$(CONFIG_X86_VOYAGER) := -Iinclude/asm-i386/mach-voyager | 70 | mflags-$(CONFIG_X86_VOYAGER) := -Iinclude/asm-x86/mach-voyager |
68 | mcore-$(CONFIG_X86_VOYAGER) := mach-voyager | 71 | mcore-$(CONFIG_X86_VOYAGER) := arch/x86/mach-voyager |
69 | 72 | ||
70 | # VISWS subarch support | 73 | # VISWS subarch support |
71 | mflags-$(CONFIG_X86_VISWS) := -Iinclude/asm-i386/mach-visws | 74 | mflags-$(CONFIG_X86_VISWS) := -Iinclude/asm-x86/mach-visws |
72 | mcore-$(CONFIG_X86_VISWS) := mach-visws | 75 | mcore-$(CONFIG_X86_VISWS) := arch/x86/mach-visws |
73 | 76 | ||
74 | # NUMAQ subarch support | 77 | # NUMAQ subarch support |
75 | mflags-$(CONFIG_X86_NUMAQ) := -Iinclude/asm-i386/mach-numaq | 78 | mflags-$(CONFIG_X86_NUMAQ) := -Iinclude/asm-x86/mach-numaq |
76 | mcore-$(CONFIG_X86_NUMAQ) := mach-default | 79 | mcore-$(CONFIG_X86_NUMAQ) := arch/x86/mach-default |
77 | 80 | ||
78 | # BIGSMP subarch support | 81 | # BIGSMP subarch support |
79 | mflags-$(CONFIG_X86_BIGSMP) := -Iinclude/asm-i386/mach-bigsmp | 82 | mflags-$(CONFIG_X86_BIGSMP) := -Iinclude/asm-x86/mach-bigsmp |
80 | mcore-$(CONFIG_X86_BIGSMP) := mach-default | 83 | mcore-$(CONFIG_X86_BIGSMP) := arch/x86/mach-default |
81 | 84 | ||
82 | #Summit subarch support | 85 | #Summit subarch support |
83 | mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-i386/mach-summit | 86 | mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-x86/mach-summit |
84 | mcore-$(CONFIG_X86_SUMMIT) := mach-default | 87 | mcore-$(CONFIG_X86_SUMMIT) := arch/x86/mach-default |
85 | 88 | ||
86 | # generic subarchitecture | 89 | # generic subarchitecture |
87 | mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-i386/mach-generic | 90 | mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-x86/mach-generic |
88 | mcore-$(CONFIG_X86_GENERICARCH) := mach-default | 91 | mcore-$(CONFIG_X86_GENERICARCH) := arch/x86/mach-default |
89 | core-$(CONFIG_X86_GENERICARCH) += arch/i386/mach-generic/ | 92 | core-$(CONFIG_X86_GENERICARCH) += arch/x86/mach-generic/ |
90 | 93 | ||
91 | # ES7000 subarch support | 94 | # ES7000 subarch support |
92 | mflags-$(CONFIG_X86_ES7000) := -Iinclude/asm-i386/mach-es7000 | 95 | mflags-$(CONFIG_X86_ES7000) := -Iinclude/asm-x86/mach-es7000 |
93 | mcore-$(CONFIG_X86_ES7000) := mach-default | 96 | mcore-$(CONFIG_X86_ES7000) := arch/x86/mach-default |
94 | core-$(CONFIG_X86_ES7000) := arch/i386/mach-es7000/ | 97 | core-$(CONFIG_X86_ES7000) := arch/x86/mach-es7000/ |
95 | 98 | ||
96 | # Xen paravirtualization support | 99 | # Xen paravirtualization support |
97 | core-$(CONFIG_XEN) += arch/i386/xen/ | 100 | core-$(CONFIG_XEN) += arch/x86/xen/ |
98 | 101 | ||
99 | # default subarch .h files | 102 | # default subarch .h files |
100 | mflags-y += -Iinclude/asm-i386/mach-default | 103 | mflags-y += -Iinclude/asm-x86/mach-default |
101 | 104 | ||
102 | head-y := arch/i386/kernel/head.o arch/i386/kernel/init_task.o | 105 | head-y := arch/x86/kernel/head_32.o arch/x86/kernel/init_task_32.o |
103 | 106 | ||
104 | libs-y += arch/i386/lib/ | 107 | libs-y += arch/x86/lib/ |
105 | core-y += arch/i386/kernel/ \ | 108 | core-y += arch/x86/kernel/ \ |
106 | arch/i386/mm/ \ | 109 | arch/x86/mm/ \ |
107 | arch/i386/$(mcore-y)/ \ | 110 | $(mcore-y)/ \ |
108 | arch/i386/crypto/ | 111 | arch/x86/crypto/ |
109 | drivers-$(CONFIG_MATH_EMULATION) += arch/i386/math-emu/ | 112 | drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/ |
110 | drivers-$(CONFIG_PCI) += arch/i386/pci/ | 113 | drivers-$(CONFIG_PCI) += arch/x86/pci/ |
111 | # must be linked after kernel/ | 114 | # must be linked after kernel/ |
112 | drivers-$(CONFIG_OPROFILE) += arch/i386/oprofile/ | 115 | drivers-$(CONFIG_OPROFILE) += arch/x86/oprofile/ |
113 | drivers-$(CONFIG_PM) += arch/i386/power/ | 116 | drivers-$(CONFIG_PM) += arch/x86/power/ |
114 | drivers-$(CONFIG_FB) += arch/i386/video/ | 117 | drivers-$(CONFIG_FB) += arch/x86/video/ |
115 | 118 | ||
116 | CFLAGS += $(mflags-y) | 119 | CFLAGS += $(mflags-y) |
117 | AFLAGS += $(mflags-y) | 120 | AFLAGS += $(mflags-y) |
118 | 121 | ||
119 | boot := arch/i386/boot | 122 | boot := arch/x86/boot |
120 | 123 | ||
121 | PHONY += zImage bzImage compressed zlilo bzlilo \ | 124 | PHONY += zImage bzImage compressed zlilo bzlilo \ |
122 | zdisk bzdisk fdimage fdimage144 fdimage288 isoimage install | 125 | zdisk bzdisk fdimage fdimage144 fdimage288 isoimage install |
@@ -125,9 +128,11 @@ all: bzImage | |||
125 | 128 | ||
126 | # KBUILD_IMAGE specify target image being built | 129 | # KBUILD_IMAGE specify target image being built |
127 | KBUILD_IMAGE := $(boot)/bzImage | 130 | KBUILD_IMAGE := $(boot)/bzImage |
128 | zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage | 131 | zImage zlilo zdisk: KBUILD_IMAGE := arch/x86/boot/zImage |
129 | 132 | ||
130 | zImage bzImage: vmlinux | 133 | zImage bzImage: vmlinux |
134 | $(Q)mkdir -p $(objtree)/arch/i386/boot | ||
135 | $(Q)ln -fsn $(objtree)/arch/x86/boot/bzImage $(objtree)/arch/i386/boot/bzImage | ||
131 | $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE) | 136 | $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE) |
132 | 137 | ||
133 | compressed: zImage | 138 | compressed: zImage |
@@ -145,7 +150,8 @@ install: | |||
145 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install | 150 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install |
146 | 151 | ||
147 | archclean: | 152 | archclean: |
148 | $(Q)$(MAKE) $(clean)=arch/i386/boot | 153 | $(Q)rm -rf $(objtree)/arch/i386/boot |
154 | $(Q)$(MAKE) $(clean)=arch/x86/boot | ||
149 | 155 | ||
150 | define archhelp | 156 | define archhelp |
151 | echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)' | 157 | echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)' |