aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/Makefile')
-rw-r--r--arch/blackfin/Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/arch/blackfin/Makefile b/arch/blackfin/Makefile
index 368933760d28..3c87291bcdab 100644
--- a/arch/blackfin/Makefile
+++ b/arch/blackfin/Makefile
@@ -12,12 +12,17 @@ LDFLAGS_vmlinux := -X
12OBJCOPYFLAGS := -O binary -R .note -R .comment -S 12OBJCOPYFLAGS := -O binary -R .note -R .comment -S
13GZFLAGS := -9 13GZFLAGS := -9
14 14
15CFLAGS += $(call cc-option,-mno-fdpic)
16AFLAGS += $(call cc-option,-mno-fdpic)
15CFLAGS_MODULE += -mlong-calls 17CFLAGS_MODULE += -mlong-calls
16KALLSYMS += --symbol-prefix=_ 18KALLSYMS += --symbol-prefix=_
17 19
18KBUILD_DEFCONFIG := BF537-STAMP_defconfig 20KBUILD_DEFCONFIG := BF537-STAMP_defconfig
19 21
20# setup the machine name and the machine dependent settings 22# setup the machine name and the machine dependent settings
23machine-$(CONFIG_BF522) := bf527
24machine-$(CONFIG_BF525) := bf527
25machine-$(CONFIG_BF527) := bf527
21machine-$(CONFIG_BF531) := bf533 26machine-$(CONFIG_BF531) := bf533
22machine-$(CONFIG_BF532) := bf533 27machine-$(CONFIG_BF532) := bf533
23machine-$(CONFIG_BF533) := bf533 28machine-$(CONFIG_BF533) := bf533
@@ -32,6 +37,9 @@ machine-$(CONFIG_BF561) := bf561
32MACHINE := $(machine-y) 37MACHINE := $(machine-y)
33export MACHINE 38export MACHINE
34 39
40cpu-$(CONFIG_BF522) := bf522
41cpu-$(CONFIG_BF525) := bf525
42cpu-$(CONFIG_BF527) := bf527
35cpu-$(CONFIG_BF531) := bf531 43cpu-$(CONFIG_BF531) := bf531
36cpu-$(CONFIG_BF532) := bf532 44cpu-$(CONFIG_BF532) := bf532
37cpu-$(CONFIG_BF533) := bf533 45cpu-$(CONFIG_BF533) := bf533
@@ -97,12 +105,23 @@ archclean:
97 $(Q)$(MAKE) $(clean)=$(boot) 105 $(Q)$(MAKE) $(clean)=$(boot)
98 106
99 107
100all: vmImage
101boot := arch/$(ARCH)/boot 108boot := arch/$(ARCH)/boot
102BOOT_TARGETS = vmImage 109BOOT_TARGETS = vmImage
103.PHONY: $(BOOT_TARGETS) 110PHONY += $(BOOT_TARGETS) install
111KBUILD_IMAGE := $(boot)/vmImage
112
113all: vmImage
114
104$(BOOT_TARGETS): vmlinux 115$(BOOT_TARGETS): vmlinux
105 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 116 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
117
118install:
119 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install
120
106define archhelp 121define archhelp
107 echo '* vmImage - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage)' 122 echo '* vmImage - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage)'
123 echo ' install - Install kernel using'
124 echo ' (your) ~/bin/$(CROSS_COMPILE)installkernel or'
125 echo ' (distribution) PATH: $(CROSS_COMPILE)installkernel or'
126 echo ' install to $$(INSTALL_PATH)'
108endef 127endef