diff options
Diffstat (limited to 'meta-xilinx-standalone/conf/distro/xilinx-standalone.inc')
-rw-r--r-- | meta-xilinx-standalone/conf/distro/xilinx-standalone.inc | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc index 5c8ae67a..814cb9cd 100644 --- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc +++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc @@ -2,25 +2,17 @@ DISTRO_NAME = "Xilinx Standalone Distro" DISTRO_VERSION = "1.0" TARGET_VENDOR = "-xilinx" -# Make sure any users get the xilinx-standalone distro override -DISTROOVERRIDES_prepend = "${@'xilinx-standalone:' if d.getVar('DISTRO') != "xilinx-standalone" else ''}" - TCLIBC = "newlib" TCLIBCAPPEND ="" # Change SDK name SDK_VERSION = "xilinx-standalone" -require conf/distro/include/yocto-uninative.inc -INHERIT += "uninative" - # Hold this until it gets merged in core, we need libc.a and libgloss.a for cross-canadian -LIBC_DEPENDENCIES_append = " newlib-staticdev libgloss-staticdev" +LIBC_DEPENDENCIES:append:xilinx-standalone = " newlib-staticdev libgloss-staticdev" ESW_CFLAGS ?= "" -INHERIT += "buildhistory" - # Cortex R5 requires an additional cflag to be passed for compatibility with the embeddedsw TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" @@ -28,20 +20,30 @@ TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '' # Avoid using this for native, nativesdk or cross recipes COMPATOS = "" # Set the regex for target recipes only, follow TARGET_OS default -COMPATOS_class-target = ".*-linux${LIBCEXTENSION}${ABIEXTENSION}" +COMPATOS:class-target = ".*-linux${LIBCEXTENSION}${ABIEXTENSION}" COMPATIBLE_HOST ?= "${COMPATOS}" # Clear defaults -DISTRO_FEATURES_BACKFILL_xilinx-standalone = "" -VIRTUAL-RUNTIME_init_manager_xilinx-standalone = "" - PREFERRED_PROVIDER_virtual/kernel = "linux-dummy" -# Hold this until it gets merged in core, we need libc.a and libgloss.a for cross-canadian -LIBC_DEPENDENCIES_append = " newlib-staticdev libgloss-staticdev" - -# No cached configsite files -TOOLCHAIN_NEED_CONFIGSITE_CACHE = "" +PREFERRED_VERSION_libmetal-xlnx = "${@'standalone' if 'xilinx-standalone-exp' in d.getVar('BBFILE_COLLECTIONS').split() else ''}" +PREFERRED_VERSION_open-amp-xlnx = "${@'standalone' if 'xilinx-standalone-exp' in d.getVar('BBFILE_COLLECTIONS').split() else ''}" # Workaround for pulling in nativesdk-mingw-w64-winpthreads -TOOLCHAIN_HOST_TASK_append_sdkmingw32 = " nativesdk-mingw-w64-winpthreads" +TOOLCHAIN_HOST_TASK:append:sdkmingw32 = " nativesdk-mingw-w64-winpthreads" + +# Disable static for all classes, except for target. This will ensure we can +# share more recipe hashes with other distros, while still building +# static binaries for baremetal targets (by default). The user can of course +# still override this, but will need to specifically select class-target to +# do so. +DISABLE_STATIC:class-target ?= "" + +require conf/distro/include/no-static-libs.inc +require conf/distro/include/yocto-uninative.inc +INHERIT += "uninative" + +BB_SIGNATURE_HANDLER ?= "OEEquivHash" +BB_HASHSERVE ??= "auto" + +MACHINE_FEATURES_BACKFILL_CONSIDERED += "rtc qemu-usermode" |