Makefile (04e3a553e0cbed369e5649c472ac317b6c45215d) | Makefile (993ce24078eac1442078741cd204584b63de0881) |
---|---|
1UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" 2 3# What CPU vesion are we building for, and crack it open 4# as major.minor.rev 5CPU_VER=$(subst ",,$(CONFIG_XILINX_MICROBLAZE0_HW_VER) ) 6CPU_MAJOR=$(shell echo $(CPU_VER) | cut -d '.' -f 1) 7CPU_MINOR=$(shell echo $(CPU_VER) | cut -d '.' -f 2) 8CPU_REV=$(shell echo $(CPU_VER) | cut -d '.' -f 3) --- 18 unchanged lines hidden (view full) --- 27CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div 28CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift 29CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare 30 31CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) 32 33# The various CONFIG_XILINX cpu features options are integers 0/1/2... 34# rather than bools y/n | 1UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" 2 3# What CPU vesion are we building for, and crack it open 4# as major.minor.rev 5CPU_VER=$(subst ",,$(CONFIG_XILINX_MICROBLAZE0_HW_VER) ) 6CPU_MAJOR=$(shell echo $(CPU_VER) | cut -d '.' -f 1) 7CPU_MINOR=$(shell echo $(CPU_VER) | cut -d '.' -f 2) 8CPU_REV=$(shell echo $(CPU_VER) | cut -d '.' -f 3) --- 18 unchanged lines hidden (view full) --- 27CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div 28CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift 29CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare 30 31CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) 32 33# The various CONFIG_XILINX cpu features options are integers 0/1/2... 34# rather than bools y/n |
35CFLAGS += $(CPUFLAGS-1) 36CFLAGS += $(CPUFLAGS-2) | |
37 38# r31 holds current when in kernel mode | 35 36# r31 holds current when in kernel mode |
39CFLAGS += -ffixed-r31 | 37CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2) |
40 41LDFLAGS_BLOB := --format binary --oformat elf32-microblaze 42 | 38 39LDFLAGS_BLOB := --format binary --oformat elf32-microblaze 40 |
43LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | 41LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name) |
44 45head-y := arch/microblaze/kernel/head.o 46libs-y += arch/microblaze/lib/ $(LIBGCC) 47core-y += arch/microblaze/kernel/ arch/microblaze/mm/ \ 48 arch/microblaze/platform/ 49 50boot := arch/$(ARCH)/boot 51 --- 18 unchanged lines hidden --- | 42 43head-y := arch/microblaze/kernel/head.o 44libs-y += arch/microblaze/lib/ $(LIBGCC) 45core-y += arch/microblaze/kernel/ arch/microblaze/mm/ \ 46 arch/microblaze/platform/ 47 48boot := arch/$(ARCH)/boot 49 --- 18 unchanged lines hidden --- |