Makefile (597473720f4dc69749542bfcfed4a927a43d935e) Makefile (05cdf457477d6603b207d91873f0a3d4c7f8c1cd)
1# SPDX-License-Identifier: GPL-2.0
2KBUILD_DEFCONFIG := mmu_defconfig
3
1# SPDX-License-Identifier: GPL-2.0
2KBUILD_DEFCONFIG := mmu_defconfig
3
4ifeq ($(CONFIG_MMU),y)
5UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\"
4UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\"
6else
7UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\"
8endif
9
10# What CPU vesion are we building for, and crack it open
11# as major.minor.rev
12CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER))
13CPU_MAJOR := $(shell echo $(CPU_VER) | cut -d '.' -f 1)
14CPU_MINOR := $(shell echo $(CPU_VER) | cut -d '.' -f 2)
15CPU_REV := $(shell echo $(CPU_VER) | cut -d '.' -f 3)
16

--- 45 unchanged lines hidden (view full) ---

62
63boot := arch/microblaze/boot
64
65# Are we making a simpleImage.<boardname> target? If so, crack out the boardname
66DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS)))
67
68core-y += $(boot)/dts/
69
5
6# What CPU vesion are we building for, and crack it open
7# as major.minor.rev
8CPU_VER := $(shell echo $(CONFIG_XILINX_MICROBLAZE0_HW_VER))
9CPU_MAJOR := $(shell echo $(CPU_VER) | cut -d '.' -f 1)
10CPU_MINOR := $(shell echo $(CPU_VER) | cut -d '.' -f 2)
11CPU_REV := $(shell echo $(CPU_VER) | cut -d '.' -f 3)
12

--- 45 unchanged lines hidden (view full) ---

58
59boot := arch/microblaze/boot
60
61# Are we making a simpleImage.<boardname> target? If so, crack out the boardname
62DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS)))
63
64core-y += $(boot)/dts/
65
70# defines filename extension depending memory management type
71ifeq ($(CONFIG_MMU),)
72MMU := -nommu
73endif
66export DTB
74
67
75export MMU DTB
76
77all: linux.bin
78
79archclean:
80 $(Q)$(MAKE) $(clean)=$(boot)
81
82archheaders:
83 $(Q)$(MAKE) $(build)=arch/microblaze/kernel/syscalls all
84

--- 29 unchanged lines hidden ---
68all: linux.bin
69
70archclean:
71 $(Q)$(MAKE) $(clean)=$(boot)
72
73archheaders:
74 $(Q)$(MAKE) $(build)=arch/microblaze/kernel/syscalls all
75

--- 29 unchanged lines hidden ---