Makefile (ee0736627d3347be0be2769fa7b26431f9726c9d) | Makefile (4b2368ffd6e3563b73b8391c133822a58b1b432a) |
---|---|
1ifeq ($(CONFIG_MMU),y) 2UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\" 3else |
|
1UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" | 4UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" |
5endif |
|
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) 9 --- 21 unchanged lines hidden (view full) --- 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 35 36# r31 holds current when in kernel mode 37CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2) 38 | 6 7# What CPU vesion are we building for, and crack it open 8# as major.minor.rev 9CPU_VER=$(subst ",,$(CONFIG_XILINX_MICROBLAZE0_HW_VER) ) 10CPU_MAJOR=$(shell echo $(CPU_VER) | cut -d '.' -f 1) 11CPU_MINOR=$(shell echo $(CPU_VER) | cut -d '.' -f 2) 12CPU_REV=$(shell echo $(CPU_VER) | cut -d '.' -f 3) 13 --- 21 unchanged lines hidden (view full) --- 35CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) 36 37# The various CONFIG_XILINX cpu features options are integers 0/1/2... 38# rather than bools y/n 39 40# r31 holds current when in kernel mode 41CFLAGS_KERNEL += -ffixed-r31 $(CPUFLAGS-1) $(CPUFLAGS-2) 42 |
43LDFLAGS := 44LDFLAGS_vmlinux := |
|
39LDFLAGS_BLOB := --format binary --oformat elf32-microblaze 40 41LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name) 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/ --- 21 unchanged lines hidden --- | 45LDFLAGS_BLOB := --format binary --oformat elf32-microblaze 46 47LIBGCC := $(shell $(CC) $(CFLAGS_KERNEL) -print-libgcc-file-name) 48 49head-y := arch/microblaze/kernel/head.o 50libs-y += arch/microblaze/lib/ $(LIBGCC) 51core-y += arch/microblaze/kernel/ arch/microblaze/mm/ \ 52 arch/microblaze/platform/ --- 21 unchanged lines hidden --- |