Files
poky/meta/recipes-support/vim/vim_8.2.bb
Nathan Rossi 803fb7e487 vim: add nativesdk to BBCLASSEXTEND
Enable nativesdk build support in order to be able to include vim in
nativesdk targets (e.g. buildtools-tarball/sdk). It is useful to be able
to provide an editor in a relocatable form for when hosts do not provide
an editor. Additionally the vim recipe provides the xxd tool.

(From OE-Core rev: 72399c0c2eca21d2c27c3ba668d456375453b809)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-11-08 14:03:20 +00:00

16 lines
482 B
BlitzBasic

require vim.inc
PROVIDES = "xxd"
PACKAGECONFIG_class-native = ""
BBCLASSEXTEND = "native nativesdk"
ALTERNATIVE_${PN}_append = " xxd"
ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
# We override the default in security_flags.inc because vim (not vim-tiny!) will abort
# in many places for _FORTIFY_SOURCE=2. Security flags become part of CC.
#
lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=1',d)}"