| |
| CC$(sm) := $(CROSS_COMPILE_$(sm))gcc |
| CPP$(sm) := $(CROSS_COMPILE_$(sm))cpp |
| LD$(sm) := $(CROSS_COMPILE_$(sm))ld.bfd |
| AR$(sm) := $(CROSS_COMPILE_$(sm))ar |
| NM$(sm) := $(CROSS_COMPILE_$(sm))nm |
| OBJCOPY$(sm) := $(CROSS_COMPILE_$(sm))objcopy |
| OBJDUMP$(sm) := $(CROSS_COMPILE_$(sm))objdump |
| READELF$(sm) := $(CROSS_COMPILE_$(sm))readelf |
| |
| nostdinc$(sm) := -nostdinc -isystem $(shell $(CC$(sm)) \ |
| -print-file-name=include 2> /dev/null) |
| |
| # Get location of libgcc from gcc |
| libgcc$(sm) := $(shell $(CC$(sm)) $(CFLAGS$(arch-bits-$(sm))) $(comp-cflags$(sm)) \ |
| -print-libgcc-file-name 2> /dev/null) |
| |
| # Define these to something to discover accidental use |
| CC := false |
| CPP := false |
| LD := false |
| AR := false |
| NM := false |
| OBJCOPY := false |
| OBJDUMP := false |
| READELF := false |
| nostdinc := --bad-nostdinc-variable |
| libgcc := --bad-libgcc-variable |
| |
| |