.. | .. |
---|
16 | 16 | NM := $(CROSS_COMPILE)nm -B |
---|
17 | 17 | READELF := $(CROSS_COMPILE)readelf |
---|
18 | 18 | |
---|
19 | | -export AWK |
---|
20 | | - |
---|
21 | 19 | CHECKFLAGS += -D__ia64=1 -D__ia64__=1 -D_LP64 -D__LP64__ |
---|
22 | 20 | |
---|
23 | 21 | OBJCOPYFLAGS := --strip-all |
---|
24 | 22 | LDFLAGS_vmlinux := -static |
---|
25 | | -KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/ia64/module.lds |
---|
26 | 23 | KBUILD_AFLAGS_KERNEL := -mconstant-gp |
---|
27 | 24 | EXTRA := |
---|
28 | 25 | |
---|
.. | .. |
---|
41 | 38 | ftp://ftp.hpl.hp.com/pub/linux-ia64/gas-030124.tar.gz) |
---|
42 | 39 | endif |
---|
43 | 40 | |
---|
| 41 | +quiet_cmd_gzip = GZIP $@ |
---|
| 42 | +cmd_gzip = cat $(real-prereqs) | $(KGZIP) -n -f -9 > $@ |
---|
| 43 | + |
---|
| 44 | +quiet_cmd_objcopy = OBJCOPY $@ |
---|
| 45 | +cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@ |
---|
| 46 | + |
---|
44 | 47 | KBUILD_CFLAGS += $(cflags-y) |
---|
45 | 48 | head-y := arch/ia64/kernel/head.o |
---|
46 | 49 | |
---|
47 | 50 | libs-y += arch/ia64/lib/ |
---|
48 | 51 | core-y += arch/ia64/kernel/ arch/ia64/mm/ |
---|
49 | | -core-$(CONFIG_IA64_DIG) += arch/ia64/dig/ |
---|
50 | | -core-$(CONFIG_IA64_DIG_VTD) += arch/ia64/dig/ |
---|
51 | | -core-$(CONFIG_IA64_GENERIC) += arch/ia64/dig/ |
---|
52 | | -core-$(CONFIG_IA64_HP_ZX1) += arch/ia64/dig/ |
---|
53 | | -core-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += arch/ia64/dig/ |
---|
54 | | -core-$(CONFIG_IA64_SGI_SN2) += arch/ia64/sn/ |
---|
55 | 52 | core-$(CONFIG_IA64_SGI_UV) += arch/ia64/uv/ |
---|
56 | 53 | |
---|
57 | | -drivers-$(CONFIG_PCI) += arch/ia64/pci/ |
---|
58 | | -drivers-$(CONFIG_IA64_HP_SIM) += arch/ia64/hp/sim/ |
---|
59 | | -drivers-$(CONFIG_IA64_HP_ZX1) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ |
---|
60 | | -drivers-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ |
---|
61 | | -drivers-$(CONFIG_IA64_GENERIC) += arch/ia64/hp/common/ arch/ia64/hp/zx1/ arch/ia64/hp/sim/ arch/ia64/sn/ arch/ia64/uv/ |
---|
| 54 | +drivers-y += arch/ia64/pci/ arch/ia64/hp/common/ |
---|
62 | 55 | drivers-$(CONFIG_OPROFILE) += arch/ia64/oprofile/ |
---|
63 | 56 | |
---|
64 | | -boot := arch/ia64/hp/sim/boot |
---|
65 | | - |
---|
66 | | -PHONY += boot compressed check |
---|
| 57 | +PHONY += compressed check |
---|
67 | 58 | |
---|
68 | 59 | all: compressed unwcheck |
---|
69 | 60 | |
---|
.. | .. |
---|
71 | 62 | |
---|
72 | 63 | vmlinuz: vmlinux.gz |
---|
73 | 64 | |
---|
74 | | -vmlinux.gz: vmlinux |
---|
75 | | - $(Q)$(MAKE) $(build)=$(boot) $@ |
---|
| 65 | +vmlinux.gz: vmlinux.bin FORCE |
---|
| 66 | + $(call if_changed,gzip) |
---|
| 67 | + |
---|
| 68 | +vmlinux.bin: vmlinux FORCE |
---|
| 69 | + $(call if_changed,objcopy) |
---|
76 | 70 | |
---|
77 | 71 | unwcheck: vmlinux |
---|
78 | 72 | -$(Q)READELF=$(READELF) $(PYTHON) $(srctree)/arch/ia64/scripts/unwcheck.py $< |
---|
79 | 73 | |
---|
80 | 74 | archclean: |
---|
81 | | - $(Q)$(MAKE) $(clean)=$(boot) |
---|
82 | 75 | |
---|
83 | | -CLEAN_FILES += vmlinux.gz bootloader |
---|
| 76 | +archheaders: |
---|
| 77 | + $(Q)$(MAKE) $(build)=arch/ia64/kernel/syscalls all |
---|
84 | 78 | |
---|
85 | | -boot: lib/lib.a vmlinux |
---|
86 | | - $(Q)$(MAKE) $(build)=$(boot) $@ |
---|
| 79 | +CLEAN_FILES += vmlinux.gz |
---|
87 | 80 | |
---|
88 | 81 | install: vmlinux.gz |
---|
89 | 82 | sh $(srctree)/arch/ia64/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)" |
---|
.. | .. |
---|
91 | 84 | define archhelp |
---|
92 | 85 | echo '* compressed - Build compressed kernel image' |
---|
93 | 86 | echo ' install - Install compressed kernel image' |
---|
94 | | - echo ' boot - Build vmlinux and bootloader for Ski simulator' |
---|
95 | 87 | echo '* unwcheck - Check vmlinux for invalid unwind info' |
---|
96 | 88 | endef |
---|
97 | 89 | |
---|