blob: f2bca0aa5bae562ce7505b80d5370bb91bde7c15 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# We have a conf and classes directory, add to BBPATH
2BBPATH .= ":${LAYERDIR}"
3# We have recipes-* directories, add to BBFILES
4BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
5
6BBFILE_COLLECTIONS += "core"
7BBFILE_PATTERN_core = "^${LAYERDIR}/"
8BBFILE_PRIORITY_core = "5"
9
Patrick Williams2f814a62024-04-16 16:28:03 -050010LAYERSERIES_CORENAMES = "scarthgap styhead"
Brad Bishop316dfdd2018-06-25 12:45:53 -040011
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012# This should only be incremented on significant changes that will
13# cause compatibility issues with other layers
Andrew Geissler517393d2023-01-13 08:55:19 -060014LAYERVERSION_core = "15"
Patrick Williams2f814a62024-04-16 16:28:03 -050015LAYERSERIES_COMPAT_core = "styhead"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17BBLAYERS_LAYERINDEX_NAME_core = "openembedded-core"
18
19# Set a variable to get to the top of the metadata location
20COREBASE = '${@os.path.normpath("${LAYERDIR}/../")}'
21
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022# opkg-utils is for update-alternatives :(
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023SIGGEN_EXCLUDERECIPES_ABISAFE += " \
24 sysvinit-inittab \
Brad Bishop00111322018-04-01 22:23:53 -040025 busybox-inittab \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026 shadow-securetty \
27 opkg-arch-config \
28 netbase \
29 init-ifupdown \
30 connman-conf \
31 formfactor \
32 xserver-xf86-config \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033 pointercal-xinput \
34 base-files \
35 keymaps \
36 udev-extraconf \
37 packagegroup-x11-xserver \
38 systemd-serialgetty \
39 initscripts \
40 shadow \
41 shadow-sysroot \
42 base-passwd \
43 opkg-utils \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044 gstreamer1.0-meta-base \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050045 ca-certificates \
Andrew Geissler82c905d2020-04-13 13:39:40 -050046 shared-mime-info \
47 desktop-file-utils \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048"
49
50SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
Andrew Geisslereff27472021-10-29 15:35:00 -050051 *->patch-native \
Brad Bishop316dfdd2018-06-25 12:45:53 -040052 *->quilt-native \
53 *->subversion-native \
54 *->git-native \
Brad Bishop316dfdd2018-06-25 12:45:53 -040055 *->icecc-create-env-native \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056 gcc-cross-${TARGET_ARCH}->linux-libc-headers \
57 ppp-dialin->ppp \
58 resolvconf->bash \
59 docbook-xsl-stylesheets->perl \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060060 ca-certificates->openssl \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050061 initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050062 initramfs-framework->eudev \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050063 initramfs-framework->systemd \
64 initramfs-module-install-efi->dosfstools \
65 initramfs-module-install-efi->e2fsprogs \
66 initramfs-module-install-efi->parted \
67 initramfs-module-install-efi->util-linux \
68 initramfs-module-install->e2fsprogs \
69 initramfs-module-install->grub \
70 initramfs-module-install->parted \
71 initramfs-module-install->util-linux \
Patrick Williamsb542dec2023-06-09 01:26:37 -050072 initramfs-module-setup-live->udev-extraconf \
Brad Bishop316dfdd2018-06-25 12:45:53 -040073 grub-efi->grub-bootconf \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050074 liberation-fonts->fontconfig \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050075 cantarell-fonts->fontconfig \
Andrew Geissler635e0e42020-08-21 15:58:33 -050076 ttf-bitstream-vera->fontconfig \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050077 gnome-icon-theme->librsvg \
78 font-alias->font-util \
Brad Bishop316dfdd2018-06-25 12:45:53 -040079 systemd-boot->systemd-bootconf \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080080 systemd->systemd-conf \
Brad Bishopa34c0302019-09-23 22:34:48 -040081 weston->weston-init \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050082 weston-init->weston \
83 weston-init->kbd \
Brad Bishopc342db32019-05-15 21:57:59 -040084 connman->xl2tpd \
Brad Bishop15ae2502019-06-18 21:44:24 -040085 lttng-tools->lttng-modules \
Andrew Geissler615f2f12022-07-15 14:00:58 -050086 sato-icon-theme->gdk-pixbuf \
87 sato-icon-theme->gtk+3 \
Andrew Geissler635e0e42020-08-21 15:58:33 -050088 adwaita-icon-theme->gdk-pixbuf \
89 adwaita-icon-theme->gtk+3 \
Patrick Williams03514f12024-04-05 07:04:11 -050090 run-postinsts->util-linux \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050091"
92
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080093# Avoid adding bison-native to the sysroot without a specific
94# dependency in the recipe. This means indirect dependencies
95# (e.g. X -> Y -> binutils-cross -> bison-native) no longer meet the
96# dependency incidentally. This improves determinism and avoids build
97# failures when people switch to external toolchains.
Andrew Geissler9aee5002022-03-30 16:27:02 +000098# libarchive only needs e2fsprogs headers at buildtime
Andrew Geisslereff27472021-10-29 15:35:00 -050099SSTATE_EXCLUDEDEPS_SYSROOT += "\
100 .*->autoconf-native \
101 .*->automake-native \
102 .*->bison-native \
103 .*->meson-native \
104 .*->ninja-native \
105 .*->patch-native \
106 .*->pkgconfig-native \
107 .*->quilt-native \
Andrew Geissler9aee5002022-03-30 16:27:02 +0000108 ^(?!gtk-doc-native).*->xmlto-native \
109 .*->gperf-native \
Andrew Geisslerd5838332022-05-27 11:33:10 -0500110 .*->help2man-native \
Andrew Geissler9aee5002022-03-30 16:27:02 +0000111 .*->gtk-doc-native \
112 .*->texinfo-native \
113 .*->perlcross-native \
114 libarchive-native->e2fsprogs-native \
Andrew Geisslereff27472021-10-29 15:35:00 -0500115"
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500116# Nothing needs to depend on libc-initial
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800117# base-passwd/shadow-sysroot don't need their dependencies
118SSTATE_EXCLUDEDEPS_SYSROOT += "\
119 .*->.*-initial.* \
120 .*(base-passwd|shadow-sysroot)->.* \
121"
122# Avoid adding autoconf-archive-native to sysroot without a specific
123# dependency in the recipe.
124SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native"
125
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500126# We need to keep bitbake tools in PATH
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500127# Avoid empty path entries
128BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}"
Andrew Geissler6ce62a22020-11-30 19:58:47 -0600129PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}"
Andrew Geissler517393d2023-01-13 08:55:19 -0600130
131# Only OE-Core should set/change this
132BB_GLOBAL_PYMODULES = "os sys time"
133
134addpylib ${LAYERDIR}/lib oe