Blame view
arch/nios2/Makefile
2.6 KB
2fc8483fd nios2: Build infr... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# # This file is subject to the terms and conditions of the GNU General Public # License. See the file "COPYING" in the main directory of this archive # for more details. # # Copyright (C) 2013 Altera Corporation # Copyright (C) 1994, 95, 96, 2003 by Wind River Systems # Written by Fredrik Markstrom # # This file is included by the global makefile so that you can add your own # architecture-specific flags and dependencies. Remember to do have actions # for "archclean" cleaning up for this architecture. # # Nios2 port by Wind River Systems Inc trough: # fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com |
d1e4ef042 nios2: enable "ma... |
16 |
KBUILD_DEFCONFIG := 3c120_defconfig |
2fc8483fd nios2: Build infr... |
17 18 19 |
UTS_SYSNAME = Linux export MMU |
fb75a2bb5 nios2: Fix libgcc... |
20 |
LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name) |
2fc8483fd nios2: Build infr... |
21 |
|
a89988a6e nios2: Add NIOS2_... |
22 |
KBUILD_AFLAGS += -march=r$(CONFIG_NIOS2_ARCH_REVISION) |
2fc8483fd nios2: Build infr... |
23 |
KBUILD_CFLAGS += -pipe -D__linux__ -D__ELF__ |
a89988a6e nios2: Add NIOS2_... |
24 |
KBUILD_CFLAGS += -march=r$(CONFIG_NIOS2_ARCH_REVISION) |
2fc8483fd nios2: Build infr... |
25 26 27 |
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_MUL_SUPPORT),-mhw-mul,-mno-hw-mul) KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_MULX_SUPPORT),-mhw-mulx,-mno-hw-mulx) KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_DIV_SUPPORT),-mhw-div,-mno-hw-div) |
23460839b nios2: Add BMX su... |
28 |
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_BMX_SUPPORT),-mbmx,-mno-bmx) |
edebea987 nios2: Add CDX su... |
29 |
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_CDX_SUPPORT),-mcdx,-mno-cdx) |
2fc8483fd nios2: Build infr... |
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_FPU_SUPPORT),-mcustom-fpu-cfg=60-1,) KBUILD_CFLAGS += -fno-optimize-sibling-calls KBUILD_CFLAGS += -DUTS_SYSNAME=\"$(UTS_SYSNAME)\" KBUILD_CFLAGS += -fno-builtin KBUILD_CFLAGS += -G 0 head-y := arch/nios2/kernel/head.o libs-y += arch/nios2/lib/ $(LIBGCC) core-y += arch/nios2/kernel/ arch/nios2/mm/ core-y += arch/nios2/platform/ INSTALL_PATH ?= /tftpboot nios2-boot := arch/$(ARCH)/boot BOOT_TARGETS = vmImage zImage PHONY += $(BOOT_TARGETS) install KBUILD_IMAGE := $(nios2-boot)/vmImage ifneq ($(CONFIG_NIOS2_DTB_SOURCE),"") core-y += $(nios2-boot)/ endif all: vmImage archclean: $(Q)$(MAKE) $(clean)=$(nios2-boot) |
9fa78f63a nios2: Add order-... |
56 |
%.dtb: | scripts |
2fc8483fd nios2: Build infr... |
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
$(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ dtbs: $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ $(BOOT_TARGETS): vmlinux $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ install: $(Q)$(MAKE) $(build)=$(nios2-boot) BOOTIMAGE=$(KBUILD_IMAGE) install define archhelp echo '* vmImage - Kernel-only image for U-Boot ($(KBUILD_IMAGE))' echo ' install - Install kernel using' echo ' (your) ~/bin/$(INSTALLKERNEL) or' echo ' (distribution) /sbin/$(INSTALLKERNEL) or' echo ' install to $$(INSTALL_PATH)' echo ' dtbs - Build device tree blobs for enabled boards' endef |