Makefile (597473720f4dc69749542bfcfed4a927a43d935e) Makefile (472ab9ee15c6a28adbac65a543af58461b49a947)
1# BK Id: %F% %I% %G% %U% %#%
2#
3# This file is included by the global makefile so that you can add your own
4# architecture-specific flags and dependencies. Remember to do have actions
5# for "archclean" and "archdep" for cleaning up and making dependencies for
6# this architecture
7#
8# This file is subject to the terms and conditions of the GNU General Public

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

19
20KBUILD_DEFCONFIG := or1ksim_defconfig
21
22OBJCOPYFLAGS := -O binary -R .note -R .comment -S
23LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
24
25KBUILD_CFLAGS += -pipe -ffixed-r10 -D__linux__
26
1# BK Id: %F% %I% %G% %U% %#%
2#
3# This file is included by the global makefile so that you can add your own
4# architecture-specific flags and dependencies. Remember to do have actions
5# for "archclean" and "archdep" for cleaning up and making dependencies for
6# this architecture
7#
8# This file is subject to the terms and conditions of the GNU General Public

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

19
20KBUILD_DEFCONFIG := or1ksim_defconfig
21
22OBJCOPYFLAGS := -O binary -R .note -R .comment -S
23LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
24
25KBUILD_CFLAGS += -pipe -ffixed-r10 -D__linux__
26
27all: vmlinux.bin
28
29boot := arch/$(ARCH)/boot
30
27ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y)
28 KBUILD_CFLAGS += $(call cc-option,-mhard-mul)
29else
30 KBUILD_CFLAGS += $(call cc-option,-msoft-mul)
31endif
32
33ifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y)
34 KBUILD_CFLAGS += $(call cc-option,-mhard-div)

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

44libs-y += $(LIBGCC)
45
46ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
47BUILTIN_DTB := y
48else
49BUILTIN_DTB := n
50endif
51core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
31ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y)
32 KBUILD_CFLAGS += $(call cc-option,-mhard-mul)
33else
34 KBUILD_CFLAGS += $(call cc-option,-msoft-mul)
35endif
36
37ifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y)
38 KBUILD_CFLAGS += $(call cc-option,-mhard-div)

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

48libs-y += $(LIBGCC)
49
50ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
51BUILTIN_DTB := y
52else
53BUILTIN_DTB := n
54endif
55core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
56
57PHONY += vmlinux.bin
58
59vmlinux.bin: vmlinux
60 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
61
62archclean:
63 $(Q)$(MAKE) $(clean)=$(boot)