1#
2# Tune Settings for Neoverse-N2
3#
4DEFAULTTUNE ?= "neoversen2"
5
6TUNEVALID[neoversen2] = "Enable Neoverse-N2 specific processor optimizations"
7TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'neoversen2', ' -mcpu=neoverse-n2', '', d)}"
8
9require conf/machine/include/arm/arch-armv9a.inc
10
11# Little Endian base configs
12AVAILTUNES                                         += "neoversen2 neoversen2-crypto"
13ARMPKGARCH:tune-neoversen2                          = "neoversen2"
14ARMPKGARCH:tune-neoversen2-crypto                   = "neoversen2-crypto"
15# We do not want -march since -mcpu is added above to cover for it
16TUNE_FEATURES:tune-neoversen2                       = "aarch64 neoversen2"
17TUNE_FEATURES:tune-neoversen2-crypto                = "${TUNE_FEATURES:tune-neoversen2} crypto"
18PACKAGE_EXTRA_ARCHS:tune-neoversen2                 = "${PACKAGE_EXTRA_ARCHS:tune-armv9a} neoversen2"
19PACKAGE_EXTRA_ARCHS:tune-neoversen2-crypto          = "${PACKAGE_EXTRA_ARCHS:tune-armv9a-crypto} neoversen2 neoversen2-crypto"
20BASE_LIB:tune-neoversen2                            = "lib64"
21BASE_LIB:tune-neoversen2-crypto                     = "lib64"
22