Change license of all Yocto/OE build system meta-data/files/patches from Apache to MIT
The Oniro repository (https://gitlab.eclipse.org/eclipse/oniro-core/oniro) currently uses 3 licenses for the included files:
- Apache-2.0 (Yocto/OE layers files)
- CC-BY-4.0 (documentation)
- MIT.txt (Yocto/OE layers files)
Due to how these Yocto/OE layers interact with upstream layers (including oe-core
), having parts of our layers licensed under Apache when most (if not all) of our upstream dependencies (and generally the entire ecosystem) are MIT, would pose a couple of issues:
- Using our layers would introduce a new license to a downstream consumer that needs to be assessed.
- Reusing parts of our code would pose an issue of relicensing on Oniro or the downstream side.
- Upstreaming Apache code would need relicensing on the Oniro side before upstream could accept contributions (unless upstream is up for a license addition which in most cases is not an option).
- Mistakes can happen and end up with "silent" relicensing in different situations.
To avoid all the above we propose to change all the existing Yocto/OE Apache-2.0
files in this repository to MIT
. The list of the Apache-2.0
files in the scope of this relicensing is:
meta-oniro-staging/conf/layer.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-graphics/libqrcodegen/libqrcodegencpp_1.7.0.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/README.md:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-devtools/binutils/binutils_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-devtools/go/go_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-devtools/ninja/ninja_1.10.2.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/tayga/tayga_0.9.2.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/tayga/files/tayga.service:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/zenoh/zenoh-c.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/zenoh/zenohd_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/zenoh/files/zenohc.pc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/zenoh/zenoh-c_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/zenoh/zenohd.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/jool/jool-kmod_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/jool/jool_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/jool/jool.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/bind/bind/bind-libunwind-header.patch:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/bind/bind_9.18%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/recipes-connectivity/libuv/libuv_1.44.2.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/dynamic-layers/meta-networking/recipes-connectivity/networkmanager/networkmanager_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/dynamic-layers/meta-java/recipes-core/openjdk/openjdk-7_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/dynamic-layers/meta-arm/recipes-bsp/uefi/edk2-firmware_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-staging/classes/ninja.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-bsp/bootfiles/rpi-cmdline.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-bsp/grub/grub_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-bsp/grub/oniro-grub-bootconf.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-bsp/grub/files/grub.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-bsp/grub/grub-efi_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/distro/oniro-freertos.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/distro/include/oniro.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/distro/include/oniro-packageconfig.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/distro/include/oniro-wic.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/distro/oniro-linux.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/distro/oniro-zephyr.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/machine/include/qemu-efi.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/machine/qemuarm64-efi.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/machine/qemuarm-efi.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/conf/layer.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-gnome/gtk+/gtk+3_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/dropbear/dropbear_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/packagegroups/packagegroup-containers.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/packagegroups/packagegroup-oniro-core.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/packagegroups/packagegroup-connectivity.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/packagegroups/packagegroup-oniro-tests.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/rauc/rauc_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/rauc/insecure-keys/key.pem.license:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/rauc/insecure-keys/cert.pem.license:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/rauc/insecure-keys/gen-keys.sh:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/rauc/files/system.conf.in:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/rauc/files/rauc-state-dir.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/ncurses/ncurses_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/util-linux/util-linux_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/sysota/files/sysotad.conf.in:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/sysota/sysota_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-base-tests.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-base.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-base-dev.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-extra.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-common.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-extra-tests.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/images/oniro-image-extra-dev.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-modprobe/oniro-modprobe.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-modprobe/oniro-modprobe/oniro-kernel-mod.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-sysctl/oniro-sysctl.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-sysctl/oniro-sysctl/10-oniro-net-ipv4.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-sysctl/oniro-sysctl/10-oniro-general.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-sysctl/oniro-sysctl/10-oniro-net-ipv6.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-sysctl/oniro-sysctl/10-oniro-bpf.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts/run-mount-devdata.mount:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts/run-mount-sysdata.mount:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts/oniro-homes.conf.tmpfiles:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts/home.mount:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts/run-mount-boot.mount:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/oniro-mounts/oniro-mounts/run-mount-appdata.mount:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/pim435/pim435_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/busybox/busybox_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/psplash/psplash_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/libxml/libxml2_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/bundles/oniro-bundle-base.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-core/systemd/systemd_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/libgcrypt/libgcrypt_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/gmp/gmp_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/rauc-hawkbit-updater/files/is-provisioned.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/liburcu/liburcu_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/db/db_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/gpgme/gpgme_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/libpcre/libpcre2_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-support/gnupg/gnupg_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-graphics/wayland/weston-init.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-graphics/cairo/cairo_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-graphics/mesa/mesa_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/README.md:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-devtools/bison/bison_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-devtools/flex/flex_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-devtools/sed/sed_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-devtools/gcc/gcc-cross_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-devtools/make/make_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-devtools/zmk/zmk-native_0.5.1.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-oniro_5.10.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-yocto-tiny_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-intel_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-seco_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-oniro-tweaks-all.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-yocto_5.10.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-raspberrypi_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-raspberrypi.inc:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/squashfs.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_allocator.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_toolchain.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_allocator_perf.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/misc.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/rauc.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_usercopy.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_oops.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_fortify_source.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_validation_checks.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_disable_misc.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_dmesg.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux/hardening_memory.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-raspberrypi-v7_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-yocto-rt_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/linux/linux-yocto_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-kernel/kernel-selftest/kernel-selftest.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-connectivity/modbus/modbus-testing_git.bb:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-connectivity/openssl/openssl_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-connectivity/socat/socat_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-connectivity/networkmanager/networkmanager_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-connectivity/openthread/ot-br-posix_git.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-extended/shadow/shadow_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-extended/diffutils/diffutils_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-extended/hdparm/hdparm_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-extended/zip/zip_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-extended/ltp/ltp_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-extended/unzip/unzip_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-containers/skopeo/skopeo/storage.conf:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-containers/skopeo/skopeo_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/recipes-containers/podman/podman_%.bbappend:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/oniro-sanity.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/oniro-image.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/oniro-debug-linux.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/oniro-user.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/zmk.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/oniro-debug-common.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/oniro-debug-zephyr.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/classes/writables.bbclass:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/wic/x-raspberrypi.wks.in:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/wic/grub.cfg:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/wic/x-efi-systemd-microcode.wks.in:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/wic/x-gpt-efi-disk.wks.in:# SPDX-License-Identifier: Apache-2.0
meta-oniro-core/wic/x-imx-uboot-bootpart.wks.in:# SPDX-License-Identifier: Apache-2.0
flavours/freertos/local.conf.sample:# SPDX-License-Identifier: Apache-2.0
flavours/freertos/conf-notes.txt.license:# SPDX-License-Identifier: Apache-2.0
flavours/freertos/bblayers.conf.sample:# SPDX-License-Identifier: Apache-2.0
flavours/linux/local.conf.sample:# SPDX-License-Identifier: Apache-2.0
flavours/linux/conf-notes.txt.license:# SPDX-License-Identifier: Apache-2.0
flavours/linux/bblayers.conf.sample:# SPDX-License-Identifier: Apache-2.0
flavours/zephyr/local.conf.sample:# SPDX-License-Identifier: Apache-2.0
flavours/zephyr/conf-notes.txt.license:# SPDX-License-Identifier: Apache-2.0
flavours/zephyr/bblayers.conf.sample:# SPDX-License-Identifier: Apache-2.0
scripts/recipes-with-no-cves.py:# SPDX-License-Identifier: Apache-2.0
scripts/cve-report.py:# SPDX-License-Identifier: Apache-2.0
scripts/cve-diff.py:# SPDX-License-Identifier: Apache-2.0
This would be 163 files released under Apache-2.0
license and each one of them has the Copyright (ignoring the copyright year) as:
SPDX-FileCopyrightText: Huawei Inc.
This check was not done against all the contributions/changes of all the files listed above so we propose to get approval from each of the Oniro members.