2005-04-16 16:20:36 -06:00
|
|
|
#
|
|
|
|
# ia64/Makefile
|
|
|
|
#
|
2006-03-05 15:14:10 -07:00
|
|
|
# This file is included by the global makefile so that you can add your own
|
|
|
|
# architecture-specific flags and dependencies.
|
|
|
|
#
|
2005-04-16 16:20:36 -06:00
|
|
|
# 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) 1998-2004 by David Mosberger-Tang <davidm@hpl.hp.com>
|
|
|
|
#
|
|
|
|
|
2008-02-26 12:54:46 -07:00
|
|
|
KBUILD_DEFCONFIG := generic_defconfig
|
|
|
|
|
2005-04-16 16:20:36 -06:00
|
|
|
NM := $(CROSS_COMPILE)nm -B
|
|
|
|
READELF := $(CROSS_COMPILE)readelf
|
|
|
|
|
2018-05-30 14:48:38 -06:00
|
|
|
CHECKFLAGS += -D__ia64=1 -D__ia64__=1 -D_LP64 -D__LP64__
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
OBJCOPYFLAGS := --strip-all
|
|
|
|
LDFLAGS_vmlinux := -static
|
2019-08-14 10:06:22 -06:00
|
|
|
KBUILD_LDS_MODULE += $(srctree)/arch/ia64/module.lds
|
2010-07-28 11:11:27 -06:00
|
|
|
KBUILD_AFLAGS_KERNEL := -mconstant-gp
|
2005-04-16 16:20:36 -06:00
|
|
|
EXTRA :=
|
|
|
|
|
|
|
|
cflags-y := -pipe $(EXTRA) -ffixed-r13 -mfixed-range=f12-f15,f32-f127 \
|
|
|
|
-falign-functions=32 -frename-registers -fno-optimize-sibling-calls
|
2010-07-28 11:11:27 -06:00
|
|
|
KBUILD_CFLAGS_KERNEL := -mconstant-gp
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
GAS_STATUS = $(shell $(srctree)/arch/ia64/scripts/check-gas "$(CC)" "$(OBJDUMP)")
|
2007-10-15 14:17:25 -06:00
|
|
|
KBUILD_CPPFLAGS += $(shell $(srctree)/arch/ia64/scripts/toolchain-flags "$(CC)" "$(OBJDUMP)" "$(READELF)")
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
ifeq ($(GAS_STATUS),buggy)
|
|
|
|
$(error Sorry, you need a newer version of the assember, one that is built from \
|
|
|
|
a source-tree that post-dates 18-Dec-2002. You can find a pre-compiled \
|
|
|
|
static binary of such an assembler at: \
|
|
|
|
\
|
|
|
|
ftp://ftp.hpl.hp.com/pub/linux-ia64/gas-030124.tar.gz)
|
|
|
|
endif
|
|
|
|
|
2019-08-13 01:25:03 -06:00
|
|
|
quiet_cmd_gzip = GZIP $@
|
kbuild: add variables for compression tools
commit 8dfb61dcbaceb19a5ded5e9c9dcf8d05acc32294 upstream.
Allow user to use alternative implementations of compression tools,
such as pigz, pbzip2, pxz. For example, multi-threaded tools to
speed up the build:
$ make GZIP=pigz BZIP2=pbzip2
Variables _GZIP, _BZIP2, _LZOP are used internally because original env
vars are reserved by the tools. The use of GZIP in gzip tool is obsolete
since 2015. However, alternative implementations (e.g., pigz) still rely
on it. BZIP2, BZIP, LZOP vars are not obsolescent.
The credit goes to @grsecurity.
As a sidenote, for multi-threaded lzma, xz compression one can use:
$ export XZ_OPT="--threads=0"
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-05 01:39:55 -06:00
|
|
|
cmd_gzip = cat $(real-prereqs) | $(_GZIP) -n -f -9 > $@
|
2019-08-13 01:25:03 -06:00
|
|
|
|
|
|
|
quiet_cmd_objcopy = OBJCOPY $@
|
|
|
|
cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
|
|
|
|
|
2007-10-14 14:21:35 -06:00
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
2018-01-02 08:12:01 -07:00
|
|
|
head-y := arch/ia64/kernel/head.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
libs-y += arch/ia64/lib/
|
|
|
|
core-y += arch/ia64/kernel/ arch/ia64/mm/
|
2008-06-14 06:57:25 -06:00
|
|
|
core-$(CONFIG_IA64_SGI_UV) += arch/ia64/uv/
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2019-08-13 01:25:12 -06:00
|
|
|
drivers-y += arch/ia64/pci/ arch/ia64/hp/common/
|
2005-04-16 16:20:36 -06:00
|
|
|
drivers-$(CONFIG_OPROFILE) += arch/ia64/oprofile/
|
|
|
|
|
2019-08-13 01:25:03 -06:00
|
|
|
PHONY += compressed check
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
all: compressed unwcheck
|
|
|
|
|
|
|
|
compressed: vmlinux.gz
|
|
|
|
|
2006-06-06 10:23:34 -06:00
|
|
|
vmlinuz: vmlinux.gz
|
|
|
|
|
2019-08-13 01:25:03 -06:00
|
|
|
vmlinux.gz: vmlinux.bin FORCE
|
|
|
|
$(call if_changed,gzip)
|
|
|
|
|
|
|
|
vmlinux.bin: vmlinux FORCE
|
|
|
|
$(call if_changed,objcopy)
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
unwcheck: vmlinux
|
2014-07-17 22:40:11 -06:00
|
|
|
-$(Q)READELF=$(READELF) $(PYTHON) $(srctree)/arch/ia64/scripts/unwcheck.py $<
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
archclean:
|
|
|
|
|
2018-11-12 23:57:45 -07:00
|
|
|
archheaders:
|
|
|
|
$(Q)$(MAKE) $(build)=arch/ia64/kernel/syscalls all
|
|
|
|
|
2019-08-13 01:25:03 -06:00
|
|
|
CLEAN_FILES += vmlinux.gz
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
install: vmlinux.gz
|
|
|
|
sh $(srctree)/arch/ia64/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
|
|
|
|
|
|
|
|
define archhelp
|
|
|
|
echo '* compressed - Build compressed kernel image'
|
|
|
|
echo ' install - Install compressed kernel image'
|
|
|
|
echo '* unwcheck - Check vmlinux for invalid unwind info'
|
|
|
|
endef
|
2008-05-19 07:13:40 -06:00
|
|
|
|
2016-03-12 17:13:55 -07:00
|
|
|
archprepare: make_nr_irqs_h
|
2016-04-07 20:16:10 -06:00
|
|
|
PHONY += make_nr_irqs_h
|
2008-05-19 07:13:40 -06:00
|
|
|
|
2016-03-12 17:13:55 -07:00
|
|
|
make_nr_irqs_h:
|
2009-04-20 11:35:54 -06:00
|
|
|
$(Q)$(MAKE) $(build)=arch/ia64/kernel include/generated/nr-irqs.h
|