]> git.baikalelectronics.ru Git - arm-tf.git/commit
build(makefile): add helper to detect linker options
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 24 Nov 2022 10:02:05 +0000 (11:02 +0100)
committerMarco Felsch <m.felsch@pengutronix.de>
Mon, 13 Mar 2023 09:55:50 +0000 (10:55 +0100)
commita5f09cf7052ab6abb171400d377eecb1efac1a9b
treea93aeedb4134abf05776745ca200c35235b2e4b7
parent404e835c33f676fefa8857c01365318b514cd1fd
build(makefile): add helper to detect linker options

This is a small helper to check for possible linker options. If the
linker supports the requested option it is returned and if not nothing
will be returned, e.g.:

  TF_LDFLAGS += $(call ld_option, --no-warn-rwx-segments)

can be called unconditional.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Change-Id: I236800852ece49948ff53a0b91fddba53c8f0f95
make_helpers/build_macros.mk