From fea5e862e33ded98f800a47b574cf945b63b9652 Mon Sep 17 00:00:00 2001
From: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Date: Tue, 26 Nov 2024 02:34:08 +0900
Subject: [PATCH] Fix license information in recipes

Existing recipe is missing to license information.
This patch fix license information in recipes.

Bug-AGL: SPEC-5274

Change-Id: Ibbe45afc97cf9dbdc305a5d71b40fd64f59a030e
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
---
 meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb  | 2 +-
 .../recipes-core/systemd/systemd-timesyncd-guest_1.0.bb                 | 2 ++
 meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb               | 2 +-
 meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest_0.1.bb | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb b/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb
index 4024c278..2f6abe46 100644
--- a/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb
+++ b/meta-agl-ic-container/recipes-core/systemd/systemd-netif-config_0.1.bb
@@ -2,7 +2,7 @@ SUMMARY     = "Systemd network interface configuration"
 DESCRIPTION = "Systemd network interface configuration \
               "
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
 SRC_URI = " \
     file://20-wired.network \
diff --git a/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb b/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb
index e8ec6500..0a9b7470 100644
--- a/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb
+++ b/meta-agl-ic-container/recipes-core/systemd/systemd-timesyncd-guest_1.0.bb
@@ -2,6 +2,8 @@ SUMMARY     = "Container guest configuration for systemd-timesyncd."
 DESCRIPTION = "Container guest configuration for systemd-timesyncd. \
                It enables systemd-timesyncd in container guest."
 LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
 SRC_URI = " \
     file://timesyncd-run-guest.conf \
     "
diff --git a/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb b/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
index 845ef46d..aa37c84a 100644
--- a/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
+++ b/meta-agl-ic-container/recipes-demo/momikey/momikey_0.1.bb
@@ -2,7 +2,7 @@ SUMMARY = "CH57x keyboard based UI for container demo"
 DESCRIPTION = "Container exchange user interface using CH57x keyboard. \
                This UI based on mock container manager for AGL CES2023 demo."
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
 SRC_URI += " \
     file://momikey.sh \
diff --git a/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest_0.1.bb b/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest_0.1.bb
index c95f92e0..d444317b 100644
--- a/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest_0.1.bb
+++ b/meta-agl-ic-container/recipes-graphics/wayland/weston-init-guest_0.1.bb
@@ -1,6 +1,6 @@
 SUMMARY = "Startup script and systemd unit file for the Weston Wayland compositor in guest cotainer"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
 SRC_URI = "file://weston.env \
            file://weston.service \
-- 
2.16.6