When providing the source code, the license text is shared inside it. If we want the license text inside our final image, we can add the following to build/conf/local.conf:
COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"
This way, the license files will be placed inside the root filesystem, under /usr/share/common-licenses/.