Makefile (498495dba268b20e8eadd7fe93c140c68b6cc9d2) | Makefile (71e7673dadfdae0605d4c1f66ecb4b045c79fe0f) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2KBUILD_DEFCONFIG := mmu_defconfig 3 4ifeq ($(CONFIG_MMU),y) 5UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\" 6else 7UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" 8endif --- 22 unchanged lines hidden (view full) --- 31 # USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support. 32 CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high 33 CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul 34 endif 35endif 36CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div 37CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift 38CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare | 1# SPDX-License-Identifier: GPL-2.0 2KBUILD_DEFCONFIG := mmu_defconfig 3 4ifeq ($(CONFIG_MMU),y) 5UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\" 6else 7UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" 8endif --- 22 unchanged lines hidden (view full) --- 31 # USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support. 32 CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high 33 CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul 34 endif 35endif 36CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div 37CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift 38CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare |
39CPUFLAGS-$(CONFIG_BIG_ENDIAN) += -mbig-endian 40CPUFLAGS-$(CONFIG_LITTLE_ENDIAN) += -mlittle-endian | |
41 | 39 |
40ifdef CONFIG_CPU_BIG_ENDIAN 41KBUILD_CFLAGS += -mbig-endian 42KBUILD_AFLAGS += -mbig-endian 43LD += -EB 44else 45KBUILD_CFLAGS += -mlittle-endian 46KBUILD_AFLAGS += -mlittle-endian 47LD += -EL 48endif 49 |
|
42CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) 43 44# r31 holds current when in kernel mode | 50CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) 51 52# r31 holds current when in kernel mode |
45KBUILD_CFLAGS += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2) | 53KBUILD_CFLAGS += -ffixed-r31 $(CPUFLAGS-y) $(CPUFLAGS-1) $(CPUFLAGS-2) |
46 | 54 |
47LDFLAGS := 48LDFLAGS_vmlinux := 49 | |
50head-y := arch/microblaze/kernel/head.o 51libs-y += arch/microblaze/lib/ 52core-y += arch/microblaze/kernel/ 53core-y += arch/microblaze/mm/ 54core-$(CONFIG_PCI) += arch/microblaze/pci/ 55 56drivers-$(CONFIG_OPROFILE) += arch/microblaze/oprofile/ 57 --- 44 unchanged lines hidden --- | 55head-y := arch/microblaze/kernel/head.o 56libs-y += arch/microblaze/lib/ 57core-y += arch/microblaze/kernel/ 58core-y += arch/microblaze/mm/ 59core-$(CONFIG_PCI) += arch/microblaze/pci/ 60 61drivers-$(CONFIG_OPROFILE) += arch/microblaze/oprofile/ 62 --- 44 unchanged lines hidden --- |