diff options
author | Mark Hatle <mark.hatle@amd.com> | 2023-01-14 09:25:41 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-01-16 07:26:08 -0800 |
commit | 8fe1ee1873ac97dd9fb721c4066c473c43de6fc6 (patch) | |
tree | 811d9799a423e78556864ff32b8b0501fcdc0c1e | |
parent | baab463a7930d1e52d1c3ee3d106e2c7c9c323aa (diff) | |
download | meta-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.inc | 18 |
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 |
47 | TOOLCHAIN_HOST_TASK:append:sdkmingw32 = " nativesdk-mingw-w64-winpthreads" | 47 | TOOLCHAIN_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. | ||
54 | DISABLE_STATIC:class-target ?= "" | ||
55 | |||
56 | SECURITY_CFLAGS:class-target ?= "" | ||
57 | SECURITY_LDFLAGS:class-target ?= "" | ||
58 | |||
59 | require conf/distro/include/no-static-libs.inc | ||
60 | require conf/distro/include/yocto-uninative.inc | ||
61 | require conf/distro/include/security_flags.inc | ||
62 | INHERIT += "uninative" | ||
63 | |||
64 | BB_SIGNATURE_HANDLER ?= "OEEquivHash" | ||
65 | BB_HASHSERVE ??= "auto" | ||