i386: move boot
authorThomas Gleixner <tglx@linutronix.de>
Thu, 11 Oct 2007 09:16:45 +0000 (11:16 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 11 Oct 2007 09:16:45 +0000 (11:16 +0200)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
34 files changed:
arch/i386/Makefile
arch/x86/boot/.gitignore [moved from arch/i386/boot/.gitignore with 100% similarity]
arch/x86/boot/Makefile [moved from arch/i386/boot/Makefile with 99% similarity]
arch/x86/boot/a20.c [moved from arch/i386/boot/a20.c with 100% similarity]
arch/x86/boot/apm.c [moved from arch/i386/boot/apm.c with 100% similarity]
arch/x86/boot/bitops.h [moved from arch/i386/boot/bitops.h with 100% similarity]
arch/x86/boot/boot.h [moved from arch/i386/boot/boot.h with 100% similarity]
arch/x86/boot/cmdline.c [moved from arch/i386/boot/cmdline.c with 100% similarity]
arch/x86/boot/code16gcc.h [moved from arch/i386/boot/code16gcc.h with 100% similarity]
arch/x86/boot/copy.S [moved from arch/i386/boot/copy.S with 100% similarity]
arch/x86/boot/cpu.c [moved from arch/i386/boot/cpu.c with 100% similarity]
arch/x86/boot/cpucheck.c [moved from arch/i386/boot/cpucheck.c with 100% similarity]
arch/x86/boot/edd.c [moved from arch/i386/boot/edd.c with 100% similarity]
arch/x86/boot/header.S [moved from arch/i386/boot/header.S with 100% similarity]
arch/x86/boot/install.sh [moved from arch/i386/boot/install.sh with 100% similarity]
arch/x86/boot/main.c [moved from arch/i386/boot/main.c with 100% similarity]
arch/x86/boot/mca.c [moved from arch/i386/boot/mca.c with 100% similarity]
arch/x86/boot/memory.c [moved from arch/i386/boot/memory.c with 100% similarity]
arch/x86/boot/mtools.conf.in [moved from arch/i386/boot/mtools.conf.in with 100% similarity]
arch/x86/boot/pm.c [moved from arch/i386/boot/pm.c with 100% similarity]
arch/x86/boot/pmjump.S [moved from arch/i386/boot/pmjump.S with 100% similarity]
arch/x86/boot/printf.c [moved from arch/i386/boot/printf.c with 100% similarity]
arch/x86/boot/setup.ld [moved from arch/i386/boot/setup.ld with 100% similarity]
arch/x86/boot/string.c [moved from arch/i386/boot/string.c with 100% similarity]
arch/x86/boot/tty.c [moved from arch/i386/boot/tty.c with 100% similarity]
arch/x86/boot/version.c [moved from arch/i386/boot/version.c with 100% similarity]
arch/x86/boot/vesa.h [moved from arch/i386/boot/vesa.h with 100% similarity]
arch/x86/boot/video-bios.c [moved from arch/i386/boot/video-bios.c with 100% similarity]
arch/x86/boot/video-vesa.c [moved from arch/i386/boot/video-vesa.c with 100% similarity]
arch/x86/boot/video-vga.c [moved from arch/i386/boot/video-vga.c with 100% similarity]
arch/x86/boot/video.c [moved from arch/i386/boot/video.c with 100% similarity]
arch/x86/boot/video.h [moved from arch/i386/boot/video.h with 100% similarity]
arch/x86/boot/voyager.c [moved from arch/i386/boot/voyager.c with 100% similarity]
arch/x86_64/boot/Makefile

index 510df782f940c720e9aa7add9b9b762e250fc52f..776d8dcf2340e65b80cc1474b39441f94c769b0e 100644 (file)
@@ -116,7 +116,7 @@ drivers-$(CONFIG_FB)                    += arch/i386/video/
 CFLAGS += $(mflags-y)
 AFLAGS += $(mflags-y)
 
-boot := arch/i386/boot
+boot := arch/x86/boot
 
 PHONY += zImage bzImage compressed zlilo bzlilo \
          zdisk bzdisk fdimage fdimage144 fdimage288 isoimage install
@@ -125,9 +125,11 @@ all: bzImage
 
 # KBUILD_IMAGE specify target image being built
                     KBUILD_IMAGE := $(boot)/bzImage
-zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage
+zImage zlilo zdisk: KBUILD_IMAGE := arch/x86/boot/zImage
 
 zImage bzImage: vmlinux
+       $(Q)mkdir -p $(objtree)/arch/i386/boot
+       $(Q)ln -fsn $(objtree)/arch/x86/boot/bzImage $(objtree)/arch/i386/boot/bzImage
        $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE)
 
 compressed: zImage
@@ -145,7 +147,8 @@ install:
        $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
 
 archclean:
-       $(Q)$(MAKE) $(clean)=arch/i386/boot
+       $(Q)rm -rf $(objtree)/arch/i386/boot
+       $(Q)$(MAKE) $(clean)=arch/x86/boot
 
 define archhelp
   echo  '* bzImage     - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
similarity index 99%
rename from arch/i386/boot/Makefile
rename to arch/x86/boot/Makefile
index 93386a4e40b49bfcb1b2b8c0be80251594fad283..cb1035f2b7e93654f534d84f1bde58954646a64c 100644 (file)
@@ -1,5 +1,5 @@
 #
-# arch/i386/boot/Makefile
+# arch/x86/boot/Makefile
 #
 # This file is subject to the terms and conditions of the GNU General Public
 # License.  See the file "COPYING" in the main directory of this archive
similarity index 100%
rename from arch/i386/boot/a20.c
rename to arch/x86/boot/a20.c
similarity index 100%
rename from arch/i386/boot/apm.c
rename to arch/x86/boot/apm.c
similarity index 100%
rename from arch/i386/boot/boot.h
rename to arch/x86/boot/boot.h
similarity index 100%
rename from arch/i386/boot/copy.S
rename to arch/x86/boot/copy.S
similarity index 100%
rename from arch/i386/boot/cpu.c
rename to arch/x86/boot/cpu.c
similarity index 100%
rename from arch/i386/boot/edd.c
rename to arch/x86/boot/edd.c
similarity index 100%
rename from arch/i386/boot/main.c
rename to arch/x86/boot/main.c
similarity index 100%
rename from arch/i386/boot/mca.c
rename to arch/x86/boot/mca.c
similarity index 100%
rename from arch/i386/boot/pm.c
rename to arch/x86/boot/pm.c
similarity index 100%
rename from arch/i386/boot/tty.c
rename to arch/x86/boot/tty.c
similarity index 100%
rename from arch/i386/boot/vesa.h
rename to arch/x86/boot/vesa.h
similarity index 100%
rename from arch/i386/boot/video.c
rename to arch/x86/boot/video.c
similarity index 100%
rename from arch/i386/boot/video.h
rename to arch/x86/boot/video.h
index 67096389de1f1f7d1323f9ef6bead27e284c742c..0f7b6c2cfa58193b34fd57d04de72ed14329f9a4 100644 (file)
@@ -5,5 +5,5 @@
 # So tell kbuild that we fetch the code from i386 and include the
 # Makefile from i386 too.
 
-src := arch/i386/boot
+src := arch/x86/boot
 include $(src)/Makefile