.. | .. |
---|
42 | 42 | # Fail if the linker is gold as it's not capable of linking the kernel proper |
---|
43 | 43 | $(error-if,$(success, $(LD) -v | grep -q gold), gold linker '$(LD)' not supported) |
---|
44 | 44 | |
---|
| 45 | +# Get the assembler name, version, and error out if it is not supported. |
---|
| 46 | +as-info := $(shell,$(srctree)/scripts/as-version.sh $(CC) $(CLANG_FLAGS)) |
---|
| 47 | +$(error-if,$(success,test -z "$(as-info)"),Sorry$(comma) this assembler is not supported.) |
---|
| 48 | +as-name := $(shell,set -- $(as-info) && echo $1) |
---|
| 49 | +as-version := $(shell,set -- $(as-info) && echo $2) |
---|
| 50 | + |
---|
45 | 51 | # machine bit flags |
---|
46 | 52 | # $(m32-flag): -m32 if the compiler supports it, or an empty string otherwise. |
---|
47 | 53 | # $(m64-flag): -m64 if the compiler supports it, or an empty string otherwise. |
---|