2005-04-17 06:20:36 +08:00
|
|
|
#
|
2007-10-26 01:42:04 +08:00
|
|
|
# i386 Makefile
|
2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# This file is included by the global makefile so that you can add your own
|
|
|
|
# architecture-specific flags and dependencies. Remember to do have actions
|
|
|
|
# for "archclean" cleaning up for this architecture.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# for more details.
|
|
|
|
#
|
|
|
|
# Copyright (C) 1994 by Linus Torvalds
|
|
|
|
#
|
|
|
|
# 19990713 Artur Skawina <skawina@geocities.com>
|
|
|
|
# Added '-march' and '-mpreferred-stack-boundary' support
|
|
|
|
#
|
2005-05-06 07:16:17 +08:00
|
|
|
# 20050320 Kianusch Sayah Karadji <kianusch@sk-tech.net>
|
2005-04-17 06:20:36 +08:00
|
|
|
# Added support for GEODE CPU
|
|
|
|
|
2007-10-24 04:37:23 +08:00
|
|
|
# BITS is used as extension for files which are available in a 32 bit
|
|
|
|
# and a 64 bit version to simplify shared Makefiles.
|
|
|
|
# e.g.: obj-y += foo_$(BITS).o
|
|
|
|
BITS := 32
|
|
|
|
export BITS
|
|
|
|
|
2005-06-23 15:08:09 +08:00
|
|
|
HAS_BIARCH := $(call cc-option-yn, -m32)
|
|
|
|
ifeq ($(HAS_BIARCH),y)
|
|
|
|
AS := $(AS) --32
|
|
|
|
LD := $(LD) -m elf_i386
|
|
|
|
CC := $(CC) -m32
|
|
|
|
endif
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
LDFLAGS := -m elf_i386
|
|
|
|
OBJCOPYFLAGS := -O binary -R .note -R .comment -S
|
2006-12-07 09:14:04 +08:00
|
|
|
ifdef CONFIG_RELOCATABLE
|
|
|
|
LDFLAGS_vmlinux := --emit-relocs
|
|
|
|
endif
|
2005-04-17 06:20:36 +08:00
|
|
|
CHECKFLAGS += -D__i386__
|
|
|
|
|
2007-10-15 04:21:35 +08:00
|
|
|
KBUILD_CFLAGS += -pipe -msoft-float -mregparm=3 -freg-struct-return
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# prevent gcc from keeping the stack 16 byte aligned
|
2007-10-15 04:21:35 +08:00
|
|
|
KBUILD_CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
[PATCH] uml: reuse i386 cpu-specific tuning
Make UML share the underlying cpu-specific tuning done on i386.
Actually, for now many config options aren't used a lot - but that can be done
later. Also, UML relies on GCC optimization for things like memcpy and such
more than i386, so specifying the correct -march and -mtune should be enough.
Later, we may want to correct some other stuff.
For instance, since FPU context switching, for us, is done (at least
partially, i.e. between our kernelspace and userspace) by the host, we may
allow usage of FPU operations by GCC. This doesn't hold for kernelspace vs.
kernelspace, but we don't support preemption.
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-31 07:00:07 +08:00
|
|
|
# CPU-specific tuning. Anything which can be shared with UML should go here.
|
2007-10-26 01:42:04 +08:00
|
|
|
include $(srctree)/arch/x86/Makefile_32.cpu
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-03-25 23:29:49 +08:00
|
|
|
# temporary until string.h is fixed
|
|
|
|
cflags-y += -ffreestanding
|
|
|
|
|
2006-01-15 05:21:29 +08:00
|
|
|
# Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use
|
|
|
|
# a lot more stack due to the lack of sharing of stacklots:
|
2007-10-15 04:21:35 +08:00
|
|
|
KBUILD_CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call cc-option,-fno-unit-at-a-time); fi ;)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-09-26 16:52:30 +08:00
|
|
|
# do binutils support CFI?
|
2007-08-15 08:40:37 +08:00
|
|
|
cflags-y += $(call as-instr,.cfi_startproc\n.cfi_rel_offset esp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,)
|
2007-10-16 03:59:31 +08:00
|
|
|
KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_rel_offset esp${comma}0\n.cfi_endproc,-DCONFIG_AS_CFI=1,)
|
2006-09-26 16:52:41 +08:00
|
|
|
|
|
|
|
# is .cfi_signal_frame supported too?
|
2006-10-22 00:37:01 +08:00
|
|
|
cflags-y += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,)
|
2007-10-16 03:59:31 +08:00
|
|
|
KBUILD_AFLAGS += $(call as-instr,.cfi_startproc\n.cfi_signal_frame\n.cfi_endproc,-DCONFIG_AS_CFI_SIGNAL_FRAME=1,)
|
2006-09-26 16:52:30 +08:00
|
|
|
|
2007-10-15 04:21:35 +08:00
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# Default subarch .c files
|
2007-10-11 17:16:48 +08:00
|
|
|
mcore-y := arch/x86/mach-default
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# Voyager subarch support
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_VOYAGER) := -Iinclude/asm-x86/mach-voyager
|
2007-10-11 17:16:53 +08:00
|
|
|
mcore-$(CONFIG_X86_VOYAGER) := arch/x86/mach-voyager
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# VISWS subarch support
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_VISWS) := -Iinclude/asm-x86/mach-visws
|
2007-10-11 17:16:38 +08:00
|
|
|
mcore-$(CONFIG_X86_VISWS) := arch/x86/mach-visws
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# NUMAQ subarch support
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_NUMAQ) := -Iinclude/asm-x86/mach-numaq
|
2007-10-11 17:16:48 +08:00
|
|
|
mcore-$(CONFIG_X86_NUMAQ) := arch/x86/mach-default
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# BIGSMP subarch support
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_BIGSMP) := -Iinclude/asm-x86/mach-bigsmp
|
2007-10-11 17:16:48 +08:00
|
|
|
mcore-$(CONFIG_X86_BIGSMP) := arch/x86/mach-default
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#Summit subarch support
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_SUMMIT) := -Iinclude/asm-x86/mach-summit
|
2007-10-11 17:16:48 +08:00
|
|
|
mcore-$(CONFIG_X86_SUMMIT) := arch/x86/mach-default
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# generic subarchitecture
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_GENERICARCH) := -Iinclude/asm-x86/mach-generic
|
2007-10-11 17:16:48 +08:00
|
|
|
mcore-$(CONFIG_X86_GENERICARCH) := arch/x86/mach-default
|
2007-10-11 17:16:39 +08:00
|
|
|
core-$(CONFIG_X86_GENERICARCH) += arch/x86/mach-generic/
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
# ES7000 subarch support
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-$(CONFIG_X86_ES7000) := -Iinclude/asm-x86/mach-es7000
|
2007-10-11 17:16:48 +08:00
|
|
|
mcore-$(CONFIG_X86_ES7000) := arch/x86/mach-default
|
2007-10-11 17:16:50 +08:00
|
|
|
core-$(CONFIG_X86_ES7000) := arch/x86/mach-es7000/
|
2005-04-17 06:20:36 +08:00
|
|
|
|
xen: Core Xen implementation
This patch is a rollup of all the core pieces of the Xen
implementation, including:
- booting and setup
- pagetable setup
- privileged instructions
- segmentation
- interrupt flags
- upcalls
- multicall batching
BOOTING AND SETUP
The vmlinux image is decorated with ELF notes which tell the Xen
domain builder what the kernel's requirements are; the domain builder
then constructs the address space accordingly and starts the kernel.
Xen has its own entrypoint for the kernel (contained in an ELF note).
The ELF notes are set up by xen-head.S, which is included into head.S.
In principle it could be linked separately, but it seems to provoke
lots of binutils bugs.
Because the domain builder starts the kernel in a fairly sane state
(32-bit protected mode, paging enabled, flat segments set up), there's
not a lot of setup needed before starting the kernel proper. The main
steps are:
1. Install the Xen paravirt_ops, which is simply a matter of a
structure assignment.
2. Set init_mm to use the Xen-supplied pagetables (analogous to the
head.S generated pagetables in a native boot).
3. Reserve address space for Xen, since it takes a chunk at the top
of the address space for its own use.
4. Call start_kernel()
PAGETABLE SETUP
Once we hit the main kernel boot sequence, it will end up calling back
via paravirt_ops to set up various pieces of Xen specific state. One
of the critical things which requires a bit of extra care is the
construction of the initial init_mm pagetable. Because Xen places
tight constraints on pagetables (an active pagetable must always be
valid, and must always be mapped read-only to the guest domain), we
need to be careful when constructing the new pagetable to keep these
constraints in mind. It turns out that the easiest way to do this is
use the initial Xen-provided pagetable as a template, and then just
insert new mappings for memory where a mapping doesn't already exist.
This means that during pagetable setup, it uses a special version of
xen_set_pte which ignores any attempt to remap a read-only page as
read-write (since Xen will map its own initial pagetable as RO), but
lets other changes to the ptes happen, so that things like NX are set
properly.
PRIVILEGED INSTRUCTIONS AND SEGMENTATION
When the kernel runs under Xen, it runs in ring 1 rather than ring 0.
This means that it is more privileged than user-mode in ring 3, but it
still can't run privileged instructions directly. Non-performance
critical instructions are dealt with by taking a privilege exception
and trapping into the hypervisor and emulating the instruction, but
more performance-critical instructions have their own specific
paravirt_ops. In many cases we can avoid having to do any hypercalls
for these instructions, or the Xen implementation is quite different
from the normal native version.
The privileged instructions fall into the broad classes of:
Segmentation: setting up the GDT and the GDT entries, LDT,
TLS and so on. Xen doesn't allow the GDT to be directly
modified; all GDT updates are done via hypercalls where the new
entries can be validated. This is important because Xen uses
segment limits to prevent the guest kernel from damaging the
hypervisor itself.
Traps and exceptions: Xen uses a special format for trap entrypoints,
so when the kernel wants to set an IDT entry, it needs to be
converted to the form Xen expects. Xen sets int 0x80 up specially
so that the trap goes straight from userspace into the guest kernel
without going via the hypervisor. sysenter isn't supported.
Kernel stack: The esp0 entry is extracted from the tss and provided to
Xen.
TLB operations: the various TLB calls are mapped into corresponding
Xen hypercalls.
Control registers: all the control registers are privileged. The most
important is cr3, which points to the base of the current pagetable,
and we handle it specially.
Another instruction we treat specially is CPUID, even though its not
privileged. We want to control what CPU features are visible to the
rest of the kernel, and so CPUID ends up going into a paravirt_op.
Xen implements this mainly to disable the ACPI and APIC subsystems.
INTERRUPT FLAGS
Xen maintains its own separate flag for masking events, which is
contained within the per-cpu vcpu_info structure. Because the guest
kernel runs in ring 1 and not 0, the IF flag in EFLAGS is completely
ignored (and must be, because even if a guest domain disables
interrupts for itself, it can't disable them overall).
(A note on terminology: "events" and interrupts are effectively
synonymous. However, rather than using an "enable flag", Xen uses a
"mask flag", which blocks event delivery when it is non-zero.)
There are paravirt_ops for each of cli/sti/save_fl/restore_fl, which
are implemented to manage the Xen event mask state. The only thing
worth noting is that when events are unmasked, we need to explicitly
see if there's a pending event and call into the hypervisor to make
sure it gets delivered.
UPCALLS
Xen needs a couple of upcall (or callback) functions to be implemented
by each guest. One is the event upcalls, which is how events
(interrupts, effectively) are delivered to the guests. The other is
the failsafe callback, which is used to report errors in either
reloading a segment register, or caused by iret. These are
implemented in i386/kernel/entry.S so they can jump into the normal
iret_exc path when necessary.
MULTICALL BATCHING
Xen provides a multicall mechanism, which allows multiple hypercalls
to be issued at once in order to mitigate the cost of trapping into
the hypervisor. This is particularly useful for context switches,
since the 4-5 hypercalls they would normally need (reload cr3, update
TLS, maybe update LDT) can be reduced to one. This patch implements a
generic batching mechanism for hypercalls, which gets used in many
places in the Xen code.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Cc: Ian Pratt <ian.pratt@xensource.com>
Cc: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Cc: Adrian Bunk <bunk@stusta.de>
2007-07-18 09:37:04 +08:00
|
|
|
# Xen paravirtualization support
|
2007-10-11 17:16:51 +08:00
|
|
|
core-$(CONFIG_XEN) += arch/x86/xen/
|
xen: Core Xen implementation
This patch is a rollup of all the core pieces of the Xen
implementation, including:
- booting and setup
- pagetable setup
- privileged instructions
- segmentation
- interrupt flags
- upcalls
- multicall batching
BOOTING AND SETUP
The vmlinux image is decorated with ELF notes which tell the Xen
domain builder what the kernel's requirements are; the domain builder
then constructs the address space accordingly and starts the kernel.
Xen has its own entrypoint for the kernel (contained in an ELF note).
The ELF notes are set up by xen-head.S, which is included into head.S.
In principle it could be linked separately, but it seems to provoke
lots of binutils bugs.
Because the domain builder starts the kernel in a fairly sane state
(32-bit protected mode, paging enabled, flat segments set up), there's
not a lot of setup needed before starting the kernel proper. The main
steps are:
1. Install the Xen paravirt_ops, which is simply a matter of a
structure assignment.
2. Set init_mm to use the Xen-supplied pagetables (analogous to the
head.S generated pagetables in a native boot).
3. Reserve address space for Xen, since it takes a chunk at the top
of the address space for its own use.
4. Call start_kernel()
PAGETABLE SETUP
Once we hit the main kernel boot sequence, it will end up calling back
via paravirt_ops to set up various pieces of Xen specific state. One
of the critical things which requires a bit of extra care is the
construction of the initial init_mm pagetable. Because Xen places
tight constraints on pagetables (an active pagetable must always be
valid, and must always be mapped read-only to the guest domain), we
need to be careful when constructing the new pagetable to keep these
constraints in mind. It turns out that the easiest way to do this is
use the initial Xen-provided pagetable as a template, and then just
insert new mappings for memory where a mapping doesn't already exist.
This means that during pagetable setup, it uses a special version of
xen_set_pte which ignores any attempt to remap a read-only page as
read-write (since Xen will map its own initial pagetable as RO), but
lets other changes to the ptes happen, so that things like NX are set
properly.
PRIVILEGED INSTRUCTIONS AND SEGMENTATION
When the kernel runs under Xen, it runs in ring 1 rather than ring 0.
This means that it is more privileged than user-mode in ring 3, but it
still can't run privileged instructions directly. Non-performance
critical instructions are dealt with by taking a privilege exception
and trapping into the hypervisor and emulating the instruction, but
more performance-critical instructions have their own specific
paravirt_ops. In many cases we can avoid having to do any hypercalls
for these instructions, or the Xen implementation is quite different
from the normal native version.
The privileged instructions fall into the broad classes of:
Segmentation: setting up the GDT and the GDT entries, LDT,
TLS and so on. Xen doesn't allow the GDT to be directly
modified; all GDT updates are done via hypercalls where the new
entries can be validated. This is important because Xen uses
segment limits to prevent the guest kernel from damaging the
hypervisor itself.
Traps and exceptions: Xen uses a special format for trap entrypoints,
so when the kernel wants to set an IDT entry, it needs to be
converted to the form Xen expects. Xen sets int 0x80 up specially
so that the trap goes straight from userspace into the guest kernel
without going via the hypervisor. sysenter isn't supported.
Kernel stack: The esp0 entry is extracted from the tss and provided to
Xen.
TLB operations: the various TLB calls are mapped into corresponding
Xen hypercalls.
Control registers: all the control registers are privileged. The most
important is cr3, which points to the base of the current pagetable,
and we handle it specially.
Another instruction we treat specially is CPUID, even though its not
privileged. We want to control what CPU features are visible to the
rest of the kernel, and so CPUID ends up going into a paravirt_op.
Xen implements this mainly to disable the ACPI and APIC subsystems.
INTERRUPT FLAGS
Xen maintains its own separate flag for masking events, which is
contained within the per-cpu vcpu_info structure. Because the guest
kernel runs in ring 1 and not 0, the IF flag in EFLAGS is completely
ignored (and must be, because even if a guest domain disables
interrupts for itself, it can't disable them overall).
(A note on terminology: "events" and interrupts are effectively
synonymous. However, rather than using an "enable flag", Xen uses a
"mask flag", which blocks event delivery when it is non-zero.)
There are paravirt_ops for each of cli/sti/save_fl/restore_fl, which
are implemented to manage the Xen event mask state. The only thing
worth noting is that when events are unmasked, we need to explicitly
see if there's a pending event and call into the hypervisor to make
sure it gets delivered.
UPCALLS
Xen needs a couple of upcall (or callback) functions to be implemented
by each guest. One is the event upcalls, which is how events
(interrupts, effectively) are delivered to the guests. The other is
the failsafe callback, which is used to report errors in either
reloading a segment register, or caused by iret. These are
implemented in i386/kernel/entry.S so they can jump into the normal
iret_exc path when necessary.
MULTICALL BATCHING
Xen provides a multicall mechanism, which allows multiple hypercalls
to be issued at once in order to mitigate the cost of trapping into
the hypervisor. This is particularly useful for context switches,
since the 4-5 hypercalls they would normally need (reload cr3, update
TLS, maybe update LDT) can be reduced to one. This patch implements a
generic batching mechanism for hypercalls, which gets used in many
places in the Xen code.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Cc: Ian Pratt <ian.pratt@xensource.com>
Cc: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Cc: Adrian Bunk <bunk@stusta.de>
2007-07-18 09:37:04 +08:00
|
|
|
|
2007-10-22 09:01:54 +08:00
|
|
|
# lguest paravirtualization support
|
|
|
|
core-$(CONFIG_LGUEST_GUEST) += arch/x86/lguest/
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
# default subarch .h files
|
2007-10-11 17:20:03 +08:00
|
|
|
mflags-y += -Iinclude/asm-x86/mach-default
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-10-20 02:35:02 +08:00
|
|
|
head-y := arch/x86/kernel/head_32.o arch/x86/kernel/init_task.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-10-11 17:16:33 +08:00
|
|
|
libs-y += arch/x86/lib/
|
2007-10-11 17:17:01 +08:00
|
|
|
core-y += arch/x86/kernel/ \
|
2007-10-11 17:16:47 +08:00
|
|
|
arch/x86/mm/ \
|
2007-10-11 17:11:35 +08:00
|
|
|
$(mcore-y)/ \
|
2008-01-30 20:30:42 +08:00
|
|
|
arch/x86/crypto/ \
|
|
|
|
arch/x86/vdso/
|
2007-10-11 17:16:31 +08:00
|
|
|
drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/
|
2007-10-11 17:16:36 +08:00
|
|
|
drivers-$(CONFIG_PCI) += arch/x86/pci/
|
2005-04-17 06:20:36 +08:00
|
|
|
# must be linked after kernel/
|
2007-10-11 17:16:55 +08:00
|
|
|
drivers-$(CONFIG_OPROFILE) += arch/x86/oprofile/
|
2007-10-11 17:16:34 +08:00
|
|
|
drivers-$(CONFIG_PM) += arch/x86/power/
|
2007-10-11 17:16:56 +08:00
|
|
|
drivers-$(CONFIG_FB) += arch/x86/video/
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-10-15 04:21:35 +08:00
|
|
|
KBUILD_CFLAGS += $(mflags-y)
|
2007-10-16 03:59:31 +08:00
|
|
|
KBUILD_AFLAGS += $(mflags-y)
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-10-11 17:16:45 +08:00
|
|
|
boot := arch/x86/boot
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-03-06 06:14:10 +08:00
|
|
|
PHONY += zImage bzImage compressed zlilo bzlilo \
|
2006-03-26 17:36:59 +08:00
|
|
|
zdisk bzdisk fdimage fdimage144 fdimage288 isoimage install
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
all: bzImage
|
|
|
|
|
|
|
|
# KBUILD_IMAGE specify target image being built
|
|
|
|
KBUILD_IMAGE := $(boot)/bzImage
|
2007-10-11 17:16:45 +08:00
|
|
|
zImage zlilo zdisk: KBUILD_IMAGE := arch/x86/boot/zImage
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
zImage bzImage: vmlinux
|
|
|
|
$(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE)
|
2007-10-20 02:35:02 +08:00
|
|
|
$(Q)mkdir -p $(objtree)/arch/i386/boot
|
|
|
|
$(Q)ln -fsn ../../x86/boot/bzImage $(objtree)/arch/i386/boot/bzImage
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
compressed: zImage
|
|
|
|
|
|
|
|
zlilo bzlilo: vmlinux
|
|
|
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) zlilo
|
|
|
|
|
|
|
|
zdisk bzdisk: vmlinux
|
|
|
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) zdisk
|
|
|
|
|
2006-03-26 17:36:59 +08:00
|
|
|
fdimage fdimage144 fdimage288 isoimage: vmlinux
|
2005-04-17 06:20:36 +08:00
|
|
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
|
|
|
|
|
2008-01-30 20:30:42 +08:00
|
|
|
install: vdso_install
|
2005-05-01 07:51:42 +08:00
|
|
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2008-01-30 20:30:42 +08:00
|
|
|
PHONY += vdso_install
|
|
|
|
vdso_install:
|
|
|
|
$(Q)$(MAKE) $(build)=arch/x86/vdso $@
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
archclean:
|
2008-01-30 20:30:04 +08:00
|
|
|
$(Q)rm -rf $(objtree)/arch/i386
|
|
|
|
$(Q)rm -rf $(objtree)/arch/x86_64
|
2007-10-11 17:16:45 +08:00
|
|
|
$(Q)$(MAKE) $(clean)=arch/x86/boot
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
define archhelp
|
2007-11-13 03:14:19 +08:00
|
|
|
echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)'
|
2005-04-17 06:20:36 +08:00
|
|
|
echo ' install - Install kernel using'
|
|
|
|
echo ' (your) ~/bin/installkernel or'
|
|
|
|
echo ' (distribution) /sbin/installkernel or'
|
|
|
|
echo ' install to $$(INSTALL_PATH) and run lilo'
|
|
|
|
echo ' bzdisk - Create a boot floppy in /dev/fd0'
|
|
|
|
echo ' fdimage - Create a boot floppy image'
|
2006-03-26 17:36:59 +08:00
|
|
|
echo ' isoimage - Create a boot CD-ROM image'
|
2005-04-17 06:20:36 +08:00
|
|
|
endef
|
|
|
|
|
2007-11-13 03:14:19 +08:00
|
|
|
CLEAN_FILES += arch/x86/boot/fdimage \
|
|
|
|
arch/x86/boot/image.iso \
|
|
|
|
arch/x86/boot/mtools.conf
|