eal: allow to override init macros per OS
authorJerin Jacob <jerinj@marvell.com>
Wed, 3 Apr 2019 19:28:40 +0000 (19:28 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Apr 2019 21:52:00 +0000 (23:52 +0200)
commit4b3997680ab61636df489299d7980102e00bcf0a
tree6faba405b14f5b4b1725a17e7caa36f66aad5322
parent640c5f09ef2cb23d300748e220ea5d8fffdbfdd0
eal: allow to override init macros per OS

baremetal execution environments may have a different
method to enable RTE_INIT instead of using compiler
constructor and/or OS specific linker scheme.
Allow an option to override RTE_INIT* macros using
rte_os.h or appropriate header file.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_eal/common/include/rte_common.h