xref: /openbmc/openbmc/poky/meta/conf/layer.conf (revision 73bd93f1)
1# 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
10LAYERSERIES_CORENAMES = "nanbield scarthgap"
11
12# This should only be incremented on significant changes that will
13# cause compatibility issues with other layers
14LAYERVERSION_core = "15"
15LAYERSERIES_COMPAT_core = "scarthgap"
16
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
22# opkg-utils is for update-alternatives :(
23SIGGEN_EXCLUDERECIPES_ABISAFE += " \
24  sysvinit-inittab \
25  busybox-inittab \
26  shadow-securetty \
27  opkg-arch-config \
28  netbase \
29  init-ifupdown \
30  connman-conf \
31  formfactor \
32  xserver-xf86-config \
33  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 \
44  gstreamer1.0-meta-base \
45  ca-certificates \
46  shared-mime-info \
47  desktop-file-utils \
48"
49
50SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
51  *->patch-native \
52  *->quilt-native \
53  *->subversion-native \
54  *->git-native \
55  *->icecc-create-env-native \
56  gcc-cross-${TARGET_ARCH}->linux-libc-headers \
57  ppp-dialin->ppp \
58  resolvconf->bash \
59  docbook-xsl-stylesheets->perl \
60  ca-certificates->openssl \
61  initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
62  initramfs-framework->eudev \
63  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 \
72  initramfs-module-setup-live->udev-extraconf \
73  grub-efi->grub-bootconf \
74  liberation-fonts->fontconfig \
75  cantarell-fonts->fontconfig \
76  ttf-bitstream-vera->fontconfig \
77  gnome-icon-theme->librsvg \
78  font-alias->font-util \
79  systemd-boot->systemd-bootconf \
80  systemd->systemd-conf \
81  weston->weston-init \
82  weston-init->weston \
83  weston-init->kbd \
84  connman->xl2tpd \
85  lttng-tools->lttng-modules \
86  sato-icon-theme->gdk-pixbuf \
87  sato-icon-theme->gtk+3 \
88  adwaita-icon-theme->gdk-pixbuf \
89  adwaita-icon-theme->gtk+3 \
90"
91
92# Avoid adding bison-native to the sysroot without a specific
93# dependency in the recipe. This means indirect dependencies
94# (e.g. X -> Y -> binutils-cross -> bison-native) no longer meet the
95# dependency incidentally. This improves determinism and avoids build
96# failures when people switch to external toolchains.
97# libarchive only needs e2fsprogs headers at buildtime
98SSTATE_EXCLUDEDEPS_SYSROOT += "\
99    .*->autoconf-native \
100    .*->automake-native \
101    .*->bison-native \
102    .*->meson-native \
103    .*->ninja-native \
104    .*->patch-native \
105    .*->pkgconfig-native \
106    .*->quilt-native \
107    ^(?!gtk-doc-native).*->xmlto-native \
108    .*->gperf-native \
109    .*->help2man-native \
110    .*->gtk-doc-native \
111    .*->texinfo-native \
112    .*->perlcross-native \
113    libarchive-native->e2fsprogs-native \
114"
115# Nothing needs to depend on libc-initial
116# base-passwd/shadow-sysroot don't need their dependencies
117SSTATE_EXCLUDEDEPS_SYSROOT += "\
118    .*->.*-initial.* \
119    .*(base-passwd|shadow-sysroot)->.* \
120"
121# Avoid adding autoconf-archive-native to sysroot without a specific
122# dependency in the recipe.
123SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native"
124
125# We need to keep bitbake tools in PATH
126# Avoid empty path entries
127BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}"
128PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}"
129
130# Only OE-Core should set/change this
131BB_GLOBAL_PYMODULES = "os sys time"
132
133addpylib ${LAYERDIR}/lib oe
134