Makefile (8065be8d032f38da25b54bf077a05a30d9ce9f2a) | Makefile (3aaefce10351fecab348f5e06857f44cafc61a62) |
---|---|
1# Unified Makefile for i386 and x86_64 2 3# select defconfig based on actual architecture 4ifeq ($(ARCH),x86) 5 ifeq ($(shell uname -m),x86_64) 6 KBUILD_DEFCONFIG := x86_64_defconfig 7 else 8 KBUILD_DEFCONFIG := i386_defconfig --- 169 unchanged lines hidden (view full) --- 178 $(Q)$(MAKE) $(build)=arch/x86/tools relocs 179 180### 181# Syscall table generation 182 183archheaders: 184 $(Q)$(MAKE) $(build)=arch/x86/syscalls all 185 | 1# Unified Makefile for i386 and x86_64 2 3# select defconfig based on actual architecture 4ifeq ($(ARCH),x86) 5 ifeq ($(shell uname -m),x86_64) 6 KBUILD_DEFCONFIG := x86_64_defconfig 7 else 8 KBUILD_DEFCONFIG := i386_defconfig --- 169 unchanged lines hidden (view full) --- 178 $(Q)$(MAKE) $(build)=arch/x86/tools relocs 179 180### 181# Syscall table generation 182 183archheaders: 184 $(Q)$(MAKE) $(build)=arch/x86/syscalls all 185 |
186archprepare: 187ifeq ($(CONFIG_KEXEC),y) 188# Build only for 64bit. No loaders for 32bit yet. 189 ifeq ($(CONFIG_X86_64),y) 190 $(Q)$(MAKE) $(build)=arch/x86/purgatory arch/x86/purgatory/kexec-purgatory.c 191 endif 192endif 193 | |
194### 195# Kernel objects 196 197head-y := arch/x86/kernel/head_$(BITS).o 198head-y += arch/x86/kernel/head$(BITS).o 199head-y += arch/x86/kernel/head.o 200 201libs-y += arch/x86/lib/ --- 48 unchanged lines hidden (view full) --- 250 $(Q)$(MAKE) $(build)=arch/x86/vdso $@ 251 252archclean: 253 $(Q)rm -rf $(objtree)/arch/i386 254 $(Q)rm -rf $(objtree)/arch/x86_64 255 $(Q)$(MAKE) $(clean)=$(boot) 256 $(Q)$(MAKE) $(clean)=arch/x86/tools 257 | 186### 187# Kernel objects 188 189head-y := arch/x86/kernel/head_$(BITS).o 190head-y += arch/x86/kernel/head$(BITS).o 191head-y += arch/x86/kernel/head.o 192 193libs-y += arch/x86/lib/ --- 48 unchanged lines hidden (view full) --- 242 $(Q)$(MAKE) $(build)=arch/x86/vdso $@ 243 244archclean: 245 $(Q)rm -rf $(objtree)/arch/i386 246 $(Q)rm -rf $(objtree)/arch/x86_64 247 $(Q)$(MAKE) $(clean)=$(boot) 248 $(Q)$(MAKE) $(clean)=arch/x86/tools 249 |
258PHONY += kvmconfig 259kvmconfig: 260 $(if $(wildcard $(objtree)/.config),, $(error You need an existing .config for this target)) 261 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config $(srctree)/arch/x86/configs/kvm_guest.config 262 $(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig 263 | |
264define archhelp 265 echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)' 266 echo ' install - Install kernel using' 267 echo ' (your) ~/bin/$(INSTALLKERNEL) or' 268 echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 269 echo ' install to $$(INSTALL_PATH) and run lilo' 270 echo ' fdimage - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)' 271 echo ' fdimage144 - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)' 272 echo ' fdimage288 - Create 2.8MB boot floppy image (arch/x86/boot/fdimage)' 273 echo ' isoimage - Create a boot CD-ROM image (arch/x86/boot/image.iso)' 274 echo ' bzdisk/fdimage*/isoimage also accept:' 275 echo ' FDARGS="..." arguments for the booted kernel' 276 echo ' FDINITRD=file initrd for the booted kernel' | 250define archhelp 251 echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)' 252 echo ' install - Install kernel using' 253 echo ' (your) ~/bin/$(INSTALLKERNEL) or' 254 echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 255 echo ' install to $$(INSTALL_PATH) and run lilo' 256 echo ' fdimage - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)' 257 echo ' fdimage144 - Create 1.4MB boot floppy image (arch/x86/boot/fdimage)' 258 echo ' fdimage288 - Create 2.8MB boot floppy image (arch/x86/boot/fdimage)' 259 echo ' isoimage - Create a boot CD-ROM image (arch/x86/boot/image.iso)' 260 echo ' bzdisk/fdimage*/isoimage also accept:' 261 echo ' FDARGS="..." arguments for the booted kernel' 262 echo ' FDINITRD=file initrd for the booted kernel' |
277 echo ' kvmconfig - Enable additional options for guest kernel support' | |
278endef | 263endef |