Makefile (651a88798412e216f337d70181127e847f00a4b7) | Makefile (b51277eb9775ce916f9efd2c51533e481180c1e8) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2include ../scripts/Makefile.include 3include ../scripts/Makefile.arch 4 5# always use the host compiler 6AR = $(HOSTAR) 7CC = $(HOSTCC) 8LD = $(HOSTLD) --- 25 unchanged lines hidden (view full) --- 34LDFLAGS += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS) 35 36# Allow old libelf to be used: 37elfshdr := $(shell echo '$(pound)include <libelf.h>' | $(CC) $(CFLAGS) -x c -E - | grep elf_getshdr) 38CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED) 39 40AWK = awk 41 | 1# SPDX-License-Identifier: GPL-2.0 2include ../scripts/Makefile.include 3include ../scripts/Makefile.arch 4 5# always use the host compiler 6AR = $(HOSTAR) 7CC = $(HOSTCC) 8LD = $(HOSTLD) --- 25 unchanged lines hidden (view full) --- 34LDFLAGS += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS) 35 36# Allow old libelf to be used: 37elfshdr := $(shell echo '$(pound)include <libelf.h>' | $(CC) $(CFLAGS) -x c -E - | grep elf_getshdr) 38CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED) 39 40AWK = awk 41 |
42SUBCMD_CHECK := n 43SUBCMD_ORC := n | 42BUILD_ORC := n |
44 45ifeq ($(SRCARCH),x86) | 43 44ifeq ($(SRCARCH),x86) |
46 SUBCMD_CHECK := y 47 SUBCMD_ORC := y | 45 BUILD_ORC := y |
48endif 49 | 46endif 47 |
50export SUBCMD_CHECK SUBCMD_ORC | 48export BUILD_ORC |
51export srctree OUTPUT CFLAGS SRCARCH AWK 52include $(srctree)/tools/build/Makefile.include 53 54$(OBJTOOL_IN): fixdep FORCE 55 @$(CONFIG_SHELL) ./sync-check.sh 56 @$(MAKE) $(build)=objtool 57 58$(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) --- 14 unchanged lines hidden --- | 49export srctree OUTPUT CFLAGS SRCARCH AWK 50include $(srctree)/tools/build/Makefile.include 51 52$(OBJTOOL_IN): fixdep FORCE 53 @$(CONFIG_SHELL) ./sync-check.sh 54 @$(MAKE) $(build)=objtool 55 56$(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN) --- 14 unchanged lines hidden --- |