Makefile (927185c124d62a9a4d35878d7f6d432a166b74e3) Makefile (afa974b771281fd89e8fdcb71152152f17fb8303)
1#
2# arch/x86/realmode/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#

--- 23 unchanged lines hidden (view full) ---

32
33targets += $(realmode-y)
34
35REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y))
36
37sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p'
38
39quiet_cmd_pasyms = PASYMS $@
1#
2# arch/x86/realmode/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#

--- 23 unchanged lines hidden (view full) ---

32
33targets += $(realmode-y)
34
35REALMODE_OBJS = $(addprefix $(obj)/,$(realmode-y))
36
37sed-pasyms := -n -r -e 's/^([0-9a-fA-F]+) [ABCDGRSTVW] (.+)$$/pa_\2 = \2;/p'
38
39quiet_cmd_pasyms = PASYMS $@
40 cmd_pasyms = $(NM) $(filter-out FORCE,$^) | \
41 sed $(sed-pasyms) | sort | uniq > $@
40 cmd_pasyms = $(NM) $(real-prereqs) | sed $(sed-pasyms) | sort | uniq > $@
42
43targets += pasyms.h
44$(obj)/pasyms.h: $(REALMODE_OBJS) FORCE
45 $(call if_changed,pasyms)
46
47targets += realmode.lds
48$(obj)/realmode.lds: $(obj)/pasyms.h
49
41
42targets += pasyms.h
43$(obj)/pasyms.h: $(REALMODE_OBJS) FORCE
44 $(call if_changed,pasyms)
45
46targets += realmode.lds
47$(obj)/realmode.lds: $(obj)/pasyms.h
48
50LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T
49LDFLAGS_realmode.elf := --emit-relocs -T
51CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$(obj)
52
53targets += realmode.elf
54$(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE
55 $(call if_changed,ld)
56
57OBJCOPYFLAGS_realmode.bin := -O binary
58

--- 18 unchanged lines hidden ---
50CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$(obj)
51
52targets += realmode.elf
53$(obj)/realmode.elf: $(obj)/realmode.lds $(REALMODE_OBJS) FORCE
54 $(call if_changed,ld)
55
56OBJCOPYFLAGS_realmode.bin := -O binary
57

--- 18 unchanged lines hidden ---