Re: Which behavior is expected of $(shell )

2022-11-21 Thread Changqing Li
Add more info: For make 4.3: $make KBUILD_OUTPUT=test KBUILD_OUTPUT in shell is KBUILD_OUTPUT is test For make 4.4: $make KBUILD_OUTPUT=test KBUILD_OUTPUT in shell is test KBUILD_OUTPUT is test On 11/22/22 11:12, Changqing Li wrote: Hi, Here is the Makefile: KBUILD_OUTPUT = defs

Which behavior is expected of $(shell )

2022-11-21 Thread Changqing Li
Hi, Here is the Makefile: KBUILD_OUTPUT = defs := $(shell echo $$KBUILD_OUTPUT) all:     @echo "KBUILD_OUTPUT in shell is $(defs)"     @echo "KBUILD_OUTPUT is $(KBUILD_OUTPUT)" 1.  For make version 4.3 $ KBUILD_OUTPUT=test make KBUILD_OUTPUT in shell is test KBUILD_OUTPUT is 2.  F

Re: Which behavior is expected of $(shell )

2022-11-21 Thread Changqing Li
On 11/22/22 12:08, Paul Smith wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Tue, 2022-11-22 at 11:12 +0800, Changqing Li wrote: Here is what the make manual says