Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # We have a conf and classes directory, add to BBPATH |
| 2 | BBPATH .= ":${LAYERDIR}" |
| 3 | # We have recipes-* directories, add to BBFILES |
| 4 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb" |
| 5 | |
| 6 | BBFILE_COLLECTIONS += "core" |
| 7 | BBFILE_PATTERN_core = "^${LAYERDIR}/" |
| 8 | BBFILE_PRIORITY_core = "5" |
| 9 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 10 | LAYERSERIES_CORENAMES = "mickledore" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 11 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | # This should only be incremented on significant changes that will |
| 13 | # cause compatibility issues with other layers |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 14 | LAYERVERSION_core = "15" |
| 15 | LAYERSERIES_COMPAT_core = "mickledore" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
| 17 | BBLAYERS_LAYERINDEX_NAME_core = "openembedded-core" |
| 18 | |
| 19 | # Set a variable to get to the top of the metadata location |
| 20 | COREBASE = '${@os.path.normpath("${LAYERDIR}/../")}' |
| 21 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 22 | # opkg-utils is for update-alternatives :( |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ |
| 24 | sysvinit-inittab \ |
Brad Bishop | 0011132 | 2018-04-01 22:23:53 -0400 | [diff] [blame] | 25 | busybox-inittab \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | shadow-securetty \ |
| 27 | opkg-arch-config \ |
| 28 | netbase \ |
| 29 | init-ifupdown \ |
| 30 | connman-conf \ |
| 31 | formfactor \ |
| 32 | xserver-xf86-config \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 44 | gstreamer1.0-meta-base \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 45 | ca-certificates \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | shared-mime-info \ |
| 47 | desktop-file-utils \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 48 | " |
| 49 | |
| 50 | SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 51 | *->patch-native \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 52 | *->quilt-native \ |
| 53 | *->subversion-native \ |
| 54 | *->git-native \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 55 | *->icecc-create-env-native \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 56 | gcc-cross-${TARGET_ARCH}->linux-libc-headers \ |
| 57 | ppp-dialin->ppp \ |
| 58 | resolvconf->bash \ |
| 59 | docbook-xsl-stylesheets->perl \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 60 | ca-certificates->openssl \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 61 | initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 62 | initramfs-framework->eudev \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 \ |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 72 | initramfs-module-setup-live->udev-extraconf \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 73 | grub-efi->grub-bootconf \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 74 | liberation-fonts->fontconfig \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 75 | cantarell-fonts->fontconfig \ |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 76 | ttf-bitstream-vera->fontconfig \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 77 | gnome-icon-theme->librsvg \ |
| 78 | font-alias->font-util \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 79 | systemd-boot->systemd-bootconf \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 80 | systemd->systemd-conf \ |
Brad Bishop | a34c030 | 2019-09-23 22:34:48 -0400 | [diff] [blame] | 81 | weston->weston-init \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 82 | weston-init->weston \ |
| 83 | weston-init->kbd \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 84 | connman->xl2tpd \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 85 | lttng-tools->lttng-modules \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 86 | sato-icon-theme->gdk-pixbuf \ |
| 87 | sato-icon-theme->gtk+3 \ |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 88 | adwaita-icon-theme->gdk-pixbuf \ |
| 89 | adwaita-icon-theme->gtk+3 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 90 | " |
| 91 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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. |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 97 | # libarchive only needs e2fsprogs headers at buildtime |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 98 | SSTATE_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 \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 107 | ^(?!gtk-doc-native).*->xmlto-native \ |
| 108 | .*->gperf-native \ |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 109 | .*->help2man-native \ |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 110 | .*->gtk-doc-native \ |
| 111 | .*->texinfo-native \ |
| 112 | .*->perlcross-native \ |
| 113 | libarchive-native->e2fsprogs-native \ |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame] | 114 | " |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 115 | # Nothing needs to depend on libc-initial |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 116 | # base-passwd/shadow-sysroot don't need their dependencies |
| 117 | SSTATE_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. |
| 123 | SSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native" |
| 124 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 125 | # We need to keep bitbake tools in PATH |
Andrew Geissler | 4c19ea1 | 2020-10-27 13:52:24 -0500 | [diff] [blame] | 126 | # Avoid empty path entries |
| 127 | BITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}" |
Andrew Geissler | 6ce62a2 | 2020-11-30 19:58:47 -0600 | [diff] [blame] | 128 | PATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 129 | |
| 130 | # Only OE-Core should set/change this |
| 131 | BB_GLOBAL_PYMODULES = "os sys time" |
| 132 | |
| 133 | addpylib ${LAYERDIR}/lib oe |