[CRIU] [PATCH 02/11] make: Export @ARCH and @SRCARCH
Pavel Emelyanov
xemul at parallels.com
Fri Apr 24 04:54:52 PDT 2015
On 04/23/2015 12:58 AM, Cyrill Gorcunov wrote:
> On Wed, Apr 22, 2015 at 05:40:36PM -0400, Christopher Covington wrote:
>> On 04/22/2015 01:19 PM, Cyrill Gorcunov wrote:
>>> We will need them for x86-32.
>>>
>>> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
>>> ---
>>> Makefile | 2 ++
>>> 1 file changed, 2 insertions(+)
>>>
>>> diff --git a/Makefile b/Makefile
>>> index 29f1d5b683fb..6e6efb290823 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -84,6 +84,8 @@ LDARCH ?= $(SRCARCH)
>>> SRC_DIR ?= $(CURDIR)
>>> ARCH_DIR := arch/$(SRCARCH)
>>>
>>> +export ARCH SRCARCH
>>> +
>>> $(if $(wildcard $(ARCH_DIR)),,$(error "The architecture $(ARCH) isn't supported"))
>>>
>>> cflags-y += -iquote include -iquote pie -iquote .
>>>
>>
>> Why do you need to export ARCH? Is SRCARCH not unique enough?
>
> SRCARCH is used to reference source code in arch/, while ARCH represent
> architecture, which I filter out then in makefiles.
> .
>
Applied (but a comment into Makefile is welcome).
More information about the CRIU
mailing list