diff options
| author | Olof Johansson <olof@lixom.net> | 2018-07-13 11:30:33 -0400 |
|---|---|---|
| committer | Will Deacon <will.deacon@arm.com> | 2018-07-23 10:30:19 -0400 |
| commit | c931d34ea0853d41349e93f871bd3f17f1c03a6b (patch) | |
| tree | a3a9b906f7663a5860d07c9fd9c720de01aa9b3a /scripts/Kbuild.include | |
| parent | 14d6e289a89780377f8bb09de8926d3c62d763cd (diff) | |
arm64: build with baremetal linker target instead of Linux when available
Not all toolchains have the baremetal elf targets, RedHat/Fedora ones
in particular. So, probe for whether it's available and use the previous
(linux) targets if it isn't.
Reported-by: Laura Abbott <labbott@redhat.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'scripts/Kbuild.include')
| -rw-r--r-- | scripts/Kbuild.include | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index c8156d61678c..1e13f502b42f 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -163,8 +163,8 @@ cc-ldoption = $(call try-run,\ | |||
| 163 | $(CC) $(1) $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2)) | 163 | $(CC) $(1) $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -nostdlib -x c /dev/null -o "$$TMP",$(1),$(2)) |
| 164 | 164 | ||
| 165 | # ld-option | 165 | # ld-option |
| 166 | # Usage: LDFLAGS += $(call ld-option, -X) | 166 | # Usage: LDFLAGS += $(call ld-option, -X, -Y) |
| 167 | ld-option = $(call try-run, $(LD) $(LDFLAGS) $(1) -v,$(1),$(2)) | 167 | ld-option = $(call try-run, $(LD) $(LDFLAGS) $(1) -v,$(1),$(2),$(3)) |
| 168 | 168 | ||
| 169 | # ar-option | 169 | # ar-option |
| 170 | # Usage: KBUILD_ARFLAGS := $(call ar-option,D) | 170 | # Usage: KBUILD_ARFLAGS := $(call ar-option,D) |
