xref: /OK3568_Linux_fs/yocto/poky/meta/conf/layer.conf (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# We have a conf and classes directory, add to BBPATH
2*4882a593SmuzhiyunBBPATH .= ":${LAYERDIR}"
3*4882a593Smuzhiyun# We have recipes-* directories, add to BBFILES
4*4882a593SmuzhiyunBBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunBBFILE_COLLECTIONS += "core"
7*4882a593SmuzhiyunBBFILE_PATTERN_core = "^${LAYERDIR}/"
8*4882a593SmuzhiyunBBFILE_PRIORITY_core = "5"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunLAYERSERIES_CORENAMES = "kirkstone"
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun# This should only be incremented on significant changes that will
13*4882a593Smuzhiyun# cause compatibility issues with other layers
14*4882a593SmuzhiyunLAYERVERSION_core = "14"
15*4882a593SmuzhiyunLAYERSERIES_COMPAT_core = "kirkstone"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunBBLAYERS_LAYERINDEX_NAME_core = "openembedded-core"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# Set a variable to get to the top of the metadata location
20*4882a593SmuzhiyunCOREBASE = '${@os.path.normpath("${LAYERDIR}/../")}'
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun# opkg-utils is for update-alternatives :(
23*4882a593SmuzhiyunSIGGEN_EXCLUDERECIPES_ABISAFE += " \
24*4882a593Smuzhiyun  sysvinit-inittab \
25*4882a593Smuzhiyun  busybox-inittab \
26*4882a593Smuzhiyun  shadow-securetty \
27*4882a593Smuzhiyun  opkg-arch-config \
28*4882a593Smuzhiyun  netbase \
29*4882a593Smuzhiyun  init-ifupdown \
30*4882a593Smuzhiyun  connman-conf \
31*4882a593Smuzhiyun  formfactor \
32*4882a593Smuzhiyun  xserver-xf86-config \
33*4882a593Smuzhiyun  pointercal-xinput \
34*4882a593Smuzhiyun  base-files \
35*4882a593Smuzhiyun  keymaps \
36*4882a593Smuzhiyun  udev-extraconf \
37*4882a593Smuzhiyun  packagegroup-x11-xserver \
38*4882a593Smuzhiyun  systemd-serialgetty \
39*4882a593Smuzhiyun  initscripts \
40*4882a593Smuzhiyun  shadow \
41*4882a593Smuzhiyun  shadow-sysroot \
42*4882a593Smuzhiyun  base-passwd \
43*4882a593Smuzhiyun  opkg-utils \
44*4882a593Smuzhiyun  gstreamer1.0-meta-base \
45*4882a593Smuzhiyun  ca-certificates \
46*4882a593Smuzhiyun  shared-mime-info \
47*4882a593Smuzhiyun  desktop-file-utils \
48*4882a593Smuzhiyun"
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunSIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
51*4882a593Smuzhiyun  *->patch-native \
52*4882a593Smuzhiyun  *->quilt-native \
53*4882a593Smuzhiyun  *->subversion-native \
54*4882a593Smuzhiyun  *->git-native \
55*4882a593Smuzhiyun  *->icecc-create-env-native \
56*4882a593Smuzhiyun  gcc-cross-${TARGET_ARCH}->linux-libc-headers \
57*4882a593Smuzhiyun  ppp-dialin->ppp \
58*4882a593Smuzhiyun  resolvconf->bash \
59*4882a593Smuzhiyun  docbook-xsl-stylesheets->perl \
60*4882a593Smuzhiyun  ca-certificates->openssl \
61*4882a593Smuzhiyun  initramfs-framework->${VIRTUAL-RUNTIME_base-utils} \
62*4882a593Smuzhiyun  initramfs-framework->eudev \
63*4882a593Smuzhiyun  initramfs-framework->systemd \
64*4882a593Smuzhiyun  initramfs-module-install-efi->dosfstools \
65*4882a593Smuzhiyun  initramfs-module-install-efi->e2fsprogs \
66*4882a593Smuzhiyun  initramfs-module-install-efi->parted \
67*4882a593Smuzhiyun  initramfs-module-install-efi->util-linux \
68*4882a593Smuzhiyun  initramfs-module-install->e2fsprogs \
69*4882a593Smuzhiyun  initramfs-module-install->grub \
70*4882a593Smuzhiyun  initramfs-module-install->parted \
71*4882a593Smuzhiyun  initramfs-module-install->util-linux \
72*4882a593Smuzhiyun  grub-efi->grub-bootconf \
73*4882a593Smuzhiyun  liberation-fonts->fontconfig \
74*4882a593Smuzhiyun  cantarell-fonts->fontconfig \
75*4882a593Smuzhiyun  ttf-bitstream-vera->fontconfig \
76*4882a593Smuzhiyun  gnome-icon-theme->librsvg \
77*4882a593Smuzhiyun  font-alias->font-util \
78*4882a593Smuzhiyun  systemd-boot->systemd-bootconf \
79*4882a593Smuzhiyun  systemd->systemd-conf \
80*4882a593Smuzhiyun  weston->weston-init \
81*4882a593Smuzhiyun  weston-init->weston \
82*4882a593Smuzhiyun  weston-init->kbd \
83*4882a593Smuzhiyun  connman->xl2tpd \
84*4882a593Smuzhiyun  lttng-tools->lttng-modules \
85*4882a593Smuzhiyun  adwaita-icon-theme->gdk-pixbuf \
86*4882a593Smuzhiyun  adwaita-icon-theme->gtk+3 \
87*4882a593Smuzhiyun"
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun# Avoid adding bison-native to the sysroot without a specific
90*4882a593Smuzhiyun# dependency in the recipe. This means indirect dependencies
91*4882a593Smuzhiyun# (e.g. X -> Y -> binutils-cross -> bison-native) no longer meet the
92*4882a593Smuzhiyun# dependency incidentally. This improves determinism and avoids build
93*4882a593Smuzhiyun# failures when people switch to external toolchains.
94*4882a593Smuzhiyun# libarchive only needs e2fsprogs headers at buildtime
95*4882a593SmuzhiyunSSTATE_EXCLUDEDEPS_SYSROOT += "\
96*4882a593Smuzhiyun    .*->autoconf-native \
97*4882a593Smuzhiyun    .*->automake-native \
98*4882a593Smuzhiyun    .*->bison-native \
99*4882a593Smuzhiyun    .*->meson-native \
100*4882a593Smuzhiyun    .*->ninja-native \
101*4882a593Smuzhiyun    .*->patch-native \
102*4882a593Smuzhiyun    .*->pkgconfig-native \
103*4882a593Smuzhiyun    .*->quilt-native \
104*4882a593Smuzhiyun    ^(?!gtk-doc-native).*->xmlto-native \
105*4882a593Smuzhiyun    .*->gperf-native \
106*4882a593Smuzhiyun    .*->gtk-doc-native \
107*4882a593Smuzhiyun    .*->texinfo-native \
108*4882a593Smuzhiyun    .*->perlcross-native \
109*4882a593Smuzhiyun    libarchive-native->e2fsprogs-native \
110*4882a593Smuzhiyun"
111*4882a593Smuzhiyun# Nothing needs to depend on libc-initial
112*4882a593Smuzhiyun# base-passwd/shadow-sysroot don't need their dependencies
113*4882a593SmuzhiyunSSTATE_EXCLUDEDEPS_SYSROOT += "\
114*4882a593Smuzhiyun    .*->.*-initial.* \
115*4882a593Smuzhiyun    .*(base-passwd|shadow-sysroot)->.* \
116*4882a593Smuzhiyun"
117*4882a593Smuzhiyun# Avoid adding autoconf-archive-native to sysroot without a specific
118*4882a593Smuzhiyun# dependency in the recipe.
119*4882a593SmuzhiyunSSTATE_EXCLUDEDEPS_SYSROOT += ".*->autoconf-archive-native"
120*4882a593Smuzhiyun
121*4882a593Smuzhiyun# We need to keep bitbake tools in PATH
122*4882a593Smuzhiyun# Avoid empty path entries
123*4882a593SmuzhiyunBITBAKEPATH := "${@os.path.dirname(bb.utils.which(d.getVar('PATH'),'bitbake'))}"
124*4882a593SmuzhiyunPATH := "${@'${BITBAKEPATH}:' if '${BITBAKEPATH}' != '' else ''}${HOSTTOOLS_DIR}"
125