Re: [PATCH] allow CROSS_COMPILE override

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jun Sun wrote:

Is this allowed? Can't find any such usage in kernel other
than the worrisome comment below:

arch/arm/Makefile:# Grr, ?= doesn't work as all the other assignment operators do. Make bug?



The arm code does this:

# Only set INCDIR if its not already defined above
# Grr, ?= doesn't work as all the other assignment operators do.  Make bug?
ifeq ($(origin INCDIR), undefined)
INCDIR          := $(MACHINE)
endif

where the make docs say:

INCDIR ?= $(MACHINE)

is the same as

ifeq ($(origin INCDIR), undefined)
INCDIR          = $(MACHINE)
endif

which means INCDIR will reflect changes to MACHINE.
The := form sets INCDIR once and for all. What do you want?
I can't see that this should be a problem in the arm makefile.
Perhaps I'm missing something.

/Brian



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux