Переглянути джерело

i386: move boot

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>
Thomas Gleixner 17 роки тому
батько
коміт
96ae6ea0be

+ 6 - 3
arch/i386/Makefile

@@ -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)'

+ 0 - 0
arch/i386/boot/.gitignore → arch/x86/boot/.gitignore


+ 1 - 1
arch/i386/boot/Makefile → arch/x86/boot/Makefile

@@ -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

+ 0 - 0
arch/i386/boot/a20.c → arch/x86/boot/a20.c


+ 0 - 0
arch/i386/boot/apm.c → arch/x86/boot/apm.c


+ 0 - 0
arch/i386/boot/bitops.h → arch/x86/boot/bitops.h


+ 0 - 0
arch/i386/boot/boot.h → arch/x86/boot/boot.h


+ 0 - 0
arch/i386/boot/cmdline.c → arch/x86/boot/cmdline.c


+ 0 - 0
arch/i386/boot/code16gcc.h → arch/x86/boot/code16gcc.h


+ 0 - 0
arch/i386/boot/copy.S → arch/x86/boot/copy.S


+ 0 - 0
arch/i386/boot/cpu.c → arch/x86/boot/cpu.c


+ 0 - 0
arch/i386/boot/cpucheck.c → arch/x86/boot/cpucheck.c


+ 0 - 0
arch/i386/boot/edd.c → arch/x86/boot/edd.c


+ 0 - 0
arch/i386/boot/header.S → arch/x86/boot/header.S


+ 0 - 0
arch/i386/boot/install.sh → arch/x86/boot/install.sh


+ 0 - 0
arch/i386/boot/main.c → arch/x86/boot/main.c


+ 0 - 0
arch/i386/boot/mca.c → arch/x86/boot/mca.c


+ 0 - 0
arch/i386/boot/memory.c → arch/x86/boot/memory.c


+ 0 - 0
arch/i386/boot/mtools.conf.in → arch/x86/boot/mtools.conf.in


+ 0 - 0
arch/i386/boot/pm.c → arch/x86/boot/pm.c


+ 0 - 0
arch/i386/boot/pmjump.S → arch/x86/boot/pmjump.S


+ 0 - 0
arch/i386/boot/printf.c → arch/x86/boot/printf.c


+ 0 - 0
arch/i386/boot/setup.ld → arch/x86/boot/setup.ld


+ 0 - 0
arch/i386/boot/string.c → arch/x86/boot/string.c


+ 0 - 0
arch/i386/boot/tty.c → arch/x86/boot/tty.c


+ 0 - 0
arch/i386/boot/version.c → arch/x86/boot/version.c


+ 0 - 0
arch/i386/boot/vesa.h → arch/x86/boot/vesa.h


+ 0 - 0
arch/i386/boot/video-bios.c → arch/x86/boot/video-bios.c


+ 0 - 0
arch/i386/boot/video-vesa.c → arch/x86/boot/video-vesa.c


+ 0 - 0
arch/i386/boot/video-vga.c → arch/x86/boot/video-vga.c


+ 0 - 0
arch/i386/boot/video.c → arch/x86/boot/video.c


+ 0 - 0
arch/i386/boot/video.h → arch/x86/boot/video.h


+ 0 - 0
arch/i386/boot/voyager.c → arch/x86/boot/voyager.c


+ 1 - 1
arch/x86_64/boot/Makefile

@@ -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