xref: /OK3568_Linux_fs/yocto/poky/documentation/migration-guides/migration-1.3.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRelease 1.3 (danny)
4*4882a593Smuzhiyun===================
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunThis section provides migration information for moving to the Yocto
7*4882a593SmuzhiyunProject 1.3 Release (codename "danny") from the prior release.
8*4882a593Smuzhiyun
9*4882a593Smuzhiyun.. _1.3-local-configuration:
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunLocal Configuration
12*4882a593Smuzhiyun-------------------
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunDifferences include changes for
15*4882a593Smuzhiyun:term:`SSTATE_MIRRORS` and ``bblayers.conf``.
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun.. _migration-1.3-sstate-mirrors:
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunSSTATE_MIRRORS
20*4882a593Smuzhiyun~~~~~~~~~~~~~~
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunThe shared state cache (sstate-cache), as pointed to by
23*4882a593Smuzhiyun:term:`SSTATE_DIR`, by default now has two-character
24*4882a593Smuzhiyunsubdirectories to prevent issues arising from too many files in the same
25*4882a593Smuzhiyundirectory. Also, native sstate-cache packages, which are built to run on
26*4882a593Smuzhiyunthe host system, will go into a subdirectory named using the distro ID
27*4882a593Smuzhiyunstring. If you copy the newly structured sstate-cache to a mirror
28*4882a593Smuzhiyunlocation (either local or remote) and then point to it in
29*4882a593Smuzhiyun:term:`SSTATE_MIRRORS`, you need to append "PATH"
30*4882a593Smuzhiyunto the end of the mirror URL so that the path used by BitBake before the
31*4882a593Smuzhiyunmirror substitution is appended to the path used to access the mirror.
32*4882a593SmuzhiyunHere is an example::
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun   SSTATE_MIRRORS = "file://.* http://someserver.tld/share/sstate/PATH"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun.. _migration-1.3-bblayers-conf:
37*4882a593Smuzhiyun
38*4882a593Smuzhiyunbblayers.conf
39*4882a593Smuzhiyun~~~~~~~~~~~~~
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunThe ``meta-yocto`` layer consists of two parts that correspond to the
42*4882a593SmuzhiyunPoky reference distribution and the reference hardware Board Support
43*4882a593SmuzhiyunPackages (BSPs), respectively: ``meta-yocto`` and ``meta-yocto-bsp``.
44*4882a593SmuzhiyunWhen running BitBake for the first time after upgrading, your
45*4882a593Smuzhiyun``conf/bblayers.conf`` file will be updated to handle this change and
46*4882a593Smuzhiyunyou will be asked to re-run or restart for the changes to take effect.
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun.. _1.3-recipes:
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunRecipes
51*4882a593Smuzhiyun-------
52*4882a593Smuzhiyun
53*4882a593SmuzhiyunDifferences include changes for the following:
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun.. _migration-1.3-python-function-whitespace:
56*4882a593Smuzhiyun
57*4882a593SmuzhiyunPython Function Whitespace
58*4882a593Smuzhiyun~~~~~~~~~~~~~~~~~~~~~~~~~~
59*4882a593Smuzhiyun
60*4882a593SmuzhiyunAll Python functions must now use four spaces for indentation.
61*4882a593SmuzhiyunPreviously, an inconsistent mix of spaces and tabs existed, which made
62*4882a593Smuzhiyunextending these functions using ``_append`` or ``_prepend`` complicated
63*4882a593Smuzhiyungiven that Python treats whitespace as syntactically significant. If you
64*4882a593Smuzhiyunare defining or extending any Python functions (e.g.
65*4882a593Smuzhiyun``populate_packages``, ``do_unpack``, ``do_patch`` and so forth) in
66*4882a593Smuzhiyuncustom recipes or classes, you need to ensure you are using consistent
67*4882a593Smuzhiyunfour-space indentation.
68*4882a593Smuzhiyun
69*4882a593Smuzhiyun.. _migration-1.3-proto=-in-src-uri:
70*4882a593Smuzhiyun
71*4882a593Smuzhiyunproto= in SRC_URI
72*4882a593Smuzhiyun~~~~~~~~~~~~~~~~~
73*4882a593Smuzhiyun
74*4882a593SmuzhiyunAny use of ``proto=`` in :term:`SRC_URI` needs to be
75*4882a593Smuzhiyunchanged to ``protocol=``. In particular, this applies to the following
76*4882a593SmuzhiyunURIs:
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun-  ``svn://``
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun-  ``bzr://``
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun-  ``hg://``
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun-  ``osc://``
85*4882a593Smuzhiyun
86*4882a593SmuzhiyunOther URIs were already using ``protocol=``. This change improves
87*4882a593Smuzhiyunconsistency.
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun.. _migration-1.3-nativesdk:
90*4882a593Smuzhiyun
91*4882a593Smuzhiyunnativesdk
92*4882a593Smuzhiyun~~~~~~~~~
93*4882a593Smuzhiyun
94*4882a593SmuzhiyunThe suffix ``nativesdk`` is now implemented as a prefix, which
95*4882a593Smuzhiyunsimplifies a lot of the packaging code for ``nativesdk`` recipes. All
96*4882a593Smuzhiyuncustom ``nativesdk`` recipes, which are relocatable packages that are
97*4882a593Smuzhiyunnative to :term:`SDK_ARCH`, and any references need to
98*4882a593Smuzhiyunbe updated to use ``nativesdk-*`` instead of ``*-nativesdk``.
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun.. _migration-1.3-task-recipes:
101*4882a593Smuzhiyun
102*4882a593SmuzhiyunTask Recipes
103*4882a593Smuzhiyun~~~~~~~~~~~~
104*4882a593Smuzhiyun
105*4882a593Smuzhiyun"Task" recipes are now known as "Package groups" and have been renamed
106*4882a593Smuzhiyunfrom ``task-*.bb`` to ``packagegroup-*.bb``. Existing references to the
107*4882a593Smuzhiyunprevious ``task-*`` names should work in most cases as there is an
108*4882a593Smuzhiyunautomatic upgrade path for most packages. However, you should update
109*4882a593Smuzhiyunreferences in your own recipes and configurations as they could be
110*4882a593Smuzhiyunremoved in future releases. You should also rename any custom ``task-*``
111*4882a593Smuzhiyunrecipes to ``packagegroup-*``, and change them to inherit
112*4882a593Smuzhiyun``packagegroup`` instead of ``task``, as well as taking the opportunity
113*4882a593Smuzhiyunto remove anything now handled by :ref:`ref-classes-packagegroup`, such as
114*4882a593Smuzhiyunproviding ``-dev`` and ``-dbg`` packages, setting
115*4882a593Smuzhiyun:term:`LIC_FILES_CHKSUM`, and so forth. See the
116*4882a593Smuzhiyun:ref:`ref-classes-packagegroup` section for
117*4882a593Smuzhiyunfurther details.
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun.. _migration-1.3-image-features:
120*4882a593Smuzhiyun
121*4882a593SmuzhiyunIMAGE_FEATURES
122*4882a593Smuzhiyun~~~~~~~~~~~~~~
123*4882a593Smuzhiyun
124*4882a593SmuzhiyunImage recipes that previously included ``apps-console-core`` in
125*4882a593Smuzhiyun:term:`IMAGE_FEATURES` should now include ``splash``
126*4882a593Smuzhiyuninstead to enable the boot-up splash screen. Retaining
127*4882a593Smuzhiyun``apps-console-core`` will still include the splash screen but generates a
128*4882a593Smuzhiyunwarning. The ``apps-x11-core`` and ``apps-x11-games`` :term:`IMAGE_FEATURES`
129*4882a593Smuzhiyunfeatures have been removed.
130*4882a593Smuzhiyun
131*4882a593Smuzhiyun.. _migration-1.3-removed-recipes:
132*4882a593Smuzhiyun
133*4882a593SmuzhiyunRemoved Recipes
134*4882a593Smuzhiyun~~~~~~~~~~~~~~~
135*4882a593Smuzhiyun
136*4882a593SmuzhiyunThe following recipes have been removed. For most of them, it is
137*4882a593Smuzhiyununlikely that you would have any references to them in your own
138*4882a593Smuzhiyun:term:`Metadata`. However, you should check your metadata
139*4882a593Smuzhiyunagainst this list to be sure:
140*4882a593Smuzhiyun
141*4882a593Smuzhiyun-  ``libx11-trim``: Replaced by ``libx11``, which has a negligible
142*4882a593Smuzhiyun   size difference with modern Xorg.
143*4882a593Smuzhiyun
144*4882a593Smuzhiyun-  ``xserver-xorg-lite``: Use ``xserver-xorg``, which has a negligible
145*4882a593Smuzhiyun   size difference when DRI and GLX modules are not installed.
146*4882a593Smuzhiyun
147*4882a593Smuzhiyun-  ``xserver-kdrive``: Effectively unmaintained for many years.
148*4882a593Smuzhiyun
149*4882a593Smuzhiyun-  ``mesa-xlib``: No longer serves any purpose.
150*4882a593Smuzhiyun
151*4882a593Smuzhiyun-  ``galago``: Replaced by telepathy.
152*4882a593Smuzhiyun
153*4882a593Smuzhiyun-  ``gail``: Functionality was integrated into GTK+ 2.13.
154*4882a593Smuzhiyun
155*4882a593Smuzhiyun-  ``eggdbus``: No longer needed.
156*4882a593Smuzhiyun
157*4882a593Smuzhiyun-  ``gcc-*-intermediate``: The build has been restructured to avoid
158*4882a593Smuzhiyun   the need for this step.
159*4882a593Smuzhiyun
160*4882a593Smuzhiyun-  ``libgsmd``: Unmaintained for many years. Functionality now
161*4882a593Smuzhiyun   provided by ``ofono`` instead.
162*4882a593Smuzhiyun
163*4882a593Smuzhiyun-  *contacts, dates, tasks, eds-tools*: Largely unmaintained PIM
164*4882a593Smuzhiyun   application suite. It has been moved to ``meta-gnome`` in
165*4882a593Smuzhiyun   ``meta-openembedded``.
166*4882a593Smuzhiyun
167*4882a593SmuzhiyunIn addition to the previously listed changes, the ``meta-demoapps``
168*4882a593Smuzhiyundirectory has also been removed because the recipes in it were not being
169*4882a593Smuzhiyunmaintained and many had become obsolete or broken. Additionally, these
170*4882a593Smuzhiyunrecipes were not parsed in the default configuration. Many of these
171*4882a593Smuzhiyunrecipes are already provided in an updated and maintained form within
172*4882a593Smuzhiyunthe OpenEmbedded community layers such as ``meta-oe`` and
173*4882a593Smuzhiyun``meta-gnome``. For the remainder, you can now find them in the
174*4882a593Smuzhiyun``meta-extras`` repository, which is in the
175*4882a593Smuzhiyun:yocto_git:`Source Repositories <>` at
176*4882a593Smuzhiyun:yocto_git:`/meta-extras/`.
177*4882a593Smuzhiyun
178*4882a593Smuzhiyun.. _1.3-linux-kernel-naming:
179*4882a593Smuzhiyun
180*4882a593SmuzhiyunLinux Kernel Naming
181*4882a593Smuzhiyun-------------------
182*4882a593Smuzhiyun
183*4882a593SmuzhiyunThe naming scheme for kernel output binaries has been changed to now
184*4882a593Smuzhiyuninclude :term:`PE` as part of the filename::
185*4882a593Smuzhiyun
186*4882a593Smuzhiyun   KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
187*4882a593Smuzhiyun
188*4882a593SmuzhiyunBecause the :term:`PE` variable is not set by default, these binary files
189*4882a593Smuzhiyuncould result with names that include two dash characters. Here is an
190*4882a593Smuzhiyunexample::
191*4882a593Smuzhiyun
192*4882a593Smuzhiyun   bzImage--3.10.9+git0+cd502a8814_7144bcc4b8-r0-qemux86-64-20130830085431.bin
193*4882a593Smuzhiyun
194*4882a593Smuzhiyun
195