aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/Makefile')
-rw-r--r--arch/i386/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile
index 510df782f94..776d8dcf234 100644
--- a/arch/i386/Makefile
+++ b/arch/i386/Makefile
@@ -116,7 +116,7 @@ drivers-$(CONFIG_FB) += arch/i386/video/
116CFLAGS += $(mflags-y) 116CFLAGS += $(mflags-y)
117AFLAGS += $(mflags-y) 117AFLAGS += $(mflags-y)
118 118
119boot := arch/i386/boot 119boot := arch/x86/boot
120 120
121PHONY += zImage bzImage compressed zlilo bzlilo \ 121PHONY += zImage bzImage compressed zlilo bzlilo \
122 zdisk bzdisk fdimage fdimage144 fdimage288 isoimage install 122 zdisk bzdisk fdimage fdimage144 fdimage288 isoimage install
@@ -125,9 +125,11 @@ all: bzImage
125 125
126# KBUILD_IMAGE specify target image being built 126# KBUILD_IMAGE specify target image being built
127 KBUILD_IMAGE := $(boot)/bzImage 127 KBUILD_IMAGE := $(boot)/bzImage
128zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage 128zImage zlilo zdisk: KBUILD_IMAGE := arch/x86/boot/zImage
129 129
130zImage bzImage: vmlinux 130zImage bzImage: vmlinux
131 $(Q)mkdir -p $(objtree)/arch/i386/boot
132 $(Q)ln -fsn $(objtree)/arch/x86/boot/bzImage $(objtree)/arch/i386/boot/bzImage
131 $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE) 133 $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE)
132 134
133compressed: zImage 135compressed: zImage
@@ -145,7 +147,8 @@ install:
145 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install 147 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
146 148
147archclean: 149archclean:
148 $(Q)$(MAKE) $(clean)=arch/i386/boot 150 $(Q)rm -rf $(objtree)/arch/i386/boot
151 $(Q)$(MAKE) $(clean)=arch/x86/boot
149 152
150define archhelp 153define archhelp
151 echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)' 154 echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'