Hi Richard, > On 30 Oct 2023, at 14:48, Richard Cochran <richardcoch...@gmail.com> wrote: > > On Mon, Oct 30, 2023 at 10:44:13AM +0000, Luca Fancellu wrote: > >> This is what I’ve tried: >> >> Makefile: >> ------------------------------------------------------------ >> CC ?= $(CROSS_COMPILE)gcc > > and if you add: > > export CC > > does it work?
No it seems not: $ export CC=environment $ make all ************ TEST VERSION ************ from the script: environment CC: environment make: Nothing to be done for 'all’. $ make CC=cmdline all ************ TEST VERSION ************ from the script: environment CC: cmdline make: Nothing to be done for 'all'. This is the tested Makefile: CC ?= $(CROSS_COMPILE)gcc export CC srcdir := $(dir $(lastword $(MAKEFILE_LIST))) incdefs := $(shell $(srcdir)/script.sh) all: $(info ************ TEST VERSION ************) $(info $(incdefs)) $(info CC: $(CC)) .PHONY: all Cheers, Luca IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel