hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/scripts/Kconfig.include
....@@ -42,6 +42,12 @@
4242 # Fail if the linker is gold as it's not capable of linking the kernel proper
4343 $(error-if,$(success, $(LD) -v | grep -q gold), gold linker '$(LD)' not supported)
4444
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
+
4551 # machine bit flags
4652 # $(m32-flag): -m32 if the compiler supports it, or an empty string otherwise.
4753 # $(m64-flag): -m64 if the compiler supports it, or an empty string otherwise.