Makefile (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) | Makefile (99f857db8857aff691c51302f93648263ed07eb1) |
---|---|
1# 2# arch/x86/boot/Makefile 3# 4# This file is subject to the terms and conditions of the GNU General Public 5# License. See the file "COPYING" in the main directory of this archive 6# for more details. 7# 8# Copyright (C) 1994 by Linus Torvalds --- 57 unchanged lines hidden (view full) --- 66 $(call cc-option, -mpreferred-stack-boundary=2) 67KBUILD_CFLAGS += $(call cc-option, -m32) 68KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ 69GCOV_PROFILE := n 70 71$(obj)/bzImage: asflags-y := $(SVGA_MODE) 72 73quiet_cmd_image = BUILD $@ | 1# 2# arch/x86/boot/Makefile 3# 4# This file is subject to the terms and conditions of the GNU General Public 5# License. See the file "COPYING" in the main directory of this archive 6# for more details. 7# 8# Copyright (C) 1994 by Linus Torvalds --- 57 unchanged lines hidden (view full) --- 66 $(call cc-option, -mpreferred-stack-boundary=2) 67KBUILD_CFLAGS += $(call cc-option, -m32) 68KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ 69GCOV_PROFILE := n 70 71$(obj)/bzImage: asflags-y := $(SVGA_MODE) 72 73quiet_cmd_image = BUILD $@ |
74cmd_image = $(obj)/tools/build $(obj)/setup.bin $(obj)/vmlinux.bin > $@ | 74cmd_image = $(obj)/tools/build $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/zoffset.h > $@ |
75 76$(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/tools/build FORCE 77 $(call if_changed,image) 78 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' 79 80OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S 81$(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE 82 $(call if_changed,objcopy) --- 4 unchanged lines hidden (view full) --- 87 88quiet_cmd_voffset = VOFFSET $@ 89 cmd_voffset = $(NM) $< | sed -n $(sed-voffset) > $@ 90 91targets += voffset.h 92$(obj)/voffset.h: vmlinux FORCE 93 $(call if_changed,voffset) 94 | 75 76$(obj)/bzImage: $(obj)/setup.bin $(obj)/vmlinux.bin $(obj)/tools/build FORCE 77 $(call if_changed,image) 78 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')' 79 80OBJCOPYFLAGS_vmlinux.bin := -O binary -R .note -R .comment -S 81$(obj)/vmlinux.bin: $(obj)/compressed/vmlinux FORCE 82 $(call if_changed,objcopy) --- 4 unchanged lines hidden (view full) --- 87 88quiet_cmd_voffset = VOFFSET $@ 89 cmd_voffset = $(NM) $< | sed -n $(sed-voffset) > $@ 90 91targets += voffset.h 92$(obj)/voffset.h: vmlinux FORCE 93 $(call if_changed,voffset) 94 |
95sed-zoffset := -e 's/^\([0-9a-fA-F]*\) . \(startup_32\|input_data\|_end\|z_.*\)$$/\#define ZO_\2 0x\1/p' | 95sed-zoffset := -e 's/^\([0-9a-fA-F]*\) . \(startup_32\|startup_64\|efi_pe_entry\|efi_stub_entry\|input_data\|_end\|z_.*\)$$/\#define ZO_\2 0x\1/p' |
96 97quiet_cmd_zoffset = ZOFFSET $@ 98 cmd_zoffset = $(NM) $< | sed -n $(sed-zoffset) > $@ 99 100targets += zoffset.h 101$(obj)/zoffset.h: $(obj)/compressed/vmlinux FORCE 102 $(call if_changed,zoffset) 103 --- 92 unchanged lines hidden --- | 96 97quiet_cmd_zoffset = ZOFFSET $@ 98 cmd_zoffset = $(NM) $< | sed -n $(sed-zoffset) > $@ 99 100targets += zoffset.h 101$(obj)/zoffset.h: $(obj)/compressed/vmlinux FORCE 102 $(call if_changed,zoffset) 103 --- 92 unchanged lines hidden --- |