[PATCH] kbuild/i386: re-introduce dependency on vmlinux for install target, and add kernel_install
Removing the dependency on vmlinux for the install target raised a few complaints, so instead a new target i added: kernel_install. kernel_install will install the kernel just like the ordinary install target. The only difference is that install has a dependency on vmlinux, kernel_install does not. Therefore kernel_install is the best choice when accessing the kernel over a NFS mount or as another user. kernel_install is similar to modules_install in the fact that neither does a full kernel compile before performing the install. In this way they are good for root use. Also added back the dependency on vmlinux for the install target so peoples scripts are no longer broken. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1d651f3332
commit
2cacb3da62
|
@ -123,7 +123,7 @@ AFLAGS += $(mflags-y)
|
||||||
boot := arch/i386/boot
|
boot := arch/i386/boot
|
||||||
|
|
||||||
.PHONY: zImage bzImage compressed zlilo bzlilo \
|
.PHONY: zImage bzImage compressed zlilo bzlilo \
|
||||||
zdisk bzdisk fdimage fdimage144 fdimage288 install
|
zdisk bzdisk fdimage fdimage144 fdimage288 install kernel_install
|
||||||
|
|
||||||
all: bzImage
|
all: bzImage
|
||||||
|
|
||||||
|
@ -145,8 +145,9 @@ zdisk bzdisk: vmlinux
|
||||||
fdimage fdimage144 fdimage288: vmlinux
|
fdimage fdimage144 fdimage288: vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
|
||||||
|
|
||||||
install:
|
install: vmlinux
|
||||||
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
|
install kernel_install:
|
||||||
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
|
||||||
|
|
||||||
prepare: include/asm-$(ARCH)/asm_offsets.h
|
prepare: include/asm-$(ARCH)/asm_offsets.h
|
||||||
CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
|
CLEAN_FILES += include/asm-$(ARCH)/asm_offsets.h
|
||||||
|
|
Loading…
Reference in New Issue