diff options
author | Dmitry Safonov <dsafonov@virtuozzo.com> | 2016-04-29 22:47:00 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2017-03-14 21:03:22 +0300 |
commit | 392469b697501e51916891ed4c7ad26a50dc801a (patch) | |
tree | 767c716eb80bf476fa0326fa9c3b269b26f32a9b /compel/Makefile | |
parent | 427f68f0a3033d608e44cadb6e21799ce456293c (diff) |
compel: add per-arch handle-elf.c
Split handle_elf() function from main.c to per-arch.
Rename it to handle_binary not to cross-reference.
Rename generic handle_elf to __handle_elf as with define
not to litter namespace.
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'compel/Makefile')
-rw-r--r-- | compel/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compel/Makefile b/compel/Makefile index d08e470df..f8da14489 100644 --- a/compel/Makefile +++ b/compel/Makefile @@ -12,13 +12,14 @@ HOSTLDFLAGS += $(filter-out -pg $(CFLAGS-GCOV),$(LDFLAGS)) hostprogs-y += compel compel-objs += main.o compel-objs += handle-elf.o +compel-objs += arch/$(ARCH)/handle-elf.o # Add $(DEFINES) to CFLAGS of compel-objs. # We can't do ccflags-y += $(DEFINES) # as we need to build handle-elf-32.o # with -DCONFIG_X86_32 define ccflags-defines - HOSTCFLAGS_$(1) += $(DEFINES) + HOSTCFLAGS_$(notdir $(1)) += $(DEFINES) endef $(eval $(call map,ccflags-defines,$(compel-objs))) |