Makefile (939a24a6df24649cea9fd0ff54fe71ee0dc1d61e) | Makefile (93dc544cf4892b9188d7d0d4946b0394020b4551) |
---|---|
1# 2# arch/sh/Makefile 3# 4# Copyright (C) 1999 Kaz Kojima 5# Copyright (C) 2002, 2003, 2004 Paul Mundt 6# Copyright (C) 2002 M. R. Brown 7# 8# This file is subject to the terms and conditions of the GNU General Public --- 77 unchanged lines hidden (view full) --- 86ifdef CONFIG_CPU_LITTLE_ENDIAN 87LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' 88LDFLAGS += -EL 89else 90LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' 91LDFLAGS += -EB 92endif 93 | 1# 2# arch/sh/Makefile 3# 4# Copyright (C) 1999 Kaz Kojima 5# Copyright (C) 2002, 2003, 2004 Paul Mundt 6# Copyright (C) 2002 M. R. Brown 7# 8# This file is subject to the terms and conditions of the GNU General Public --- 77 unchanged lines hidden (view full) --- 86ifdef CONFIG_CPU_LITTLE_ENDIAN 87LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64' 88LDFLAGS += -EL 89else 90LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4' 91LDFLAGS += -EB 92endif 93 |
94 | |
95head-y := arch/sh/kernel/init_task.o 96head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o 97head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o 98 99LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 100 101core-y += arch/sh/kernel/ arch/sh/mm/ 102core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ --- 26 unchanged lines hidden (view full) --- 129ifneq ($(machdir-y),) 130core-y += $(addprefix arch/sh/boards/, \ 131 $(filter-out ., $(patsubst %,%/,$(machdir-y)))) 132endif 133 134# Companion chips 135core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ 136 | 94head-y := arch/sh/kernel/init_task.o 95head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o 96head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o 97 98LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 99 100core-y += arch/sh/kernel/ arch/sh/mm/ 101core-$(CONFIG_SH_FPU_EMU) += arch/sh/math-emu/ --- 26 unchanged lines hidden (view full) --- 128ifneq ($(machdir-y),) 129core-y += $(addprefix arch/sh/boards/, \ 130 $(filter-out ., $(patsubst %,%/,$(machdir-y)))) 131endif 132 133# Companion chips 134core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ 135 |
137cpuincdir-$(CONFIG_CPU_SH2) := cpu-sh2 138cpuincdir-$(CONFIG_CPU_SH2A) := cpu-sh2a 139cpuincdir-$(CONFIG_CPU_SH3) := cpu-sh3 140cpuincdir-$(CONFIG_CPU_SH4) := cpu-sh4 141cpuincdir-$(CONFIG_CPU_SH5) := cpu-sh5 | 136# 137# CPU header paths 138# 139# These are ordered by optimization level. A CPU family that is a subset 140# of another (ie, SH-2A / SH-2), is picked up first, with increasing 141# levels of genericness if nothing more suitable is situated in the 142# hierarchy. 143# 144# As an example, in order of preference, SH-2A > SH-2 > common definitions. 145# 146cpuincdir-$(CONFIG_CPU_SH2A) += cpu-sh2a 147cpuincdir-$(CONFIG_CPU_SH2) += cpu-sh2 148cpuincdir-$(CONFIG_CPU_SH3) += cpu-sh3 149cpuincdir-$(CONFIG_CPU_SH4) += cpu-sh4 150cpuincdir-$(CONFIG_CPU_SH5) += cpu-sh5 151cpuincdir-y += cpu-common # Must be last |
142 143libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) 144libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) 145libs-y += $(LIBGCC) 146 147drivers-y += arch/sh/drivers/ 148drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ 149 150boot := arch/sh/boot 151 | 152 153libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) 154libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) 155libs-y += $(LIBGCC) 156 157drivers-y += arch/sh/drivers/ 158drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ 159 160boot := arch/sh/boot 161 |
152cflags-y += -Iarch/sh/include/$(cpuincdir-y) 153cflags-y += $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) | 162cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ 163 $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) |
154 155KBUILD_CFLAGS += -pipe $(cflags-y) 156KBUILD_CPPFLAGS += $(cflags-y) 157KBUILD_AFLAGS += $(cflags-y) 158 159PHONY += maketools FORCE 160 161maketools: include/linux/version.h FORCE --- 52 unchanged lines hidden --- | 164 165KBUILD_CFLAGS += -pipe $(cflags-y) 166KBUILD_CPPFLAGS += $(cflags-y) 167KBUILD_AFLAGS += $(cflags-y) 168 169PHONY += maketools FORCE 170 171maketools: include/linux/version.h FORCE --- 52 unchanged lines hidden --- |