Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26
[deliverable/linux.git] / arch / x86 / kernel / acpi / realmode / Makefile
1 #
2 # arch/x86/kernel/acpi/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
9 targets := wakeup.bin wakeup.elf
10
11 wakeup-y += wakeup.o wakemain.o video-mode.o copy.o
12
13 # The link order of the video-*.o modules can matter. In particular,
14 # video-vga.o *must* be listed first, followed by video-vesa.o.
15 # Hardware-specific drivers should follow in the order they should be
16 # probed, and video-bios.o should typically be last.
17 wakeup-y += video-vga.o
18 wakeup-y += video-vesa.o
19 wakeup-y += video-bios.o
20
21 targets += $(wakeup-y)
22
23 bootsrc := $(src)/../../../boot
24
25 # ---------------------------------------------------------------------------
26
27 # How to compile the 16-bit code. Note we always compile for -march=i386,
28 # that way we can complain to the user if the CPU is insufficient.
29 # Compile with _SETUP since this is similar to the boot-time setup code.
30 KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ \
31 -I$(srctree)/$(bootsrc) \
32 $(cflags-y) \
33 -Wall -Wstrict-prototypes \
34 -march=i386 -mregparm=3 \
35 -include $(srctree)/$(bootsrc)/code16gcc.h \
36 -fno-strict-aliasing -fomit-frame-pointer \
37 $(call cc-option, -ffreestanding) \
38 $(call cc-option, -fno-toplevel-reorder,\
39 $(call cc-option, -fno-unit-at-a-time)) \
40 $(call cc-option, -fno-stack-protector) \
41 $(call cc-option, -mpreferred-stack-boundary=2)
42 KBUILD_CFLAGS += $(call cc-option, -m32)
43 KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
44
45 WAKEUP_OBJS = $(addprefix $(obj)/,$(wakeup-y))
46
47 LDFLAGS_wakeup.elf := -T
48
49 CPPFLAGS_wakeup.lds += -P -C
50
51 $(obj)/wakeup.elf: $(src)/wakeup.lds $(WAKEUP_OBJS) FORCE
52 $(call if_changed,ld)
53
54 OBJCOPYFLAGS_wakeup.bin := -O binary
55
56 $(obj)/wakeup.bin: $(obj)/wakeup.elf FORCE
57 $(call if_changed,objcopy)
This page took 0.031739 seconds and 6 git commands to generate.