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