Makefile (446279168e030fd0ed68e2bba336bef8bb3da352) | Makefile (e30d448754284d6c7580b8f330e257e9801bec76) |
---|---|
1# 2# This file is subject to the terms and conditions of the GNU General Public 3# License. See the file "COPYING" in the main directory of this archive 4# for more details. 5# 6# Copyright (C) 2013 Altera Corporation 7# Copyright (C) 1994, 95, 96, 2003 by Wind River Systems 8# Written by Fredrik Markstrom --- 25 unchanged lines hidden (view full) --- 34 35KBUILD_CFLAGS += -fno-optimize-sibling-calls 36KBUILD_CFLAGS += -DUTS_SYSNAME=\"$(UTS_SYSNAME)\" 37KBUILD_CFLAGS += -fno-builtin 38KBUILD_CFLAGS += -G 0 39 40head-y := arch/nios2/kernel/head.o 41libs-y += arch/nios2/lib/ $(LIBGCC) | 1# 2# This file is subject to the terms and conditions of the GNU General Public 3# License. See the file "COPYING" in the main directory of this archive 4# for more details. 5# 6# Copyright (C) 2013 Altera Corporation 7# Copyright (C) 1994, 95, 96, 2003 by Wind River Systems 8# Written by Fredrik Markstrom --- 25 unchanged lines hidden (view full) --- 34 35KBUILD_CFLAGS += -fno-optimize-sibling-calls 36KBUILD_CFLAGS += -DUTS_SYSNAME=\"$(UTS_SYSNAME)\" 37KBUILD_CFLAGS += -fno-builtin 38KBUILD_CFLAGS += -G 0 39 40head-y := arch/nios2/kernel/head.o 41libs-y += arch/nios2/lib/ $(LIBGCC) |
42core-y += arch/nios2/kernel/ arch/nios2/mm/ 43core-y += arch/nios2/platform/ | |
44 45INSTALL_PATH ?= /tftpboot 46nios2-boot := arch/$(ARCH)/boot 47BOOT_TARGETS = vmImage zImage 48PHONY += $(BOOT_TARGETS) install 49KBUILD_IMAGE := $(nios2-boot)/vmImage 50 | 42 43INSTALL_PATH ?= /tftpboot 44nios2-boot := arch/$(ARCH)/boot 45BOOT_TARGETS = vmImage zImage 46PHONY += $(BOOT_TARGETS) install 47KBUILD_IMAGE := $(nios2-boot)/vmImage 48 |
51core-y += $(nios2-boot)/dts/ 52 | |
53all: vmImage 54 55$(BOOT_TARGETS): vmlinux 56 $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ 57 58install: 59 $(call cmd,install) 60 61define archhelp 62 echo '* vmImage - Kernel-only image for U-Boot ($(KBUILD_IMAGE))' 63 echo ' install - Install kernel using' 64 echo ' (your) ~/bin/$(INSTALLKERNEL) or' 65 echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 66 echo ' install to $$(INSTALL_PATH)' 67endef | 49all: vmImage 50 51$(BOOT_TARGETS): vmlinux 52 $(Q)$(MAKE) $(build)=$(nios2-boot) $(nios2-boot)/$@ 53 54install: 55 $(call cmd,install) 56 57define archhelp 58 echo '* vmImage - Kernel-only image for U-Boot ($(KBUILD_IMAGE))' 59 echo ' install - Install kernel using' 60 echo ' (your) ~/bin/$(INSTALLKERNEL) or' 61 echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 62 echo ' install to $$(INSTALL_PATH)' 63endef |