meta-poky: remove the default template
PATCH 1/1 meta-poky: remove the default template
It is largely duplicating oe-core's template (with addition of some poky-specific items and minor differences, see below), and has issues such as assuming a particular layer layout, and pre-selecting a particular DISTRO and MACHINE.
Rather than continuing to maintain both template, let's transition the oe-core template as a starting point (when not using bitbake-setup).
To get poky one from oe-core template would need to initialize as usual with oe-init-build-env, then add the two meta-yocto layers, and set a DISTRO (both can be done from command line without having to do manual edits).
The difference between templates (if review determines there are important pieces that should be carried over to oe-core, that can of course be done):
diff -uNr meta-poky/conf/templates/default/bblayers.conf.sample ../openembedded-core/meta/conf/templates/default/bblayers.conf.sample
--- meta-poky/conf/templates/default/bblayers.conf.sample 2026-02-17 12:17:55.599510358 +0100
+++ ../openembedded-core/meta/conf/templates/default/bblayers.conf.sample 2026-02-06 14:34:36.078136263 +0100
@@ -1,12 +1,10 @@
-# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
+# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
-POKY_BBLAYERS_CONF_VERSION = "2"
+LCONF_VERSION = "7"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
##OEROOT##/meta \
- ##OEROOT##/../meta-yocto/meta-poky \
- ##OEROOT##/../meta-yocto/meta-yocto-bsp \
"
diff -uNr meta-poky/conf/templates/default/conf-summary.txt ../openembedded-core/meta/conf/templates/default/conf-summary.txt
--- meta-poky/conf/templates/default/conf-summary.txt 2026-02-17 12:17:55.599510358 +0100
+++ ../openembedded-core/meta/conf/templates/default/conf-summary.txt 2026-02-06 14:34:36.078136263 +0100
@@ -1 +1 @@
-This is the default build configuration for the Poky reference distribution.
+This is the default build configuration for the openembedded-core layer.
diff -uNr meta-poky/conf/templates/default/local.conf.sample ../openembedded-core/meta/conf/templates/default/local.conf.sample
--- meta-poky/conf/templates/default/local.conf.sample 2026-02-17 12:17:55.599510358 +0100
+++ ../openembedded-core/meta/conf/templates/default/local.conf.sample 2026-02-13 11:35:38.470911235 +0100
@@ -25,14 +25,6 @@
#MACHINE ?= "qemux86"
#MACHINE ?= "qemux86-64"
#
-# There are also the following hardware board target machines included for
-# demonstration purposes:
-#
-#MACHINE ?= "beaglebone-yocto"
-#MACHINE ?= "genericarm64"
-#MACHINE ?= "genericx86"
-#MACHINE ?= "genericx86-64"
-#
# This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "qemux86-64"
@@ -81,20 +73,6 @@
#
#TMPDIR = "${TOPDIR}/tmp"
-#
-# Default policy config
-#
-# The distribution setting controls which policy settings are used as defaults.
-# The default value is fine for general Yocto project use, at least initially.
-# Ultimately when creating custom policy, people will likely end up subclassing
-# these defaults.
-#
-DISTRO ?= "poky"
-# As an example of a subclass there is a "bleeding" edge policy configuration
-# where many versions are set to the absolute latest code from the upstream
-# source control systems. This is just mentioned here as an example, its not
-# useful to most new users.
-# DISTRO ?= "poky-bleeding"
#
# Package Management configuration
@@ -107,8 +85,8 @@
# - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
# - 'package_rpm' for rpm style packages
# E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
-# OE-Core defaults to ipkg, whilst Poky defaults to rpm:
-# PACKAGE_CLASSES ?= "package_rpm"
+# We default to ipk (via meta/conf/distro/defaultsetup.conf included in meta/conf/bitbake.conf):
+#PACKAGE_CLASSES ?= "package_ipk"
#
# SDK target architecture
@@ -158,6 +136,7 @@
# - 'buildstats' collect build statistics
USER_CLASSES ?= "buildstats"
+
#
# Runtime testing of images
#
@@ -225,22 +204,6 @@
#file://.* https://someserver.tld/share/sstate/PATH;downloadfilename=PATH \
#file://.* file:///some/local/dir/sstate/PATH"
-#
-# Yocto Project SState Mirror
-#
-# The Yocto Project has prebuilt artefacts available for its releases, you can enable
-# use of these by uncommenting some of the following lines. This will mean the build uses
-# the network to check for artefacts at the start of builds, which does slow it down
-# initially but it will then speed up the builds by not having to build things if they are
-# present in the cache. It assumes you can download something faster than you can build it
-# which will depend on your network.
-# Note: For this to work you also need hash-equivalence passthrough to the matching server
-# There is a choice between our sstate server directly and a faster content delivery network
-# (CDN) kindly provided by JSDelivr, uncomment one of the SSTATE_MIRRORS lines, not both.
-# Using the CDN rather than the yoctoproject.org address is suggested/preferred.
-#
-#BB_HASHSERVE_UPSTREAM = 'wss://hashserv.yoctoproject.org/ws'
-#SSTATE_MIRRORS ?= "file://.* http://sstate.yoctoproject.org/all/PATH;downloadfilename=PATH"
#
# Qemu configuration
diff -uNr meta-poky/conf/templates/default/local.conf.sample.extended ../openembedded-core/meta/conf/templates/default/local.conf.sample.extended
--- meta-poky/conf/templates/default/local.conf.sample.extended 2026-02-17 12:17:55.599510358 +0100
+++ ../openembedded-core/meta/conf/templates/default/local.conf.sample.extended 2026-02-06 14:34:36.078136263 +0100
@@ -31,10 +31,11 @@
#do_fetch[number_threads] = "4"
#
-# If you want to get an image based on directfb without x11 alter
-# DISTRO_FEATURES:
-DISTRO_FEATURES:append = " directfb"
-DISTRO_FEATURES:remove = "x11"
+
+#DISTRO_FEATURES = "alsa bluetooth ext2 irda ipv4 ipv6 pcmcia usbgadget usbhost wifi nfs zeroconf pci"
+
+# If you want to get an image based on directfb without x11, Please copy this variable to build/conf/local.conf
+#DISTRO_FEATURES = "alsa bluetooth ext2 irda ipv4 ipv6 pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g directfb"
# ENABLE_BINARY_LOCALE_GENERATION controls the generation of binary locale
# packages at build time using qemu-native. Disabling it (by setting it to 0)
@@ -178,13 +179,13 @@
# implications so they are disabled by default. To enable them,
# un-comment the below as appropriate.
#LICENSE_FLAGS_ACCEPTED = "commercial_gst-fluendo-mp3 \
-# commercial_gst-openmax \
-# commercial_gst-plugins-ugly \
-# commercial_lame \
-# commercial_libmad \
-# commercial_libomxil \
-# commercial_mpeg2dec \
-# commercial_qmmp"
+# commercial_gst-openmax \
+# commercial_gst-plugins-ugly \
+# commercial_lame \
+# commercial_libmad \
+# commercial_libomxil \
+# commercial_mpeg2dec \
+# commercial_qmmp"
#
@@ -263,7 +264,7 @@
#
# By including the security_flags include file you enable flags
# to the compiler and linker that cause them to generate more secure
-# code.
+# code, this is enabled by default in the poky-lsb distro.
# This does affect compile speed slightly.
#
# Use the following line to enable the security compiler and linker flags to your build--- .templateconf | 2 - .../templates/default/bblayers.conf.sample | 12 - .../conf/templates/default/conf-notes.txt | 19 - .../conf/templates/default/conf-summary.txt | 1 - .../conf/templates/default/local.conf.sample | 285 ------------- .../default/local.conf.sample.extended | 388 ------------------ .../conf/templates/default/site.conf.sample | 33 -- 7 files changed, 740 deletions(-) delete mode 100644 .templateconf delete mode 100644 meta-poky/conf/templates/default/bblayers.conf.sample delete mode 100644 meta-poky/conf/templates/default/conf-notes.txt delete mode 100644 meta-poky/conf/templates/default/conf-summary.txt delete mode 100644 meta-poky/conf/templates/default/local.conf.sample delete mode 100644 meta-poky/conf/templates/default/local.conf.sample.extended delete mode 100644 meta-poky/conf/templates/default/site.conf.sample
.templateconf deleted +0 -2
@@ -1,2 +0,0 @@ -# Template settings -TEMPLATECONF=${TEMPLATECONF:-meta-poky/conf/templates/default}
meta-poky/conf/templates/default/bblayers.conf.sample deleted +0 -12
@@ -1,12 +0,0 @@ -# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf -# changes incompatibly -POKY_BBLAYERS_CONF_VERSION = "2" - -BBPATH = "${TOPDIR}" -BBFILES ?= "" - -BBLAYERS ?= " \ - ##OEROOT##/meta \ - ##OEROOT##/../meta-yocto/meta-poky \ - ##OEROOT##/../meta-yocto/meta-yocto-bsp \ - "
meta-poky/conf/templates/default/conf-notes.txt deleted +0 -19
@@ -1,19 +0,0 @@ - -### Shell environment set up for builds. ### - -You can now run 'bitbake <target>' - -Common targets are: - core-image-minimal - core-image-full-cmdline - core-image-sato - core-image-weston - meta-toolchain - meta-ide-support - -You can also run generated qemu images with a command like 'runqemu qemux86-64'. - -Other commonly useful commands are: - - 'devtool' and 'recipetool' handle common recipe tasks - - 'bitbake-layers' handles common layer tasks - - 'oe-pkgdata-util' handles common target package tasks
meta-poky/conf/templates/default/conf-summary.txt deleted +0 -1
@@ -1 +0,0 @@ -This is the default build configuration for the Poky reference distribution.
meta-poky/conf/templates/default/local.conf.sample deleted +0 -285
285 lines not on this page · raw message
meta-poky/conf/templates/default/local.conf.sample.extended deleted +0 -388
388 lines not on this page · raw message
meta-poky/conf/templates/default/site.conf.sample deleted +0 -33
@@ -1,33 +0,0 @@ -# -# local.conf covers user settings, site.conf covers site specific information -# such as proxy server addresses and optionally any shared download location -# -# SITE_CONF_VERSION is increased each time build/conf/site.conf -# changes incompatibly -SCONF_VERSION = "1" - -# Uncomment to cause CVS to use the proxy host specified -#CVS_PROXY_HOST = "proxy.example.com" -#CVS_PROXY_PORT = "81" - -# For svn, you need to create ~/.subversion/servers containing: -#[global] -#http-proxy-host = proxy.example.com -#http-proxy-port = 81 -# - -# To use git with a proxy, you must use an external git proxy command, such as -# the one provided by scripts/oe-git-proxy. To use this script, copy it to -# your PATH and uncomment the following: -#GIT_PROXY_COMMAND ?= "oe-git-proxy" -#ALL_PROXY ?= "socks://socks.example.com:1080" -#or -#ALL_PROXY ?= "https://proxy.example.com:8080" -# If you wish to use certain hosts without the proxy, specify them in NO_PROXY. -# See the script for details on syntax. The script oe-git-proxy uses some tools -# that may not be included on HOSTTOOLS, thus add them manually through -# HOSTTOOLS += "getent" - -# Uncomment this to use a shared download directory -#DL_DIR = "/some/shared/download/directory/" -
Signature · 1 line
2.47.3