summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2023-01-14 09:25:41 -0800
committerMark Hatle <mark.hatle@amd.com>2023-01-16 07:26:08 -0800
commit8fe1ee1873ac97dd9fb721c4066c473c43de6fc6 (patch)
tree811d9799a423e78556864ff32b8b0501fcdc0c1e
parentbaab463a7930d1e52d1c3ee3d106e2c7c9c323aa (diff)
downloadmeta-xilinx-8fe1ee1873ac97dd9fb721c4066c473c43de6fc6.tar.gz
xilinx-standalone.inc: Sync with poky distro settings
Certain settings appear to have an overall affect on recipe hashes. Use petalinux (poky) distro as an example for base settings to ensure native items built in one config SHOULD also be re-usable in the bareemetal config. This has a side effect of NOT disabling static binaries in baremetal, but this seems like a reasonable default, since there really isn't a concept of dynamically loaded libraries. If necessary, the user can still override this, but will need to specifically select class-target to do so. Similarly SECURITY_CFLAGS and SECURITY_LDFLAGS are available by empty by default. The default cflags/ldflags for baremetal usage are likely different from a Linux system, so can be used in the future if requried. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-standalone/conf/distro/xilinx-standalone.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
index 57fbf956..ec490d26 100644
--- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
+++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
@@ -45,3 +45,21 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE = ""
45 45
46# Workaround for pulling in nativesdk-mingw-w64-winpthreads 46# Workaround for pulling in nativesdk-mingw-w64-winpthreads
47TOOLCHAIN_HOST_TASK:append:sdkmingw32 = " nativesdk-mingw-w64-winpthreads" 47TOOLCHAIN_HOST_TASK:append:sdkmingw32 = " nativesdk-mingw-w64-winpthreads"
48
49# Disable static for all classes, except for target. This will ensure we can
50# share more recipe hashes with other distros, while still building
51# static binaries for baremetal targets (by default). The user can of course
52# still override this, but will need to specifically select class-target to
53# do so.
54DISABLE_STATIC:class-target ?= ""
55
56SECURITY_CFLAGS:class-target ?= ""
57SECURITY_LDFLAGS:class-target ?= ""
58
59require conf/distro/include/no-static-libs.inc
60require conf/distro/include/yocto-uninative.inc
61require conf/distro/include/security_flags.inc
62INHERIT += "uninative"
63
64BB_SIGNATURE_HANDLER ?= "OEEquivHash"
65BB_HASHSERVE ??= "auto"